We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a5256b commit 4550814Copy full SHA for 4550814
1 file changed
wolfcrypt/src/chacha20_poly1305.c
@@ -313,7 +313,7 @@ int wc_XChaCha20Poly1305_Init(
313
byte authKey[CHACHA20_POLY1305_AEAD_KEYSIZE];
314
int ret;
315
316
- if ((ad == NULL) || (nonce == NULL) || (key == NULL))
+ if ((aead == NULL) || (nonce == NULL) || (key == NULL))
317
return BAD_FUNC_ARG;
318
319
if ((key_len != CHACHA20_POLY1305_AEAD_KEYSIZE) ||
0 commit comments