]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: fix GenerateKey flakes for toy-sized keys
authorFilippo Valsorda <filippo@golang.org>
Thu, 9 Jan 2025 14:12:49 +0000 (15:12 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 9 Jan 2025 23:08:34 +0000 (15:08 -0800)
commit932ec2be8d01e553a768df3709182abf2b579097
tree727c99861f9dd04e796381b605fde0e5c6dd8674
parentd0c9142ce3b6fac83dadcc76ecfb85311431e743
crypto/rsa: fix GenerateKey flakes for toy-sized keys

Could have fixed this some other ways, including inside the FIPS 140-3
module, but this is small and self-contained, clearly not affecting
production non-toy key sizes. This late in the freeze, a surgical fix
felt best.

Fixes #71185

Change-Id: I6a6a465641357c9d6b076c8a520b221be4210ed5
Reviewed-on: https://go-review.googlesource.com/c/go/+/641755
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/crypto/rsa/rsa.go
src/crypto/rsa/rsa_test.go