From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by dpdk.org (Postfix) with ESMTP id 65C564F9B for ; Fri, 21 Sep 2018 16:54:06 +0200 (CEST) Received: by mail-lj1-f195.google.com with SMTP id s12-v6so11926052ljj.0 for ; Fri, 21 Sep 2018 07:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZSAw0/gnJEksJ2v9Fpg295BnfV/W4mRaAvazQYlbeJE=; b=VlWtbQPu7VBSTj7J8PqMrf58dGl+Jul/w/4wGf73SM/FaFjMjAh4Pt4zG+IZMmrZu4 lwBTEtMB9mzLKDdbmv6Yv73jVzUEN/JR0SEZS1qTqaBpoDG2K/eIhCSwnObqNbJJJtw7 HhQBL6scbhO2OmQAb0OZdgOv30r0BU5aH1tTItiX8vTc/zXhRe7708P9FEUvUhkGfmH5 uJk5gwDGDRZ802lB1hp+0TRezNjQjDB56kkmBjWFY+KcUL2xypwvOMpCUC24ElJKoaKl rTX8IIGHoZ21ff4qOw6Z3/Bn9kEQKQeEyXe0FXeb03eQMczC9GahkW+7aIfavw8NeV/T 0CmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZSAw0/gnJEksJ2v9Fpg295BnfV/W4mRaAvazQYlbeJE=; b=KAAhBrsAA7YalYM2W8RH50157daBmRCv0KI9zNu/i2uCKYLyY5RkwFUg+zklvzdLmj G8yrdAPfGfcdTGA8aG3jKSd8v3fE1a9pYCmmrDw+432PIXBG3KMGfEcHg+AM/rR88SCX MLv3gk9RHGXVs5azgzzfKFF3201A5+qRzQ4TJ97Li0CSSeRlfvnJ0qMk/wJu3bPCS0O6 nWKsoiQyeAtjQymsmySpmxxh7XWNafYGWdmelW/louXeIlTxxrupCIR3ZCdyj+my1EKm qcDZGCKXkXQLQ9Gb0XN04vdAYuHOGayQkZqyykd8ZVIGvD8q6lIOGZpFunDtPBGuds2O yfpw== X-Gm-Message-State: ABuFfoh38XOiyhFaHSv2t90SSPEm3WBiCCXLTCt4GYSb2TFimUZ2Kayf PpA1LMlAW04aQ9RH0jiStVwIEyCrxQo= X-Google-Smtp-Source: ANB0VdZYx9pN68CD1jUld+qrZYOdKopF+xpX0wTfTVri0lhM0iROhH59NpAedMKheUNW/Y1MGGalCg== X-Received: by 2002:a2e:8257:: with SMTP id j23-v6mr2098032ljh.49.1537541645810; Fri, 21 Sep 2018 07:54:05 -0700 (PDT) Received: from amok.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.googlemail.com with ESMTPSA id d13-v6sm2268744lfi.74.2018.09.21.07.54.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Sep 2018 07:54:04 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org Cc: mw@semihalf.com, nadavh@marvell.com, Tomasz Duszynski Date: Fri, 21 Sep 2018 16:53:57 +0200 Message-Id: <1537541639-22764-5-git-send-email-amo@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537541639-22764-1-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> Subject: [dpdk-dev] [PATCH v2 4/6] crypto/mvsam: support for AES ECB 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: , X-List-Received-Date: Fri, 21 Sep 2018 14:54:06 -0000 From: Tomasz Duszynski Add support for AES128/192/256 in ECB mode. Signed-off-by: Tomasz Duszynski Reviewed-by: Natalie Samsonov --- drivers/crypto/mvsam/rte_mrvl_pmd.c | 5 +++++ drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c index 5ef4139..08d4a23 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c @@ -94,6 +94,11 @@ struct cipher_params_mapping cipher_map[RTE_CRYPTO_CIPHER_LIST_END] = { .cipher_alg = SAM_CIPHER_AES, .cipher_mode = SAM_CIPHER_CTR, .max_key_len = BITS2BYTES(256) }, + [RTE_CRYPTO_CIPHER_AES_ECB] = { + .supported = ALGO_SUPPORTED, + .cipher_alg = SAM_CIPHER_AES, + .cipher_mode = SAM_CIPHER_ECB, + .max_key_len = BITS2BYTES(256) }, }; /** diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c index d253b8f..3d3bbf1 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c @@ -298,6 +298,26 @@ static const struct rte_cryptodev_capabilities }, } }, } }, + { /* AES ECB */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, + {.cipher = { + .algo = RTE_CRYPTO_CIPHER_AES_ECB, + .block_size = 16, + .key_size = { + .min = 16, + .max = 32, + .increment = 8 + }, + .iv_size = { + .min = 0, + .max = 0, + .increment = 0 + } + }, } + }, } + }, { /* AES GCM */ .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, {.sym = { -- 2.7.4