inserted HASH_MD4 in increasing order
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 7 May 2009 21:19:19 +0000 (23:19 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 7 May 2009 21:19:19 +0000 (23:19 +0200)
src/libstrongswan/crypto/hashers/hasher.c
src/libstrongswan/crypto/hashers/hasher.h

index 535a694..c58c2ad 100644 (file)
 
 #include <asn1/oid.h>
 
 
 #include <asn1/oid.h>
 
-ENUM(hash_algorithm_names, HASH_UNKNOWN, HASH_MD4,
+ENUM(hash_algorithm_names, HASH_UNKNOWN, HASH_SHA512,
        "HASH_UNKNOWN",
        "HASH_PREFERRED",
        "HASH_MD2",
        "HASH_UNKNOWN",
        "HASH_PREFERRED",
        "HASH_MD2",
+       "HASH_MD4",
        "HASH_MD5",
        "HASH_SHA1",
        "HASH_SHA256",
        "HASH_SHA384",
        "HASH_MD5",
        "HASH_SHA1",
        "HASH_SHA256",
        "HASH_SHA384",
-       "HASH_SHA512",
-       "HASH_MD4"
+       "HASH_SHA512"
 );
 
 /*
 );
 
 /*
index 79d4fdf..098739f 100644 (file)
@@ -37,12 +37,12 @@ enum hash_algorithm_t {
        /** preferred hash function, general purpose */
        HASH_PREFERRED          = 1,
        HASH_MD2                        = 2,
        /** preferred hash function, general purpose */
        HASH_PREFERRED          = 1,
        HASH_MD2                        = 2,
-       HASH_MD5                        = 3,
-       HASH_SHA1                       = 4,
-       HASH_SHA256             = 5,
-       HASH_SHA384             = 6,
-       HASH_SHA512             = 7,
-       HASH_MD4                        = 8,
+       HASH_MD4                        = 3,
+       HASH_MD5                        = 4,
+       HASH_SHA1                       = 5,
+       HASH_SHA256             = 6,
+       HASH_SHA384             = 7,
+       HASH_SHA512             = 8
 };
 
 #define HASH_SIZE_MD2          16
 };
 
 #define HASH_SIZE_MD2          16