aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/constants.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2009-12-01 18:17:37 +0100
committerTobias Brunner <tobias@strongswan.org>2010-02-12 10:57:39 +0100
commit71baf5a8f0f80fa3d2a03cfb597b6babe33394dd (patch)
tree6b0cb11fded48e7b3335a15d3fb73553c3b0b68a /src/pluto/constants.h
parent2aa553d773ef1c6b39ba441ee56b407eda91e7b8 (diff)
downloadstrongswan-71baf5a8f0f80fa3d2a03cfb597b6babe33394dd.tar.bz2
strongswan-71baf5a8f0f80fa3d2a03cfb597b6babe33394dd.tar.xz
Adding support for AES GMAC (RFC4543).
Diffstat (limited to 'src/pluto/constants.h')
-rw-r--r--src/pluto/constants.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pluto/constants.h b/src/pluto/constants.h
index 8c574ebc5..e9567c07a 100644
--- a/src/pluto/constants.h
+++ b/src/pluto/constants.h
@@ -125,10 +125,10 @@ extern const char sparse_end[];
#define MAX_DIGEST_LEN HASH_SIZE_SHA512
/* RFC 2404 "HMAC-SHA-1-96" section 3 */
-#define HMAC_SHA1_KEY_LEN HASH_SIZE_SHA1
+#define HMAC_SHA1_KEY_LEN HASH_SIZE_SHA1
/* RFC 2403 "HMAC-MD5-96" section 3 */
-#define HMAC_MD5_KEY_LEN HASH_SIZE_MD5
+#define HMAC_MD5_KEY_LEN HASH_SIZE_MD5
#define IKE_UDP_PORT 500
@@ -150,7 +150,7 @@ enum ipsec_authentication_algo {
AH_AES_128_GMAC = 11,
AH_AES_192_GMAC = 12,
AH_AES_256_GMAC = 13,
- AH_SHA2_256_96 = 252
+ AH_SHA2_256_96 = 252
};
extern enum_names ah_transform_names;
@@ -184,6 +184,7 @@ enum ipsec_cipher_algo {
ESP_AES_GCM_16 = 20,
ESP_SEED_CBC = 21,
ESP_CAMELLIA = 22,
+ ESP_AES_GMAC = 23,
ESP_SERPENT = 252,
ESP_TWOFISH = 253
};