diff --git a/crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go b/crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go index 364d517f..fb9c4afc 100644 --- a/crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go +++ b/crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go @@ -33,7 +33,7 @@ func TestVector(t *testing.T) { ct, _ := hex.DecodeString(cts[i]) byteArr := []byte{byte(i)} - nonce := make([]byte, 24, 24) + nonce := make([]byte, 24) nonce[0] = byteArr[0] plaintext, err := aead.Open(nil, nonce, ct, byteArr)