]> Cypherpunks repositories - gogost.git/commitdiff
Remove unused argument
authorSergey Matveev <stargrave@stargrave.org>
Fri, 25 Oct 2024 12:01:01 +0000 (15:01 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 25 Oct 2024 12:01:01 +0000 (15:01 +0300)
mgm/mode_test.go

index 3cef6ecdb6f28e9a8f4eb3e0dddf6b9609fec81a..a2cd1fe335490dee0ed92a4f7dce5263bc96b647 100644 (file)
@@ -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],