Skip to content

Commit

Permalink
Fix:revert changes from copied files from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
mertakman committed Sep 30, 2024
1 parent 0cab9ad commit 709efd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cryptotest/aead.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func TestAEAD(t *testing.T, mAEAD MakeAEAD) {
// Perturb the nonce and check for an error when Opening
alterNonce := make([]byte, aead.NonceSize())
copy(alterNonce, nonce)
alterNonce[len(alterNonce)-1]++
alterNonce[len(alterNonce)-1] += 1
_, err := aead.Open(nil, alterNonce, ciphertext, addData)

if err == nil {
Expand Down Expand Up @@ -308,7 +308,7 @@ func TestAEAD(t *testing.T, mAEAD MakeAEAD) {
// Perturb the Additional Data and check for an error when Opening
alterAD := make([]byte, adLen)
copy(alterAD, addData)
alterAD[len(alterAD)-1]++
alterAD[len(alterAD)-1] += 1
_, err := aead.Open(nil, nonce, ciphertext, alterAD)

if err == nil {
Expand Down

0 comments on commit 709efd6

Please sign in to comment.