From: Sergey Matveev Date: Fri, 25 Oct 2024 12:01:01 +0000 (+0300) Subject: Remove unused argument X-Git-Tag: v6.0.2~5 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=61bd893c42dc22695dd7f54da7a85584c0add576;p=gogost.git Remove unused argument --- diff --git a/mgm/mode_test.go b/mgm/mode_test.go index 3cef6ec..a2cd1fe 100644 --- a/mgm/mode_test.go +++ b/mgm/mode_test.go @@ -86,7 +86,7 @@ func TestVector(t *testing.T) { } func TestSymmetric(t *testing.T) { - sym := func(keySize, blockSize int, c cipher.Block, nonce []byte) { + sym := func(blockSize int, c cipher.Block, nonce []byte) { f := func( plaintext, additionalData []byte, initials [][]byte, @@ -131,7 +131,6 @@ func TestSymmetric(t *testing.T) { panic(err) } sym( - gost3412128.KeySize, gost3412128.BlockSize, gost3412128.NewCipher(key128[:]), nonce[:gost3412128.BlockSize], @@ -140,7 +139,6 @@ func TestSymmetric(t *testing.T) { key64 := new([gost341264.KeySize]byte) copy(key64[:], key128[:]) sym( - gost341264.KeySize, gost341264.BlockSize, gost341264.NewCipher(key64[:]), nonce[:gost341264.BlockSize],