mirror of
https://github.com/openssl/openssl.git
synced 2024-11-23 10:03:32 +08:00
Fix inaccurate comment about default nonce length in demos/cipher/aesccm.c
Fixes #25270 CLA: trivial Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/25318)
This commit is contained in:
parent
9183306815
commit
f2b7a00fbb
@ -94,7 +94,7 @@ static int aes_ccm_encrypt(void)
|
||||
if ((cipher = EVP_CIPHER_fetch(libctx, "AES-192-CCM", propq)) == NULL)
|
||||
goto err;
|
||||
|
||||
/* Set nonce length if default 96 bits is not appropriate */
|
||||
/* Default nonce length for AES-CCM is 7 bytes (56 bits). */
|
||||
params[0] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_AEAD_IVLEN,
|
||||
&ccm_nonce_len);
|
||||
/* Set tag length */
|
||||
|
Loading…
Reference in New Issue
Block a user