From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrzej Ostruszka Subject: [PATCH v2 6/6] crypto/mvsam: add 3DES ECB to the capabilities list Date: Fri, 21 Sep 2018 16:53:59 +0200 Message-ID: <1537541639-22764-7-git-send-email-amo@semihalf.com> References: <1535118895-6505-1-git-send-email-tdu@semihalf.com> <1537541639-22764-1-git-send-email-amo@semihalf.com> Cc: mw@semihalf.com, nadavh@marvell.com, Tomasz Duszynski To: dev@dpdk.org Return-path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by dpdk.org (Postfix) with ESMTP id 8A7925688 for ; Fri, 21 Sep 2018 16:54:08 +0200 (CEST) Received: by mail-lf1-f67.google.com with SMTP id q2-v6so1746596lfc.13 for ; Fri, 21 Sep 2018 07:54:08 -0700 (PDT) In-Reply-To: <1537541639-22764-1-git-send-email-amo@semihalf.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Tomasz Duszynski 3DES in ECB mode is supported by the PMD thus specific entry should exist in the crypto PMD capabilities list. Signed-off-by: Tomasz Duszynski Reviewed-by: Natalie Samsonov --- drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c index f3251aa..62f5a2a 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c @@ -413,6 +413,26 @@ static const struct rte_cryptodev_capabilities }, } }, } }, + { /* 3DES ECB */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, + {.cipher = { + .algo = RTE_CRYPTO_CIPHER_3DES_ECB, + .block_size = 8, + .key_size = { + .min = 24, + .max = 24, + .increment = 0 + }, + .iv_size = { + .min = 0, + .max = 0, + .increment = 0 + } + }, } + }, } + }, { /* NULL (AUTH) */ .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, {.sym = { -- 2.7.4