please the linter gods:

crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go:36:25⚠️ should use make([]byte, 24) instead (S1019) (gosimple)
This commit is contained in:
Liamsi 2018-06-20 20:29:12 -07:00
parent 8329b86570
commit f3d755f5e8
1 changed files with 1 additions and 1 deletions

View File

@ -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)