ipsec: esp-encrypt rework
[vpp.git] / src / vnet / crypto / crypto.h
index 9f4c85b..4ce4d25 100644 (file)
@@ -28,6 +28,7 @@
   _(AES_256_CBC, "aes-256-cbc")
 
 #define foreach_hmac_alg \
+  _(MD5, "md5") \
   _(SHA1, "sha-1") \
   _(SHA224, "sha-224")  \
   _(SHA256, "sha-256")  \
@@ -76,7 +77,7 @@ typedef struct
   CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
   vnet_crypto_op_type_t op:16;
   vnet_crypto_op_status_t status:8;
-  u8 key_len;
+  u8 key_len, hmac_trunc_len;
   u16 flags;
 #define VNET_CRYPTO_OP_FLAG_INIT_IV 1
   u32 len;
@@ -84,6 +85,7 @@ typedef struct
   u8 *iv;
   u8 *src;
   u8 *dst;
+  uword user_data;
 } vnet_crypto_op_t;
 
 typedef struct