X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fgost341264%2Fcipher_test.go;h=814a4ebe111dc39cae268acccaf0b4c6fbab508c;hb=69e668f3499122e0b1140f3bd927de41ad279b94;hp=592c121452197df03a37760e804744b263b3baf0;hpb=9be6f384bae8ebeabc129ede9f8a597de12835d3;p=gogost.git diff --git a/src/cypherpunks.ru/gogost/gost341264/cipher_test.go b/src/cypherpunks.ru/gogost/gost341264/cipher_test.go index 592c121..814a4eb 100644 --- a/src/cypherpunks.ru/gogost/gost341264/cipher_test.go +++ b/src/cypherpunks.ru/gogost/gost341264/cipher_test.go @@ -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,