please the linter gods:
crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go:36:25⚠️ should use make([]byte, 24) instead (S1019) (gosimple)
This commit is contained in:
parent
8329b86570
commit
f3d755f5e8
|
@ -33,7 +33,7 @@ func TestVector(t *testing.T) {
|
||||||
ct, _ := hex.DecodeString(cts[i])
|
ct, _ := hex.DecodeString(cts[i])
|
||||||
|
|
||||||
byteArr := []byte{byte(i)}
|
byteArr := []byte{byte(i)}
|
||||||
nonce := make([]byte, 24, 24)
|
nonce := make([]byte, 24)
|
||||||
nonce[0] = byteArr[0]
|
nonce[0] = byteArr[0]
|
||||||
|
|
||||||
plaintext, err := aead.Open(nil, nonce, ct, byteArr)
|
plaintext, err := aead.Open(nil, nonce, ct, byteArr)
|
||||||
|
|
Loading…
Reference in New Issue