mirror of
https://github.com/golang/go.git
synced 2025-11-03 18:20:59 +00:00
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:
parent
253dd08f5d
commit
c349582344
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import (
|
||||||
"crypto"
|
"crypto"
|
||||||
"crypto/internal/boring"
|
"crypto/internal/boring"
|
||||||
"crypto/internal/cryptotest"
|
"crypto/internal/cryptotest"
|
||||||
|
"crypto/internal/fips140"
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
. "crypto/rsa"
|
. "crypto/rsa"
|
||||||
"crypto/sha1"
|
"crypto/sha1"
|
||||||
|
|
@ -1245,6 +1246,9 @@ func TestModifiedPrivateKey(t *testing.T) {
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("D+2", func(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) {
|
testModifiedPrivateKey(t, func(k *PrivateKey) {
|
||||||
k.D = new(big.Int).Add(k.D, big.NewInt(2))
|
k.D = new(big.Int).Add(k.D, big.NewInt(2))
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue