X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fmgm%2Fmode_test.go;h=c4f28daa71833b9e8dfb9cd7008c0f7722191c47;hb=69e668f3499122e0b1140f3bd927de41ad279b94;hp=84f0ef160846614d28adee094ed907bd2d104db7;hpb=9be6f384bae8ebeabc129ede9f8a597de12835d3;p=gogost.git diff --git a/src/cypherpunks.ru/gogost/mgm/mode_test.go b/src/cypherpunks.ru/gogost/mgm/mode_test.go index 84f0ef1..c4f28da 100644 --- a/src/cypherpunks.ru/gogost/mgm/mode_test.go +++ b/src/cypherpunks.ru/gogost/mgm/mode_test.go @@ -28,7 +28,7 @@ import ( ) func TestVector(t *testing.T) { - key := [gost3412128.KeySize]byte{ + key := []byte{ 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10, @@ -133,7 +133,7 @@ func TestSymmetric(t *testing.T) { sym( gost3412128.KeySize, gost3412128.BlockSize, - gost3412128.NewCipher(*key128), + gost3412128.NewCipher(key128[:]), nonce[:gost3412128.BlockSize], ) @@ -142,7 +142,7 @@ func TestSymmetric(t *testing.T) { sym( gost341264.KeySize, gost341264.BlockSize, - gost341264.NewCipher(*key64), + gost341264.NewCipher(key64[:]), nonce[:gost341264.BlockSize], ) }