Skip to content

Commit

Permalink
_content/doc/go1.24: more crypto/rsa minor release notes
Browse files Browse the repository at this point in the history
Change-Id: I6a6a465689b67a9eb4525bdd4802981a6dd4caf1
Reviewed-on: https://go-review.googlesource.com/c/website/+/641275
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Russ Cox <[email protected]>
Auto-Submit: Filippo Valsorda <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
FiloSottile authored and gopherbot committed Jan 8, 2025
1 parent 303bf19 commit 409cb7b
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions _content/doc/go1.24.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,16 +391,31 @@ provides an easy-to-use standard 2048-bit test key.
It is now safe and more efficient to call
[`PrivateKey.Precompute`](/pkg/crypto/rsa#PrivateKey.Precompute) before
[`PrivateKey.Validate`](/pkg/crypto/rsa#PrivateKey.Validate).

The package now rejects more invalid keys, and
[`GenerateKey`](/pkg/crypto/rsa#GenerateKey) may return new errors for broken
random sources. See also the changes to [`crypto/x509`](#cryptox509pkgcryptox509) below.
`Precompute` is now faster in the presence of partially filled out
[`PrecomputedValues`](/pkg/crypto/rsa#PrecomputedValues), such as when
unmarshaling a key from JSON.

The package now rejects more invalid keys, even when `Validate` is not called,
and [`GenerateKey`](/pkg/crypto/rsa#GenerateKey) may return new errors for
broken random sources.
The [`Primes`](/pkg/crypto/rsa#PrivateKey.Primes) and
[`Precomputed`](/pkg/crypto/rsa#PrivateKey.Precomputed) fields of
[`PrivateKey`](/pkg/crypto/rsa#PrivateKey) are now used and validated even when
some values are missing.
See also the changes to `crypto/x509` parsing and marshaling of RSA keys
[described below](#cryptox509pkgcryptox509).

<!-- go.dev/issue/43923 -->
[`SignPKCS1v15`](/pkg/crypto/rsa#SignPKCS1v15) and
[`VerifyPKCS1v15`](/pkg/crypto/rsa#VerifyPKCS1v15) now support
SHA-512/224, SHA-512/256, and SHA-3.

<!-- CL 639936 -->
[`GenerateKey`](/pkg/crypto/rsa#GenerateKey) now uses a slightly different
method to generate the private exponent (Carmichael's totient instead of Euler's
totient). Rare applications that externally regenerate keys from only the prime
factors may produce different but compatible results.

<!-- CL 626957 -->
Public and private key operations are now up to two times faster on wasm.

Expand Down

0 comments on commit 409cb7b

Please sign in to comment.