Skip to content

Commit d6cc23f

Browse files
mdoschgearnode
authored andcommitted
Remove duplicate code.
1 parent b21b3e6 commit d6cc23f

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

gcm.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ const (
5757
// establishing proper trust for cryptographic code in a security-focused project like
5858
// this would be challenging.
5959
func newGCMWithNonceOrTagSize(block cipher.Block, nonceSize, tagSize int) (cipher.AEAD, error) {
60-
if nonceSize == gcmStandardNonceSize && tagSize == gcmStandardTagSize {
61-
return cipher.NewGCM(block)
62-
}
63-
6460
// For standard parameters, use the standard implementation
6561
if nonceSize == gcmStandardNonceSize && tagSize == gcmStandardTagSize {
6662
return cipher.NewGCM(block)

0 commit comments

Comments
 (0)