summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2022-10-12 11:26:43 +0200
committerTomas Mraz <tomas@openssl.org>2022-11-11 16:56:35 +0100
commit66c4f141369f29b61159a9f77e33e15b9d1c6638 (patch)
treea73672cb610a300d21a3e86b3d5035a6b07aaef1 /demos
parent985eb23fbf83c1b83ca13798a9c84c8abfe7edc9 (diff)
demos/mac/cmac-aes256: Clarify the cipher algorithm used
The currently used cipher is aes256 which is an alias to AES-256-CBC, so the demo is correct. However it might be misleading so make it clear the CBC mode cipher is used. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19401) (cherry picked from commit 9270f67059e0291a2ef73acfba5a4ac54f732ef9)
Diffstat (limited to 'demos')
-rw-r--r--demos/mac/cmac-aes256.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/mac/cmac-aes256.c b/demos/mac/cmac-aes256.c
index 6f4fd78b69..9b91a404a8 100644
--- a/demos/mac/cmac-aes256.c
+++ b/demos/mac/cmac-aes256.c
@@ -72,7 +72,7 @@ int main(void)
unsigned char *out = NULL;
size_t out_len = 0;
OSSL_PARAM params[4], *p = params;
- char cipher_name[] = "aes256";
+ char cipher_name[] = "AES-256-CBC";
library_context = OSSL_LIB_CTX_new();
if (library_context == NULL) {