diff options
author | Richard Levitte <levitte@openssl.org> | 2019-08-15 12:39:20 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-08-19 08:10:16 +0200 |
commit | 81ff9eebbcf15ce04b52cc4257b265617ba412eb (patch) | |
tree | 41a8d094bed2e3bfaa2b5f323134ca63241ee72b /providers | |
parent | faee6b21048623a422d537cdbad24f50c5c21937 (diff) |
Use macros internally for algorithm names
The macros are defined in include/openssl/core_names.h and follow the
naming standard OSSL_{OPNAME}_NAME_{ALGONAME}, where {OPNAME} is the
name of the operation (such as MAC) and {ALGONAME} is the name of the
algorithm. Example: OSSL_MAC_NAME_HMAC
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9635)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/common/macs/kmac_prov.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/providers/common/macs/kmac_prov.c b/providers/common/macs/kmac_prov.c index 84c8fce2c9..70dad09794 100644 --- a/providers/common/macs/kmac_prov.c +++ b/providers/common/macs/kmac_prov.c @@ -203,12 +203,12 @@ static void *kmac_fetch_new(void *provctx, const char *mdname) static void *kmac128_new(void *provctx) { - return kmac_fetch_new(provctx, "KECCAK_KMAC128"); + return kmac_fetch_new(provctx, OSSL_DIGEST_NAME_KECCAK_KMAC128); } static void *kmac256_new(void *provctx) { - return kmac_fetch_new(provctx, "KECCAK_KMAC256"); + return kmac_fetch_new(provctx, OSSL_DIGEST_NAME_KECCAK_KMAC256); } static void *kmac_dup(void *vsrc) |