crypto/rsa: don't test CL 687836 against v1.0.0 FIPS 140-3 module

Fixes #75343 (again)
Updates #74115

Change-Id: I6a6a696431d12e45ec9e302e63ed18990c5ee9d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/702615
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
This commit is contained in:
Filippo Valsorda 2025-09-10 23:06:39 +02:00 committed by Gopher Robot
parent 253dd08f5d
commit c349582344

View file

@ -10,6 +10,7 @@ import (
"crypto"
"crypto/internal/boring"
"crypto/internal/cryptotest"
"crypto/internal/fips140"
"crypto/rand"
. "crypto/rsa"
"crypto/sha1"
@ -1245,6 +1246,9 @@ func TestModifiedPrivateKey(t *testing.T) {
})
t.Run("D+2", func(t *testing.T) {
if fips140.Version() == "v1.0" {
t.Skip("This was fixed after v1.0.0")
}
testModifiedPrivateKey(t, func(k *PrivateKey) {
k.D = new(big.Int).Add(k.D, big.NewInt(2))
})