]> Cypherpunks.ru repositories - gogost.git/blobdiff - src/cypherpunks.ru/gogost/gost341264/cipher_test.go
Simplify keys and IVs arguments passing: use slices instead of arrays
[gogost.git] / src / cypherpunks.ru / gogost / gost341264 / cipher_test.go
index 592c121452197df03a37760e804744b263b3baf0..814a4ebe111dc39cae268acccaf0b4c6fbab508c 100644 (file)
@@ -23,12 +23,11 @@ import (
 )
 
 func TestCipherInterface(t *testing.T) {
-       var key [32]byte
-       var _ cipher.Block = NewCipher(key)
+       var _ cipher.Block = NewCipher(make([]byte, KeySize))
 }
 
 func TestVector(t *testing.T) {
-       key := [KeySize]byte{
+       key := []byte{
                0xff, 0xee, 0xdd, 0xcc, 0xbb, 0xaa, 0x99, 0x88,
                0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11, 0x00,
                0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,