summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorAlessandro Chitarrini <alessandro.chitarrini51@gmail.com>2024-08-29 12:59:54 +0200
committerTomas Mraz <tomas@openssl.org>2024-09-05 17:24:32 +0200
commitf2b7a00fbb372b0ea32f2cfea865ab407641b1fa (patch)
tree63f827bd7537d9ede0ae87a93f84c10c59b6d807 /demos
parentfeat: add TCG / platform certificate OIDs (diff)
downloadopenssl-f2b7a00fbb372b0ea32f2cfea865ab407641b1fa.tar.xz
openssl-f2b7a00fbb372b0ea32f2cfea865ab407641b1fa.zip
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)
Diffstat (limited to 'demos')
-rw-r--r--demos/cipher/aesccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/cipher/aesccm.c b/demos/cipher/aesccm.c
index 7aec82b893..55d2b5fe6d 100644
--- a/demos/cipher/aesccm.c
+++ b/demos/cipher/aesccm.c
@@ -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 */