From patchwork Thu Nov 7 09:01:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 178791 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp723382ilf; Thu, 7 Nov 2019 01:04:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyAMkb3TZkMT6kC219ZETOiY/ndEcPO5V9I7yXW0ilPrtTHgRWbWj6U+gwhd10sE7lXogdG X-Received: by 2002:a17:906:5e52:: with SMTP id b18mr1920373eju.318.1573117474284; Thu, 07 Nov 2019 01:04:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573117474; cv=none; d=google.com; s=arc-20160816; b=rQV51OiQ9aONoA1+UZzl/xFF1e5sJZOyaNHQlBs2+F+9MVtSyjWPgVSArM5Cq+jtI4 WzZLwH/y/pykcLfbTd4p2w5Yjcwi1lSWZ+PXI0XnEjwiS3F9JHr0xsPXleETj7LKb60g WE4pVHiAftWS0sTQAp8MAWTjkxnpmG9JKjpB1WTjTjiP/4bASnWZzhmCXlBrj1VqDsFv AEndTPLe1pMH2MglKGop6uHqPcSdHPO5EYyjE19r99XZnf0Lnsek0sD/7HPzjW6XEYT+ VKnHn2py8SJ/dAs/bJshv84NNyrlIxxYYD7mWCz+R8+jaJHfjkbQwCqBAvFUTjsKYPsD A5lg== 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:references:in-reply-to :message-id:date:cc:to:from; bh=hLqF0xj4Y6IEJOe2DUGlvGFOMFVBmpTMouBl+R17GXg=; b=vXBoWgTtG/V81nz9XLnbL4IdbRzNttIS+z6OAiN+hRomR27167O4V34iv9rtVOTU6k +orDfcohG/CfroKzq/+xH7vyW5tUssJsRlqDUyuv2mBB4q3Zvr/UrxWf6PSASnO3GcOZ tRSPkfzEH9pxAUB8iqAz7LtMvc/8bYSEg5LysgiarIEuv0NkiBsMGv76VNXak3154vUD iBNnnHoYhWYkstufbCYSNgvdqOaxR0GDUsKoNQPWp0D/kbj7KlFu3B3wbbVpgQv9O0nQ TBgUX165HQJ/VKsbTvKv+ss1TjVLqsSVLo/Yiljcrv5mqWsZ5mMEI/1I10TZSZ00DITU pVxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id qk28si323543ejb.292.2019.11.07.01.04.33; Thu, 07 Nov 2019 01:04:34 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 89D421E960; Thu, 7 Nov 2019 10:04:32 +0100 (CET) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 66D491E937 for ; Thu, 7 Nov 2019 10:04:31 +0100 (CET) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id EE357200095; Thu, 7 Nov 2019 10:04:30 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2CA93200719; Thu, 7 Nov 2019 10:04:29 +0100 (CET) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 3928F40282; Thu, 7 Nov 2019 17:04:26 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: jerinjacobk@gmail.com, abhinandan.gujjar@intel.com Date: Thu, 7 Nov 2019 14:31:19 +0530 Message-Id: <20191107090121.3246-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191001113339.21767-1-hemant.agrawal@nxp.com> References: <20191001113339.21767-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 1/3] test/event_crypto: fix missing IV value for AES algo X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The IV was not set, which was causing HW based SEC on DPAA1 to fail. Fixes: ce02103ad072 ("test/event_crypto: change the SEC cipher algo") Signed-off-by: Hemant Agrawal --- Sending only the fixes. dropped the functional changes app/test/test_event_crypto_adapter.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.17.1 Acked-by: abhinandan.gujjar@intel.com Acked-by: Abhinandan Gujjar diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index 652e458f0..bf83a6357 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -171,6 +171,7 @@ test_op_forward_mode(uint8_t session_less) struct rte_event ev; uint32_t cap; int ret; + uint8_t cipher_key[17]; memset(&m_data, 0, sizeof(m_data)); @@ -186,6 +187,11 @@ test_op_forward_mode(uint8_t session_less) cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_AES_CBC; cipher_xform.cipher.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT; + cipher_xform.cipher.key.data = cipher_key; + cipher_xform.cipher.key.length = 16; + cipher_xform.cipher.iv.offset = IV_OFFSET; + cipher_xform.cipher.iv.length = 16; + op = rte_crypto_op_alloc(params.op_mpool, RTE_CRYPTO_OP_TYPE_SYMMETRIC); TEST_ASSERT_NOT_NULL(op, @@ -364,6 +370,7 @@ test_op_new_mode(uint8_t session_less) struct rte_mbuf *m; uint32_t cap; int ret; + uint8_t cipher_key[17]; memset(&m_data, 0, sizeof(m_data)); @@ -379,6 +386,11 @@ test_op_new_mode(uint8_t session_less) cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_AES_CBC; cipher_xform.cipher.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT; + cipher_xform.cipher.key.data = cipher_key; + cipher_xform.cipher.key.length = 16; + cipher_xform.cipher.iv.offset = IV_OFFSET; + cipher_xform.cipher.iv.length = 16; + op = rte_crypto_op_alloc(params.op_mpool, RTE_CRYPTO_OP_TYPE_SYMMETRIC); TEST_ASSERT_NOT_NULL(op, "Failed to allocate crypto_op!\n");