Skip to content

Commit

Permalink
demos/mac/cmac-aes256: Clarify the cipher algorithm used
Browse files Browse the repository at this point in the history
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 #19401)

(cherry picked from commit 9270f67)
  • Loading branch information
t8m committed Nov 11, 2022
1 parent 985eb23 commit 66c4f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/mac/cmac-aes256.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 66c4f14

Please sign in to comment.