aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-11-17 09:31:19 +0100
committerTobias Brunner <tobias@strongswan.org>2017-11-17 09:32:47 +0100
commitf7a73fe0f7f6303c1d38308cb3b2e05ab147cd9b (patch)
tree7091d03d6e34957f365ee4564132732dc651ea72
parent36ae037b81c03528af0dfbadbb4f4a823beece50 (diff)
downloadstrongswan-f7a73fe0f7f6303c1d38308cb3b2e05ab147cd9b.tar.bz2
strongswan-f7a73fe0f7f6303c1d38308cb3b2e05ab147cd9b.tar.xz
hashers: Change names of SHA2 hash algorithms
Keep the lower case names as they are as we use them internally (parsing and e.g. in OpenSSL as identifier).
-rw-r--r--src/libstrongswan/crypto/hashers/hasher.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libstrongswan/crypto/hashers/hasher.c b/src/libstrongswan/crypto/hashers/hasher.c
index 9f9fcd38d..2bd55ad2e 100644
--- a/src/libstrongswan/crypto/hashers/hasher.c
+++ b/src/libstrongswan/crypto/hashers/hasher.c
@@ -23,16 +23,16 @@
ENUM_BEGIN(hash_algorithm_names, HASH_SHA1, HASH_IDENTITY,
"HASH_SHA1",
- "HASH_SHA256",
- "HASH_SHA384",
- "HASH_SHA512",
+ "HASH_SHA2_256",
+ "HASH_SHA2_384",
+ "HASH_SHA2_512",
"HASH_IDENTITY");
ENUM_NEXT(hash_algorithm_names, HASH_UNKNOWN, HASH_SHA3_512, HASH_IDENTITY,
"HASH_UNKNOWN",
"HASH_MD2",
"HASH_MD4",
"HASH_MD5",
- "HASH_SHA224",
+ "HASH_SHA2_224",
"HASH_SHA3_224",
"HASH_SHA3_256",
"HASH_SHA3_384",
@@ -59,16 +59,16 @@ ENUM_END(hash_algorithm_short_names, HASH_SHA3_512);
ENUM_BEGIN(hash_algorithm_short_names_upper, HASH_SHA1, HASH_IDENTITY,
"SHA1",
- "SHA256",
- "SHA384",
- "SHA512",
+ "SHA2_256",
+ "SHA2_384",
+ "SHA2_512",
"IDENTITY");
ENUM_NEXT(hash_algorithm_short_names_upper, HASH_UNKNOWN, HASH_SHA3_512, HASH_IDENTITY,
"UNKNOWN",
"MD2",
"MD4",
"MD5",
- "SHA224",
+ "SHA2_224",
"SHA3_224",
"SHA3_256",
"SHA3_384",