cmac: enumerate cipher algorithms

Identify the CMAC ciphers with an enum instead of string.
This commit is contained in:
Miroslav Lichvar
2020-05-13 13:35:52 +02:00
parent a8c8f2f309
commit 972c476c5a
8 changed files with 52 additions and 19 deletions

View File

@@ -2985,7 +2985,7 @@ process_cmd_keygen(char *line)
;
#ifdef HAVE_CMAC
cmac_length = CMC_GetKeyLength(type);
cmac_length = CMC_GetKeyLength(UTI_CmacNameToAlgorithm(type));
#else
cmac_length = 0;
#endif