From c34958234414a6ec8512967b3681d45314b50d3a Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Wed, 10 Sep 2025 23:06:39 +0200 Subject: [PATCH] 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 Reviewed-by: Michael Pratt Reviewed-by: Daniel McCarney LUCI-TryBot-Result: Go LUCI Reviewed-by: Mark Freeman --- src/crypto/rsa/rsa_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/rsa/rsa_test.go b/src/crypto/rsa/rsa_test.go index f438b3696d..d471ecbf83 100644 --- a/src/crypto/rsa/rsa_test.go +++ b/src/crypto/rsa/rsa_test.go @@ -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)) }) -- 2.52.0