hasher: Add uppercase short names for hash algorithms
This commit is contained in:
@@ -57,6 +57,24 @@ ENUM_NEXT(hash_algorithm_short_names, HASH_UNKNOWN, HASH_SHA3_512, HASH_IDENTITY
|
|||||||
"sha3_512");
|
"sha3_512");
|
||||||
ENUM_END(hash_algorithm_short_names, HASH_SHA3_512);
|
ENUM_END(hash_algorithm_short_names, HASH_SHA3_512);
|
||||||
|
|
||||||
|
ENUM_BEGIN(hash_algorithm_short_names_upper, HASH_SHA1, HASH_IDENTITY,
|
||||||
|
"SHA1",
|
||||||
|
"SHA256",
|
||||||
|
"SHA384",
|
||||||
|
"SHA512",
|
||||||
|
"IDENTITY");
|
||||||
|
ENUM_NEXT(hash_algorithm_short_names_upper, HASH_UNKNOWN, HASH_SHA3_512, HASH_IDENTITY,
|
||||||
|
"UNKNOWN",
|
||||||
|
"MD2",
|
||||||
|
"MD4",
|
||||||
|
"MD5",
|
||||||
|
"SHA224",
|
||||||
|
"SHA3_224",
|
||||||
|
"SHA3_256",
|
||||||
|
"SHA3_384",
|
||||||
|
"SHA3_512");
|
||||||
|
ENUM_END(hash_algorithm_short_names_upper, HASH_SHA3_512);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Described in header
|
* Described in header
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -73,6 +73,11 @@ extern enum_name_t *hash_algorithm_names;
|
|||||||
*/
|
*/
|
||||||
extern enum_name_t *hash_algorithm_short_names;
|
extern enum_name_t *hash_algorithm_short_names;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Uppercase short names for hash_algorithm_names
|
||||||
|
*/
|
||||||
|
extern enum_name_t *hash_algorithm_short_names_upper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic interface for all hash functions.
|
* Generic interface for all hash functions.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user