diff options
| author | Filippo Valsorda <filippo@golang.org> | 2025-12-17 17:50:07 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-12-17 09:29:08 -0800 |
| commit | eecdb61eebabc083f588a349d4ce5ac2defaf2ca (patch) | |
| tree | 0b6ee3d8728d3d4ddf318c88615103457dbf4546 /src/crypto | |
| parent | 05e41225f6e7e707c196b57b16ade185a7c6aa06 (diff) | |
| download | go-eecdb61eebabc083f588a349d4ce5ac2defaf2ca.tar.xz | |
crypto: rename fips140v2.0 to fips140v1.26
Turns out we can't use non-v1 versions for the FIPS 140-3 module, so we
decided to match the versioning of the Go release the module is frozen
from.
Change-Id: Ib5c13511a51f9930fcde86cd7e8bd39c6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/730740
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/crypto')
| -rw-r--r-- | src/crypto/cipher/gcm_fips140v1.26_test.go (renamed from src/crypto/cipher/gcm_fips140v2.0_test.go) | 4 | ||||
| -rw-r--r-- | src/crypto/hpke/aead_fips140v1.0.go (renamed from src/crypto/hpke/aead_fipsv1.0.go) | 0 | ||||
| -rw-r--r-- | src/crypto/hpke/aead_fips140v1.26.go (renamed from src/crypto/hpke/aead_fipsv2.0.go) | 0 | ||||
| -rw-r--r-- | src/crypto/internal/fips140test/acvp_capabilities_fips140v1.26.json (renamed from src/crypto/internal/fips140test/acvp_capabilities_fips140v2.0.json) | 0 | ||||
| -rw-r--r-- | src/crypto/internal/fips140test/acvp_fips140v1.26_test.go (renamed from src/crypto/internal/fips140test/acvp_fips140v2.0_test.go) | 4 | ||||
| -rw-r--r-- | src/crypto/internal/fips140test/acvp_test_fips140v1.26.config.json (renamed from src/crypto/internal/fips140test/acvp_test_fips140v2.0.config.json) | 0 | ||||
| -rw-r--r-- | src/crypto/internal/fips140test/cast_fips140v1.0_test.go | 2 | ||||
| -rw-r--r-- | src/crypto/internal/fips140test/cast_fips140v1.26_test.go (renamed from src/crypto/internal/fips140test/cast_fips140v2.0_test.go) | 2 | ||||
| -rw-r--r-- | src/crypto/internal/fips140test/cast_test.go | 2 | ||||
| -rw-r--r-- | src/crypto/internal/rand/rand_fips140v1.0.go (renamed from src/crypto/internal/rand/rand_fipsv1.0.go) | 0 | ||||
| -rw-r--r-- | src/crypto/internal/rand/rand_fips140v1.26.go (renamed from src/crypto/internal/rand/rand_fipsv2.0.go) | 0 |
11 files changed, 7 insertions, 7 deletions
diff --git a/src/crypto/cipher/gcm_fips140v2.0_test.go b/src/crypto/cipher/gcm_fips140v1.26_test.go index d3a8ea5c63..9f17a497ca 100644 --- a/src/crypto/cipher/gcm_fips140v2.0_test.go +++ b/src/crypto/cipher/gcm_fips140v1.26_test.go @@ -18,10 +18,10 @@ import ( "testing" ) -func TestGCMNoncesFIPSV2(t *testing.T) { +func TestGCMNoncesFIPSV126(t *testing.T) { cryptotest.MustSupportFIPS140(t) if !fips140.Enabled { - cmd := testenv.Command(t, testenv.Executable(t), "-test.run=^TestGCMNoncesFIPSV2$", "-test.v") + cmd := testenv.Command(t, testenv.Executable(t), "-test.run=^TestGCMNoncesFIPSV126$", "-test.v") cmd.Env = append(cmd.Environ(), "GODEBUG=fips140=on") out, err := cmd.CombinedOutput() t.Logf("running with GODEBUG=fips140=on:\n%s", out) diff --git a/src/crypto/hpke/aead_fipsv1.0.go b/src/crypto/hpke/aead_fips140v1.0.go index 986126cbf9..986126cbf9 100644 --- a/src/crypto/hpke/aead_fipsv1.0.go +++ b/src/crypto/hpke/aead_fips140v1.0.go diff --git a/src/crypto/hpke/aead_fipsv2.0.go b/src/crypto/hpke/aead_fips140v1.26.go index 710eb1c08f..710eb1c08f 100644 --- a/src/crypto/hpke/aead_fipsv2.0.go +++ b/src/crypto/hpke/aead_fips140v1.26.go diff --git a/src/crypto/internal/fips140test/acvp_capabilities_fips140v2.0.json b/src/crypto/internal/fips140test/acvp_capabilities_fips140v1.26.json index 33c8aa235b..33c8aa235b 100644 --- a/src/crypto/internal/fips140test/acvp_capabilities_fips140v2.0.json +++ b/src/crypto/internal/fips140test/acvp_capabilities_fips140v1.26.json diff --git a/src/crypto/internal/fips140test/acvp_fips140v2.0_test.go b/src/crypto/internal/fips140test/acvp_fips140v1.26_test.go index e9ef91537a..10a44f1492 100644 --- a/src/crypto/internal/fips140test/acvp_fips140v2.0_test.go +++ b/src/crypto/internal/fips140test/acvp_fips140v1.26_test.go @@ -12,10 +12,10 @@ import ( "fmt" ) -//go:embed acvp_capabilities_fips140v2.0.json +//go:embed acvp_capabilities_fips140v1.26.json var capabilitiesJson []byte -var testConfigFile = "acvp_test_fips140v2.0.config.json" +var testConfigFile = "acvp_test_fips140v1.26.config.json" func init() { commands["ML-DSA-44/keyGen"] = cmdMlDsaKeyGenAft(mldsa.NewPrivateKey44) diff --git a/src/crypto/internal/fips140test/acvp_test_fips140v2.0.config.json b/src/crypto/internal/fips140test/acvp_test_fips140v1.26.config.json index 51c76d9288..51c76d9288 100644 --- a/src/crypto/internal/fips140test/acvp_test_fips140v2.0.config.json +++ b/src/crypto/internal/fips140test/acvp_test_fips140v1.26.config.json diff --git a/src/crypto/internal/fips140test/cast_fips140v1.0_test.go b/src/crypto/internal/fips140test/cast_fips140v1.0_test.go index 4780966208..b9ddfe4d8b 100644 --- a/src/crypto/internal/fips140test/cast_fips140v1.0_test.go +++ b/src/crypto/internal/fips140test/cast_fips140v1.0_test.go @@ -6,4 +6,4 @@ package fipstest -func fips140v2Conditionals() {} +func fips140v126Conditionals() {} diff --git a/src/crypto/internal/fips140test/cast_fips140v2.0_test.go b/src/crypto/internal/fips140test/cast_fips140v1.26_test.go index 06e0513a7f..ef79068c38 100644 --- a/src/crypto/internal/fips140test/cast_fips140v2.0_test.go +++ b/src/crypto/internal/fips140test/cast_fips140v1.26_test.go @@ -8,7 +8,7 @@ package fipstest import "crypto/internal/fips140/mldsa" -func fips140v2Conditionals() { +func fips140v126Conditionals() { // ML-DSA sign and verify PCT kMLDSA := mldsa.GenerateKey44() // ML-DSA-44 diff --git a/src/crypto/internal/fips140test/cast_test.go b/src/crypto/internal/fips140test/cast_test.go index 5a80006622..817dcb9a35 100644 --- a/src/crypto/internal/fips140test/cast_test.go +++ b/src/crypto/internal/fips140test/cast_test.go @@ -115,7 +115,7 @@ func TestAllCASTs(t *testing.T) { // TestConditionals causes the conditional CASTs and PCTs to be invoked. func TestConditionals(t *testing.T) { - fips140v2Conditionals() + fips140v126Conditionals() // ML-KEM PCT kMLKEM, err := mlkem.GenerateKey768() if err != nil { diff --git a/src/crypto/internal/rand/rand_fipsv1.0.go b/src/crypto/internal/rand/rand_fips140v1.0.go index 29eba7e0bc..29eba7e0bc 100644 --- a/src/crypto/internal/rand/rand_fipsv1.0.go +++ b/src/crypto/internal/rand/rand_fips140v1.0.go diff --git a/src/crypto/internal/rand/rand_fipsv2.0.go b/src/crypto/internal/rand/rand_fips140v1.26.go index 0dc18e7883..0dc18e7883 100644 --- a/src/crypto/internal/rand/rand_fipsv2.0.go +++ b/src/crypto/internal/rand/rand_fips140v1.26.go |
