aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/evp/aesccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/evp/aesccm.c b/demos/evp/aesccm.c
index 375d834845..e8897fbbc1 100644
--- a/demos/evp/aesccm.c
+++ b/demos/evp/aesccm.c
@@ -92,7 +92,7 @@ void aes_ccm_decrypt(void)
/* Specify key and IV */
EVP_DecryptInit_ex(ctx, NULL, NULL, ccm_key, ccm_nonce);
/* Set ciphertext length: only needed if we have AAD */
- EVP_EncryptUpdate(ctx, NULL, &outlen, NULL, sizeof(ccm_ct));
+ EVP_DecryptUpdate(ctx, NULL, &outlen, NULL, sizeof(ccm_ct));
/* Zero or one call to specify any AAD */
EVP_DecryptUpdate(ctx, NULL, &outlen, ccm_adata, sizeof(ccm_adata));
/* Decrypt plaintext, verify tag: can only be called once */