From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by dpdk.org (Postfix) with ESMTP id 44EC34D3A for ; Fri, 21 Sep 2018 16:54:05 +0200 (CEST) Received: by mail-lf1-f65.google.com with SMTP id m80-v6so1174191lfi.12 for ; Fri, 21 Sep 2018 07:54:05 -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=SqVU+HZeTS1j2BfPRkWhVzxqVI1lZ25Kq1DeF6JPtQA=; b=mSq3LFgTX/lLoYUDOk/IBiUp7e2s0eion3jvz1mynOcwctiyjQcjtiXCenlX+eLPFH /UaVhfhrz+Sww/NWPkpyWcAyDis4P0KeRgXcdwk2R0RBIp2ruN4g+31sbdLyTTbXtVGC vAZ/JSmymBQEAS/GzvMgBRDcTeWOkEGrMjtrzR/1bRBIaBpT3t8hGFyZGHitV5L41s1Q dR0ecm/U6FF7j/CA1f7QlZeoFFv5gSdRJMvedBRakpSnukCXhSejqpd9Pfg0P0BoJR6I BBOeqCseYLEu2kyx5P+8fkiaJ/3NF/2vnc4mGc4QSGmn3uoQ+/WdO+yxgmy2zvmcUua5 hL0g== 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=SqVU+HZeTS1j2BfPRkWhVzxqVI1lZ25Kq1DeF6JPtQA=; b=VX0CPQYyG9eu3/JlVZBYztf3p1WSZVxi/hehHmsgp0HlVbOKvA1vQl/Wgzp6Cw58SS QGCW+DZnQEMhBGIewO+05iFSWnkhgqSYJzmMP9wmBFu0IWERMdCPME/tO4kChYRKIZNt P2/KCUqBbuvqf6EmujyTB7cb1b5gXf+X1E0ulAJiXARPmvaqBOjWdKYl0Fy3RRqAAeEH JeKXqaNCCWHyxuXv1vHHMRRSiwmJoNl2N0EnEmQEZ5x/E0BMiINhrYyI6915pyGSv3lx NHYwV+g7lavLC6PGMIbLZKaZblvVowEZKroN7YxCGzLD9TRk6pmYMGwcYi1FAXA5a6Ma gjMA== X-Gm-Message-State: APzg51BQx190vCWsGYI9Xcg2CXi1U6JQTUJJ/IHwHtepNbV329WmIMC4 hxQSduRzlcDT2aGVHGpsAWnG47FVdWU= X-Google-Smtp-Source: ANB0Vdb5V68HTtXdEckvIQrkWlkFIAUwihbJP8TtZL5rQSw0n1rTXN7IpKCTP/ugS2ZwdpiCUEFo1g== X-Received: by 2002:ac2:4308:: with SMTP id l8-v6mr31624235lfh.35.1537541644530; Fri, 21 Sep 2018 07:54:04 -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.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Sep 2018 07:54:03 -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:56 +0200 Message-Id: <1537541639-22764-4-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 3/6] crypto/mvsam: support for HMAC SHA224 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:05 -0000 From: Tomasz Duszynski Add support for the HMAC SHA224 authentication algorithm. Signed-off-by: Tomasz Duszynski Reviewed-by: Natalie Samsonov --- drivers/crypto/mvsam/rte_mrvl_pmd.c | 3 +++ drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c index 9d130b1..5ef4139 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c @@ -113,6 +113,9 @@ struct auth_params_mapping auth_map[RTE_CRYPTO_AUTH_LIST_END] = { [RTE_CRYPTO_AUTH_SHA1] = { .supported = ALGO_SUPPORTED, .auth_alg = SAM_AUTH_HASH_SHA1 }, + [RTE_CRYPTO_AUTH_SHA224_HMAC] = { + .supported = ALGO_SUPPORTED, + .auth_alg = SAM_AUTH_HMAC_SHA2_224 }, [RTE_CRYPTO_AUTH_SHA224] = { .supported = ALGO_SUPPORTED, .auth_alg = SAM_AUTH_HASH_SHA2_224 }, diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c index e2cfc07..d253b8f 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c @@ -97,6 +97,27 @@ static const struct rte_cryptodev_capabilities }, } }, } }, + { + /* SHA224 HMAC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, + {.auth = { + .algo = RTE_CRYPTO_AUTH_SHA224_HMAC, + .block_size = 64, + .key_size = { + .min = 1, + .max = 64, + .increment = 1 + }, + .digest_size = { + .min = 28, + .max = 28, + .increment = 0 + }, + }, } + }, } + }, { /* SHA224 */ .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, {.sym = { -- 2.7.4