From 7ed9f1afb547139d794d1f56ac5f80941968dc12 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Sat, 11 Oct 2025 16:11:45 +0200 Subject: [PATCH] Remove duplicate code. --- gcm.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gcm.go b/gcm.go index 22fd87f..3d2292e 100644 --- a/gcm.go +++ b/gcm.go @@ -57,10 +57,6 @@ const ( // establishing proper trust for cryptographic code in a security-focused project like // this would be challenging. func newGCMWithNonceOrTagSize(block cipher.Block, nonceSize, tagSize int) (cipher.AEAD, error) { - if nonceSize == gcmStandardNonceSize && tagSize == gcmStandardTagSize { - return cipher.NewGCM(block) - } - // For standard parameters, use the standard implementation if nonceSize == gcmStandardNonceSize && tagSize == gcmStandardTagSize { return cipher.NewGCM(block)