Skip to content

Commit

Permalink
fix flaky aes decrypt test
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Nov 14, 2024
1 parent 909c4af commit 3747435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/aes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func TestDecryptAES(t *testing.T) {
{
name: "Tampered ciphertext",
nonce: validNonce,
cipherText: append([]byte{0}, validCiphertext[AESNonceSize+1:]...),
cipherText: append([]byte{^validCiphertext[AESNonceSize]}, validCiphertext[AESNonceSize+1:]...),
key: validKey,
additionalData: validAAD,
expectError: true,
Expand Down

0 comments on commit 3747435

Please sign in to comment.