Skip to content

Commit 40c7be9

Browse files
rolandshoemakergopherbot
authored andcommittedJun 1, 2023
doc/go1.21: crypto release notes
Updates #58645 Change-Id: Ib7e2baba41bb327d8fc466afb1e117fe2f22e1c9 Reviewed-on: https://go-review.googlesource.com/c/go/+/499637 Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Roland Shoemaker <roland@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Roland Shoemaker <roland@golang.org>
1 parent 7183e77 commit 40c7be9

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed
 

‎doc/go1.21.html

+7-23
Original file line numberDiff line numberDiff line change
@@ -437,47 +437,31 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
437437
<dl id="crypto/elliptic"><dt><a href="/pkg/crypto/elliptic/">crypto/elliptic</a></dt>
438438
<dd>
439439
<p><!-- CL 459977 -->
440-
TODO: <a href="https://go.dev/cl/459977">https://go.dev/cl/459977</a>: crypto/elliptic: deprecate unsafe APIs; modified api/next/34648.txt, api/next/52221.txt
440+
All of the <a href="/pkg/crypto/elliptic/#Curve"><code>Curve</code></a> methods have been deprecated, along with <a href="/pkg/crypto/elliptic/#GenerateKey"><code>GenerateKey</code></a>, <a href="/pkg/crypto/elliptic/#Marshal"><code>Marshal</code></a>, and <a href="/pkg/crypto/elliptic/#Unmarshal"><code>Unmarshal</code></a>. For ECDH operations, the new <a href="/pkg/crypto/ecdh/"><code>crypto/ecdh</code></a> package should be used instead.
441441
</p>
442442
</dd>
443443
</dl><!-- crypto/elliptic -->
444444

445445
<dl id="crypto/rsa"><dt><a href="/pkg/crypto/rsa/">crypto/rsa</a></dt>
446446
<dd>
447-
<p><!-- https://go.dev/issue/56921 -->
448-
TODO: <a href="https://go.dev/issue/56921">https://go.dev/issue/56921</a>: deprecate GenerateMultiPrimeKey and PrecomputedValues.CRTValues
449-
</p>
450-
451-
<p><!-- CL 459976 -->
452-
TODO: <a href="https://go.dev/cl/459976">https://go.dev/cl/459976</a>: crypto/rsa: deprecate multiprime RSA support; modified api/next/56921.txt
447+
<p><!-- https://go.dev/issue/56921, CL 459976 -->
448+
The <a href="/pkg/crypto/rsa/#GenerateMultiPrimeKey"><code>GenerateMultiPrimeKey</code></a> function and the <a href="/pkg/crypto/rsa/#PrecomputedValues.CRTValues"><code>PrecomputedValues.CRTValues</code></a> field have been deprecated. <a href="/pkg/crypto/rsa/#PrecomputedValues.CRTValues"><code>PrecomputedValues.CRTValues</code></a> will still be populated when <a href="/pkg/crypto/rsa/#PrivateKey.Precompute"><code>PrivateKey.Precompute</code></a> is called, but the values will not be used during decryption operations.
453449
</p>
454450
</dd>
455451
</dl><!-- crypto/rsa -->
456452

457-
<!-- CL 483815 reverted -->
458-
<!-- CL 481478 reverted -->
459-
<!-- CL 483816 reverted -->
460-
461453
<dl id="crypto/sha256"><dt><a href="/pkg/crypto/sha256/">crypto/sha256</a></dt>
462454
<dd>
463-
<p><!-- https://go.dev/issue/50543 -->
464-
TODO: <a href="https://go.dev/issue/50543">https://go.dev/issue/50543</a>: add native SHA256 instruction implementation for AMD64
465-
</p>
466-
467-
<p><!-- CL 408795 -->
468-
TODO: <a href="https://go.dev/cl/408795">https://go.dev/cl/408795</a>: crypto/sha256: add sha-ni implementation; crypto/sha256 uses Intel SHA extensions on new enough x86 processors, making it 3-4X faster.
455+
<p><!-- https://go.dev/issue/50543, CL 408795 -->
456+
SHA-224 and SHA-256 operations now use native instructions when available when <code>GOOS=amd64</code>, providing a performance improvement on the order of 3-4x.
469457
</p>
470458
</dd>
471459
</dl><!-- crypto/sha256 -->
472460

473461
<dl id="crypto/x509"><dt><a href="/pkg/crypto/x509/">crypto/x509</a></dt>
474462
<dd>
475-
<p><!-- https://go.dev/issue/53573 -->
476-
TODO: <a href="https://go.dev/issue/53573">https://go.dev/issue/53573</a>: surface ReasonCode inside x509.RevocationList entries
477-
</p>
478-
479-
<p><!-- CL 468875 -->
480-
TODO: <a href="https://go.dev/cl/468875">https://go.dev/cl/468875</a>: crypto/x509: surface ReasonCode in RevocationList API; modified api/next/53573.txt
463+
<p><!-- https://go.dev/issue/53573, CL 468875 -->
464+
<a href="/pkg/crypto/x509/#RevocationList.RevokedCertificates"><code>RevocationList.RevokedCertificates</code></a> has been deprecated and replaced with the new <a href="/pkg/crypto/x509/#RevocationList.Entries"><code>RevocationList.Entries</code></a> field, which is a slice of <a href="/pkg/crypto/x509/#RevocationListEntry"><code>RevocationListEntry</code></a>. <a href="/pkg/crypto/x509/#RevocationListEntry"><code>RevocationListEntry</code></a> contains all of the fields in <a href="/pkg/crypto/x509/#pkix.RevokedCertificate"><code>pkix.RevokedCertificate</code></a>, as well as the revocation reason code.
481465
</p>
482466
</dd>
483467
</dl><!-- crypto/x509 -->

0 commit comments

Comments
 (0)
Please sign in to comment.