From patchwork Wed Jan 24 15:00:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 125678 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp470338ljf; Wed, 24 Jan 2018 07:01:19 -0800 (PST) X-Google-Smtp-Source: AH8x225SLhOuz/1DsKimRrJoJBcJB6an1KGKO0iE5wnVInCoFrdmUvEzxCiW6WAU1rPFfMW3eGCQ X-Received: by 10.55.39.148 with SMTP id n142mr9767165qkn.84.1516806078905; Wed, 24 Jan 2018 07:01:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516806078; cv=none; d=google.com; s=arc-20160816; b=L+X4Sl5iFi0Ni6c+xLdaz3xGmVL9Yw/fljfRunup1Of4juixAZ6YarTOFC0yWBUhJ1 dOgkRdgJGGv/1a+Ty6bidL/ojaAVc7bojbjOaHK9cKrBCIXBf1pR1hSWv0G7R68ina9I T2oOtESbUbAUzbHqQx+ByAvreYK/eafzhxGF3FD9LUIw7dHc4vkkKYokntQ2ZonHPUMm 1XbZaeVQ4sS8ZMednOuXorkiOeWPnbPF25q3qZ3NV/hmcZdHr7CWkaEvkzZiKXU1muzx mepT32hMkWuTHmvfwdJV3yMNAAfYIaU1tV/aBOYwX8nVfXWY89FVaHe1efAVtLTC3Nhp N49w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=y/AlKziywxWlv5GsePGsPXAd13e66LFFAgGkvNuv39I=; b=pIpRKjgEmHdm0sG459LyyhncuAD5XuJnbcTOFvjgmYW9nFt3jKUEEMcTM2SSpLRks5 Nt+QMVbUpwFpnPZBOBsTw6szfcAfAuXxgxoGvJmluwwKeRAletH/kQeeUBNPSUzSqCX4 SXv21KvB67eI/xgXYr+HR9Umr1W2iaZNu/9kvrFoRU05iBQCNZhcSrvLdypvNNluBjpx dpVn3q9rxc5E0ecL1q+2gb09lVO9ceH45qOGWlT9aeWfVhN/5cPMz05tYgRuSXGbMkk7 akL81vUxnoukUWokoDrNhn9nfBMywAmQhjDiHhR7Kt0dDAyhaLeN/9Eff1iq8aTTycrR KsEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id v36si2038396qtb.28.2018.01.24.07.01.18; Wed, 24 Jan 2018 07:01:18 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 89D1061769; Wed, 24 Jan 2018 15:01:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id AD9A86176C; Wed, 24 Jan 2018 15:00:36 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 00031616F3; Wed, 24 Jan 2018 15:00:18 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id 281BC616B9 for ; Wed, 24 Jan 2018 15:00:13 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 69AF312418B6 for ; Wed, 24 Jan 2018 18:00:11 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 9HGiaN7KYH-0BaSnJOF; Wed, 24 Jan 2018 18:00:11 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2ep7bw57hT-0Ac8atYU; Wed, 24 Jan 2018 18:00:10 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 24 Jan 2018 18:00:09 +0300 Message-Id: <1516806009-17026-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516806009-17026-1-git-send-email-odpbot@yandex.ru> References: <1516806009-17026-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 426 Subject: [lng-odp] [PATCH v1 1/1] linux-gen: ipsec: fix block len for AES-CTR mode X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov AES-CTR is stream cipher, so block length should be 1, rather than 16. Signed-off-by: Dmitry Eremin-Solenikov --- /** 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 --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: