From: Filippo Valsorda Date: Thu, 8 Jun 2023 13:35:19 +0000 (-0400) Subject: doc/go1.21: more crypto release notes X-Git-Tag: go1.21rc1~53 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bff4b0edcbb6dee476f6f80b3c2e8b634a6aca4d;p=gostls13.git doc/go1.21: more crypto release notes Change-Id: I06981e13b89b3bde8f0d2fc9993240a372fb0457 Reviewed-on: https://go-review.googlesource.com/c/go/+/501815 Run-TryBot: Filippo Valsorda Auto-Submit: Filippo Valsorda TryBot-Result: Gopher Robot Reviewed-by: David Chase Reviewed-by: Roland Shoemaker --- diff --git a/doc/go1.21.html b/doc/go1.21.html index 0d6f0b018d..ab7a337e71 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -494,13 +494,27 @@ Do not send CLs removing the interior tags from such phrases.
crypto/elliptic

- All of the Curve methods have been deprecated, along with GenerateKey, Marshal, and Unmarshal. For ECDH operations, the new crypto/ecdh package should be used instead. + All of the Curve methods have been deprecated, along with GenerateKey, Marshal, and Unmarshal. For ECDH operations, the new crypto/ecdh package should be used instead. For lower-level operations, use third-party modules such as filippo.io/nistec.

+
crypto/rand
+
+

+ The crypto/rand package now uses the getrandom system call on NetBSD 10.0 and later. +

+
+
+
crypto/rsa
+

+ The performance of private RSA operations (decryption and signing) is now better than Go 1.19 for GOOS=amd64 and GOOS=arm64. It had regressed in Go 1.20. +

+

+ Due to the addition of private fields to PrecomputedValues, PrivateKey.Precompute must be called for optimal performance even if deserializing (for example from JSON) a previously-precomputed private key. +

The GenerateMultiPrimeKey function and the PrecomputedValues.CRTValues field have been deprecated. PrecomputedValues.CRTValues will still be populated when PrivateKey.Precompute is called, but the values will not be used during decryption operations.