IPSEC: support GCM in ESP
[vpp.git] / src / vnet / crypto / crypto.h
index 92b65a4..901c363 100644 (file)
   _(3DES_CBC,    "3des-cbc") \
   _(AES_128_CBC, "aes-128-cbc") \
   _(AES_192_CBC, "aes-192-cbc") \
-  _(AES_256_CBC, "aes-256-cbc")
+  _(AES_256_CBC, "aes-256-cbc") \
+  _(AES_128_CTR, "aes-128-ctr") \
+  _(AES_192_CTR, "aes-192-ctr") \
+  _(AES_256_CTR, "aes-256-ctr")
 
 #define foreach_crypto_aead_alg \
   _(AES_128_GCM, "aes-128-gcm") \
@@ -112,7 +115,7 @@ typedef struct
   u8 flags;
 #define VNET_CRYPTO_OP_FLAG_INIT_IV (1 << 0)
 #define VNET_CRYPTO_OP_FLAG_HMAC_CHECK (1 << 1)
-  u32 len;
+  u32 len, salt;
   u16 aad_len;
   u8 key_len, iv_len, digest_len, tag_len;
   u8 *key;