Add short names for hasher algorithms
[strongswan.git] / src / libstrongswan / crypto / hashers / hasher.c
index e0a4995..dc73d52 100644 (file)
@@ -32,6 +32,19 @@ ENUM(hash_algorithm_names, HASH_UNKNOWN, HASH_SHA512,
        "HASH_SHA512"
 );
 
+ENUM(hash_algorithm_short_names, HASH_UNKNOWN, HASH_SHA512,
+       "unknown",
+       "preferred",
+       "md2",
+       "md4",
+       "md5",
+       "sha1",
+       "sha224",
+       "sha256",
+       "sha384",
+       "sha512"
+);
+
 /*
  * Described in header.
  */