// TestHash performs a set of tests on hash.Hash implementations, checking the
// documented requirements of Write, Sum, Reset, Size, and BlockSize.
func TestHash(t *testing.T, mh MakeHash) {
- if boring.Enabled || fips140.Version() == "v1.0" {
+ if boring.Enabled || fips140.Version() == "v1.0.0" {
testhash.TestHashWithoutClone(t, testhash.MakeHash(mh))
return
}
return "Go Cryptographic Module"
}
-// Version returns the formal version (such as "v1.0") if building against a
+// Version returns the formal version (such as "v1.0.0") if building against a
// frozen module with GOFIPS140. Otherwise, it returns "latest".
func Version() string {
// This return value is replaced by mkzip.go, it must not be changed or
continue
}
exp := setting.Value
- if exp == "v1.0.0" {
- // Unfortunately we enshrined the version of the first module as
- // v1.0 before deciding to go for full versions.
- exp = "v1.0"
- }
if v := fips140.Version(); v != exp {
t.Errorf("Version is %q, expected %q", v, exp)
}
})
t.Run("D+2", func(t *testing.T) {
- if fips140.Version() == "v1.0" {
+ if fips140.Version() == "v1.0.0" {
t.Skip("This was fixed after v1.0.0")
}
testModifiedPrivateKey(t, func(k *PrivateKey) {