Skip to content

Commit

Permalink
_content/doc/go1.24: link to GenerateKey example
Browse files Browse the repository at this point in the history
Change-Id: I16e44987a6a71c94aa891775b0de234826b8f2e1
Reviewed-on: https://go-review.googlesource.com/c/website/+/638878
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Filippo Valsorda <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
aclements committed Jan 2, 2025
1 parent 595111e commit 4363924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _content/doc/go1.24.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ a key smaller than 1024 bits. Such keys are insecure and should not be used.
[GODEBUG setting](/doc/godebug) `rsa1024min=0` restores the old behavior, but we
recommend doing so only if necessary and only in tests, for example by adding a
`//go:debug rsa1024min=0` line to a test file.
A new [`GenerateKey`](/pkg/crypto/rsa#GenerateKey) example provides an
easy-to-use standard 2048-bit test key.
A new `GenerateKey` [example](/pkg/crypto/rsa#example-GenerateKey-TestKey)
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
Expand Down

0 comments on commit 4363924

Please sign in to comment.