Skip to content

Commit 3edf1de

Browse files
committed
fix:address pr comments
1 parent 96a8030 commit 3edf1de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cng/aes.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,9 @@ func (g *aesGCM) SealWithRandomNonce(out, nonce, plaintext, additionalData []byt
366366
panic(err)
367367
}
368368
if int(encSize) != len(plaintext) {
369-
panic("crypto/aes: plaintext not fully encrypted")
369+
panic("crypto/cipher: plaintext not fully encrypted")
370370
}
371371
runtime.KeepAlive(g)
372-
return
373372
}
374373

375374
var errOpen = errors.New("cipher: message authentication failed")

0 commit comments

Comments
 (0)