}
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,
panic(err)
}
sym(
- gost3412128.KeySize,
gost3412128.BlockSize,
gost3412128.NewCipher(key128[:]),
nonce[:gost3412128.BlockSize],
key64 := new([gost341264.KeySize]byte)
copy(key64[:], key128[:])
sym(
- gost341264.KeySize,
gost341264.BlockSize,
gost341264.NewCipher(key64[:]),
nonce[:gost341264.BlockSize],