X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fgost28147%2Fcipher_test.go;h=36f7d503c7f6523e958a90930e15493b91b85bde;hb=69e668f3499122e0b1140f3bd927de41ad279b94;hp=fcb0456c05e270a820107755ae8b6328c617d498;hpb=9be6f384bae8ebeabc129ede9f8a597de12835d3;p=gogost.git diff --git a/src/cypherpunks.ru/gogost/gost28147/cipher_test.go b/src/cypherpunks.ru/gogost/gost28147/cipher_test.go index fcb0456..36f7d50 100644 --- a/src/cypherpunks.ru/gogost/gost28147/cipher_test.go +++ b/src/cypherpunks.ru/gogost/gost28147/cipher_test.go @@ -23,8 +23,7 @@ import ( ) func TestCipherInterface(t *testing.T) { - var key [32]byte - var _ cipher.Block = NewCipher(key, SboxDefault) + var _ cipher.Block = NewCipher(make([]byte, KeySize), SboxDefault) } func BenchmarkCipher(b *testing.B) { @@ -33,7 +32,7 @@ func BenchmarkCipher(b *testing.B) { dst := make([]byte, BlockSize) src := make([]byte, BlockSize) rand.Read(src) - c := NewCipher(key, SboxDefault) + c := NewCipher(key[:], SboxDefault) b.ResetTimer() for i := 0; i < b.N; i++ { c.Encrypt(dst, src)