diff mbox series

[v1,1/1] linux-gen: ipsec: fix block len for AES-CTR mode

Message ID 1516806009-17026-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/1] linux-gen: ipsec: fix block len for AES-CTR mode | expand

Commit Message

Github ODP bot Jan. 24, 2018, 3 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


AES-CTR is stream cipher, so block length should be 1, rather than 16.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 426 (lumag:ipsec-fix)
 ** https://github.com/Linaro/odp/pull/426
 ** Patch: https://github.com/Linaro/odp/pull/426.patch
 ** Base sha: 27480d82bd93a881ae683a3c314c11042a68ce29
 ** Merge commit sha: f0e5d6d5315a61ef0b2064e4105cb6a681ae25ff
 **/
 platform/linux-generic/odp_ipsec_sad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/platform/linux-generic/odp_ipsec_sad.c b/platform/linux-generic/odp_ipsec_sad.c
index 845a73dea..c168385ab 100644
--- a/platform/linux-generic/odp_ipsec_sad.c
+++ b/platform/linux-generic/odp_ipsec_sad.c
@@ -382,7 +382,7 @@  odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param)
 		ipsec_sa->use_counter_iv = 1;
 		ipsec_sa->aes_ctr_iv = 1;
 		ipsec_sa->esp_iv_len = 8;
-		ipsec_sa->esp_block_len = 16;
+		ipsec_sa->esp_block_len = 1;
 		break;
 #if ODP_DEPRECATED_API
 	case ODP_CIPHER_ALG_AES128_GCM: