From: Anoob Joseph Date: Thu, 8 Feb 2018 06:12:42 +0000 (+0000) Subject: examples/ipsec-secgw: support AES 256 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fa9088849e1249e66f69ec96f7a9820bec587cc4;p=dpdk.git examples/ipsec-secgw: support AES 256 Adding support for AES 256 algorithm in ipsec-secgw application Signed-off-by: Anoob Joseph Acked-by: Radu Nicolau --- diff --git a/doc/guides/sample_app_ug/ipsec_secgw.rst b/doc/guides/sample_app_ug/ipsec_secgw.rst index 4b7dd1de71..46696f2a68 100644 --- a/doc/guides/sample_app_ug/ipsec_secgw.rst +++ b/doc/guides/sample_app_ug/ipsec_secgw.rst @@ -395,6 +395,7 @@ where each options means: * *null*: NULL algorithm * *aes-128-cbc*: AES-CBC 128-bit algorithm + * *aes-256-cbc*: AES-CBC 256-bit algorithm * *aes-128-ctr*: AES-CTR 128-bit algorithm * Syntax: *cipher_algo * diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 25ceea179d..21239dd978 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -68,6 +68,13 @@ const struct supported_cipher_algo cipher_algos[] = { .block_size = 16, .key_len = 16 }, + { + .keyword = "aes-256-cbc", + .algo = RTE_CRYPTO_CIPHER_AES_CBC, + .iv_len = 16, + .block_size = 16, + .key_len = 32 + }, { .keyword = "aes-128-ctr", .algo = RTE_CRYPTO_CIPHER_AES_CTR,