Browse Source

please the linter gods:

crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go:36:25:warning: should use make([]byte, 24) instead (S1019) (gosimple)
pull/1782/head
Liamsi 6 years ago
parent
commit
f3d755f5e8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go

+ 1
- 1
crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go 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)


Loading…
Cancel
Save