This commit is contained in:
Wade Simmons
2026-06-09 10:30:51 -04:00
parent 7cd3875934
commit 06fb503fc3
8 changed files with 61 additions and 35 deletions
+4 -1
View File
@@ -33,7 +33,10 @@ func TestNewAESGCM(t *testing.T) {
assert.Equal(t, expected, dst)
// We expect this to fail since we are re-encrypting with a repeat IV
assert.PanicsWithValue(t, "crypto/cipher: counter decreased or remained the same", func() {
// TODO: the error message has changed between fips module versions, best way to verify it?
// assert.PanicsWithValue(t, "crypto/cipher: counter decreased", func() {
// assert.PanicsWithValue(t, "crypto/cipher: counter decreased or remained the same", func() {
assert.Panics(t, func() {
dst = aead.Seal([]byte{}, iv, plaintext, aad)
})
}