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 840BC4F9C for ; Fri, 24 Aug 2018 15:55:13 +0200 (CEST) Received: by mail-lj1-f195.google.com with SMTP id 203-v6so6922412ljj.13 for ; Fri, 24 Aug 2018 06:55:13 -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=aYgmo6lxDjh60MRAzwHhAjQKZjP7iX7FodpBqPeIRvY=; b=XqwXsTQeI1E8FcFoJ8SOrg9pTzCrvw2ZcGSHNySNndF7diD4mXDrO8AjjX3lyGbki+ boJRsf0R9wpw1LlMH7PTp3NyIzmJ1IW5hONQuqf4msAegfL8W2GVQx+FFk1zlvyVJao0 aA9whgy9dq3XIbdfbEawIOdJUl9+0Ifkh1vPFUzZpKGMiT1SqE84oTy2tBAMpycVIYQz beshd8kg8RS6SQdAunxmSH+hGReoYbKiWxfITH7rKq5nXpum/BNDpIi/V6cps7lWGDxP YduFUw04mKwJx6Rn6lMief7xu+egxXlGS1vXMMNoWpBoyeW0tfMA+1aQQB2E76Gj9/nJ pj+A== 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=aYgmo6lxDjh60MRAzwHhAjQKZjP7iX7FodpBqPeIRvY=; b=UBddHw34jIwmqFEqtzfhjxKNAqFgf9Zir8UqZUFPpSeIkrr2NGAa33pkGwIUtPlZPt tQRf95EhewRM/EHV4W0britTPki847idapOZqJLHcInXF0DKoFQSJ015DCJ74ACJ0dO2 YTuVFeHkuDVb4soT+87tPboJf91Rtmemk2D4cc17b9OmrOah/FfEcpcj0PEVP5nTF4yx 6Dm48jDB9pEdiTrR/7KvgeJqfmluVr0/91r4bvfFr3GHz4cRJsOL5OSoAStEEPFP0Q+d xB4gAmlpEOtHhOlXiu7sqkDpMCYL0ieG/wa3y+t73d1dOsbRZj/EOuYyapb+bwgFVZRg yOLw== X-Gm-Message-State: APzg51AaZ4RQm5Hlzb9af5YwRb9x6nEoah0vGU/YQuVC18G0zGEvHMoP isLLBRQRnrUmBEjO9/Tiu2qH5YQNvJs= X-Google-Smtp-Source: ANB0VdYauNEv7/LiR0L7cJKIpU7Y7sZ/1BJ5NB7YNwMrVOgZ1rHKt2ukrFqdwu8eWx6l24ne8tDcNw== X-Received: by 2002:a2e:9f4d:: with SMTP id v13-v6mr1469254ljk.42.1535118912936; Fri, 24 Aug 2018 06:55:12 -0700 (PDT) Received: from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id h71-v6sm1352003lfg.64.2018.08.24.06.55.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Aug 2018 06:55:12 -0700 (PDT) From: Tomasz Duszynski To: dev@dpdk.org Cc: nsamsono@marvell.com, mw@semihalf.com, Tomasz Duszynski Date: Fri, 24 Aug 2018 15:54:53 +0200 Message-Id: <1535118895-6505-5-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535118895-6505-1-git-send-email-tdu@semihalf.com> References: <1535118895-6505-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH 4/6] crypto/mvsam: add 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, 24 Aug 2018 13:55:13 -0000 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