support of ESP AES_XCBC_96
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 19 May 2009 12:52:47 +0000 (14:52 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 19 May 2009 13:45:01 +0000 (15:45 +0200)
src/pluto/constants.c
src/pluto/crypto.c

index 57de132..0ca0f8b 100644 (file)
@@ -363,7 +363,7 @@ static const char *const ah_transform_name[] = {
        "HMAC_SHA2_384",
        "HMAC_SHA2_512",
        "HMAC_RIPEMD",
-       "AES_XCBC_MAC",
+       "AES_XCBC_96",
        "SIG_RSA"
 };
 
@@ -672,7 +672,7 @@ static const char *const auth_alg_name[] = {
        "HMAC_SHA2_384",
        "HMAC_SHA2_512",
        "HMAC_RIPEMD",
-       "AES_XCBC_MAC",
+       "AES_XCBC_96",
        "SIG_RSA"
 };
 
index e692ef1..7daf283 100644 (file)
@@ -376,6 +376,8 @@ int esp_from_integrity_algorithm(integrity_algorithm_t alg)
                        return AUTH_ALGORITHM_HMAC_MD5;
                case AUTH_HMAC_SHA1_96:
                        return AUTH_ALGORITHM_HMAC_SHA1;
+               case AUTH_AES_XCBC_96:
+                       return AUTH_ALGORITHM_AES_XCBC_MAC;
                case AUTH_HMAC_SHA2_256_128:
                        return AUTH_ALGORITHM_HMAC_SHA2_256;
                case AUTH_HMAC_SHA2_384_192: