From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id DCD874D3A for ; Fri, 24 Aug 2018 15:55:11 +0200 (CEST) Received: by mail-lj1-f193.google.com with SMTP id p10-v6so6950267ljg.2 for ; Fri, 24 Aug 2018 06:55:11 -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=HlF3QMQ7u260IaNIg4C2GWc4NnzlA021iLD0IgmF+X8=; b=t2Sxo5Y5Yb+H1ka84FemUPrAxcdgaSOS8GSyMda1jhy4JrNGZ62hYPr4D55OyhK8Wm mdEC+sWSZMGNg5ApGA0+pvwgXconmJW3AqaU8iN7RxO8pFPUMwmO4WsL07ZFOB/l2wEu u+NepeIGJT5ii+RhFeA/PCoobExe3IgZQETw8G8M3YSa/7X2cjbyyvGcDVOBCOCF4Mbq +EEI9QggTAkuJpsw/G+wyKpu4muj2zOSdZ3tdk3z4oUYpTXqlMI/kD+RZcgNPVbehQdc o8LDMnRywvFcHuoWVFkRWrZ2uRLmBSJigTtoR/vPDg2JBYUDMMctUyL21VPQwfoL3OT4 aRLA== 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=HlF3QMQ7u260IaNIg4C2GWc4NnzlA021iLD0IgmF+X8=; b=ukreVoMWaAN9N4QhVtCiY7795QvfL8Hi5u4SG2LLhR2ud/vv8oIPoNB+G+HhaFUiQT e8g5KWoG2zn4z9sEH4PnXHMuKjfDLiYIjL7MMimH/rpo8hBCvznfFo9cEw/wTciHVtuB 3FZBQWgrYJIxkm6cNcTCtfaKbYetjKWfj1yp74f5yVn5MvALB9bNZt0CJKOuANA88QIt b/b6RD+eiwN7LPBOTOPCE06lPD15JDBl9TNerVbNIQ87D7KuNRiOlv+ljXsD5+yRGlfs Q4Sy8mU4qH88dmmiJgUVGn0E+p381AovwtIFvJ2UjUGnfxk3eOTecW1J0V/XeJj1frA2 iSsQ== X-Gm-Message-State: APzg51C9+IkNcJNHdpPiW6vnXANCwOY03D+VFqNacqU2Vng/Xx1HnuM3 65+cvArvFxYO6zIjoAYyfPLtd46ZIq4= X-Google-Smtp-Source: ANB0Vdblv0Egr+tDkryWstSjh6YIm38cQAmfC8GkkPfdYDHzngN8SYENNL5u4WUAenJCV4En4G9rFw== X-Received: by 2002:a2e:6d0a:: with SMTP id i10-v6mr1542826ljc.145.1535118911388; Fri, 24 Aug 2018 06:55:11 -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.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Aug 2018 06:55:10 -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:52 +0200 Message-Id: <1535118895-6505-4-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 3/6] crypto/mvsam: add 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, 24 Aug 2018 13:55:12 -0000 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