22 #include <openssl/hmac.h> 23 #include <openssl/rand.h> 24 #include <openssl/evp.h> 34 unsigned char auth_data[0];
42 }) ip4_and_ah_header_t;
49 }) ip6_and_ah_header_t;
55 ASSERT (0 == is_ipv6 || 1 == is_ipv6);
56 const u8 req_multiple = 4 + 4 * is_ipv6;
58 return (req_multiple - total_size % req_multiple) % req_multiple;
static u8 ah_calc_icv_padding_len(u8 icv_size, int is_ipv6)
typedef CLIB_PACKED(struct { ip4_header_t ip4;ah_header_t ah;}) ip4_and_ah_header_t