Hi Radu,
> -----Original Message-----
> From: dev <[email protected]> On Behalf Of Radu Nicolau
> Sent: Friday, August 13, 2021 10:30 AM
> To: Ananyev, Konstantin <[email protected]>; Iremonger,
> Bernard <[email protected]>; Medvedkin, Vladimir
> <[email protected]>
> Cc: [email protected]; [email protected]; Richardson, Bruce
> <[email protected]>; [email protected];
> [email protected]; [email protected]; Doherty, Declan
> <[email protected]>; Sinha, Abhijit <[email protected]>;
> Buckley, Daniel M <[email protected]>; [email protected];
> [email protected]; [email protected]; Nicolau, Radu
> <[email protected]>
> Subject: [dpdk-dev] [PATCH v3 05/10] ipsec: add support for AEAD algorithms
>
> Add support for AES_CCM, CHACHA20_POLY1305 and AES_GMAC.
>
> Signed-off-by: Declan Doherty <[email protected]>
> Signed-off-by: Radu Nicolau <[email protected]>
> Signed-off-by: Abhijit Sinha <[email protected]>
> Signed-off-by: Daniel Martin Buckley <[email protected]>
> ---
> +
> +/*
> + * RFC 4106, 5 AAD Construction
> + * spi and sqn should already be converted into network byte order.
[Fan: Comments is incorrect, should be RFC7643]
> + * Make sure that not used bytes are zeroed.
> + */
> +static inline void
> +aead_chacha20_poly1305_aad_fill(struct aead_chacha20_poly1305_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;
> +}
> +
> /*