]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/rsa: don't test CL 687836 against v1.0.0 FIPS 140-3 module
authorFilippo Valsorda <filippo@golang.org>
Wed, 10 Sep 2025 21:06:39 +0000 (23:06 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 11 Sep 2025 17:30:33 +0000 (10:30 -0700)
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>
src/crypto/rsa/rsa_test.go

index f438b3696db07db2e34553a815ecaeb2f7b1096f..d471ecbf8375f36bb680f16ee496fd1f271b2090 100644 (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))
                })