adding enum elements for MD4 and DES (ECB)
authorTobias Brunner <tobias@strongswan.org>
Wed, 18 Feb 2009 19:45:46 +0000 (19:45 -0000)
committerTobias Brunner <tobias@strongswan.org>
Wed, 18 Feb 2009 19:45:46 +0000 (19:45 -0000)
src/libstrongswan/crypto/crypters/crypter.c
src/libstrongswan/crypto/crypters/crypter.h
src/libstrongswan/crypto/hashers/hasher.c
src/libstrongswan/crypto/hashers/hasher.h

index 879cf60..9fcb3e3 100644 (file)
@@ -41,5 +41,7 @@ ENUM_NEXT(encryption_algorithm_names, ENCR_AES_GCM_ICV8, ENCR_AES_GCM_ICV16, ENC
        "AES_GCM_8",
        "AES_GCM_12",
        "AES_GCM_16");
-ENUM_END(encryption_algorithm_names, ENCR_AES_GCM_ICV16);
+ENUM_NEXT(encryption_algorithm_names, ENCR_DES_ECB, ENCR_DES_ECB, ENCR_AES_GCM_ICV16,
+       "DES_ECB");
+ENUM_END(encryption_algorithm_names, ENCR_DES_ECB);
 
index 345d7ab..03678ad 100644 (file)
@@ -51,7 +51,8 @@ enum encryption_algorithm_t {
     ENCR_AES_CCM_ICV16 = 16,
     ENCR_AES_GCM_ICV8 = 18,
     ENCR_AES_GCM_ICV12 = 19,
-    ENCR_AES_GCM_ICV16 = 20
+    ENCR_AES_GCM_ICV16 = 20,
+    ENCR_DES_ECB = 1024
 };
 
 /**
index ce208a1..1afd2f6 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <asn1/oid.h>
 
-ENUM(hash_algorithm_names, HASH_UNKNOWN, HASH_SHA512,
+ENUM(hash_algorithm_names, HASH_UNKNOWN, HASH_MD4,
        "HASH_UNKNOWN",
        "HASH_PREFERRED",
        "HASH_MD2",
@@ -29,7 +29,8 @@ ENUM(hash_algorithm_names, HASH_UNKNOWN, HASH_SHA512,
        "HASH_SHA1",
        "HASH_SHA256",
        "HASH_SHA384",
-       "HASH_SHA512"
+       "HASH_SHA512",
+       "HASH_MD4"
 );
 
 /*
index a374da0..271d870 100644 (file)
@@ -44,9 +44,11 @@ enum hash_algorithm_t {
        HASH_SHA256             = 5,
        HASH_SHA384             = 6,
        HASH_SHA512             = 7,
+       HASH_MD4                        = 8,
 };
 
 #define HASH_SIZE_MD2          16
+#define HASH_SIZE_MD4          16
 #define HASH_SIZE_MD5          16
 #define HASH_SIZE_SHA1         20
 #define HASH_SIZE_SHA256       32