From: Tomas Mraz Date: Wed, 12 Oct 2022 09:26:43 +0000 (+0200) Subject: demos/mac/cmac-aes256: Clarify the cipher algorithm used X-Git-Tag: openssl-3.2.0-alpha1~1761 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=9270f67059e0291a2ef73acfba5a4ac54f732ef9 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 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/19401) --- 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) {