From 597cee84d373c6f9ed389107bb454a0fd1a86549 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Tue, 19 May 2009 14:52:47 +0200 Subject: [PATCH] support of ESP AES_XCBC_96 --- src/pluto/constants.c | 4 ++-- src/pluto/crypto.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pluto/constants.c b/src/pluto/constants.c index 57de1324e..0ca0f8b44 100644 --- a/src/pluto/constants.c +++ b/src/pluto/constants.c @@ -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" }; diff --git a/src/pluto/crypto.c b/src/pluto/crypto.c index e692ef17c..7daf2835c 100644 --- a/src/pluto/crypto.c +++ b/src/pluto/crypto.c @@ -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: