src/dpdk/lib/librte_ipsec/crypto.h
static inline void
aead_gcm_aad_fill(struct aead_gcm_aad *aad, rte_be32_t spi, rte_be64_t sqn,
	int esn)
{
	aad->spi = spi;
	if (esn)
		aad->sqn.u64 = sqn;
	else {
		aad->sqn.u32[0] = sqn_low32(sqn);
		aad->sqn.u32[1] = 0;
	}
	aad->align0 = 0;
}
/*
 * RFC 4106, 5 AAD Construction
 * spi and sqn should already be converted into network byte order.
 * Make sure that not used bytes are zeroed.
 */
RFC 4106, 5 AAD Construction
spi and sqn should already be converted into network byte order.
Make sure that not used bytes are zeroed.
RFC 4106 5 AAD Construction spi and sqn should already be converted into network byte order . Make sure that not used bytes are zeroed .
static inline void
aead_gcm_aad_fill(struct aead_gcm_aad *aad, rte_be32_t spi, rte_be64_t sqn,
	int esn)
{
	aad->spi = spi;
	if (esn)
		aad->sqn.u64 = sqn;
	else {
		aad->sqn.u32[0] = sqn_low32(sqn);
		aad->sqn.u32[1] = 0;
	}
	aad->align0 = 0;
}
static inline void aead_gcm_aad_fill ( struct aead_gcm_aad * aad , rte_be32_t spi , rte_be64_t sqn , int esn ) { aad -> spi = spi ; if ( esn ) aad -> sqn . u64 = sqn ; else { aad -> sqn . u32 [ 0 ] = sqn_low32 ( sqn ) ; aad -> sqn . u32 [ 1 ] = 0 ; } aad -> align0 = 0 ; }
RFC 4106, 5 AAD Construction
 spi and sqn should already be converted into network byte order.
RFC 4106 5 AAD Construction spi and sqn should already be converted into network byte order .