From patchwork Mon May 22 21:59:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 100322 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp45999qge; Mon, 22 May 2017 15:05:13 -0700 (PDT) X-Received: by 10.55.4.4 with SMTP id 4mr21222211qke.253.1495490713554; Mon, 22 May 2017 15:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495490713; cv=none; d=google.com; s=arc-20160816; b=yqzAsOvN3huq2ujexLZ2I0VxxNAAU/2PO6OQ+89loIDuTfywzIDLDi4jcxVHv98Ysv QJwXtljw06yb33aVfTfR7uXo88HWC5XEALd/641NMgVfwd0nRTBB45X/lkMR3aPJeCv3 pPHAwZ7xpwDtvmpgAQ8PPCWJ7VNfJKPhLT21P845L9QLmtFwz9Q34WJo5QH2yIByqTs1 83Y+0ETVMq8HWgVccCTX93tGD+EAXCpBkNmTcdaeiH2n5voRK7qrGZRKsSYk32RIllIG 0i9sojq6/kVlLkuy1Wocg7kYQ9tmNOmWIUns/hLz+ZCbL1yoVX0UaAUAL9Ummz8kwXr4 ccvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=lJ2k8D6SJ1phhApyzJ0xIT84pMcJCmg6z0znMEalFuU=; b=v+FP1WNlQ5xZ3IgnTuToR34oUxdIkQiCMuPF3onOC9SockSgGiXfgZYZIAeSsvwnpe WR0sRMAhS9L/2S5UvOtu84G125qTZmmUaNTde2ksNisF5aALRi6r+NsDuN5xZZakVg+Q 9tmOgZl11sQYF9TNRKTAmybQXSTf6ApB4dIaQG8poNBZCHSsVWbboS3K22IXrMfG245A VedaCahE67VQ5JkBT6IARkJ2qCbN7EY4ro5Jl51u8RiKbY59x8UEyvvYg28leANpWcV7 gRIWu98CK6jvPf829qHXrJHGnPwwx22Wo+K4MN55iAH+2ACFgnuFtVWM1hNe9pwYrVag m1qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x38si19553545qta.208.2017.05.22.15.05.13; Mon, 22 May 2017 15:05:13 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 3154F609D0; Mon, 22 May 2017 22:05:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id CED0660BF0; Mon, 22 May 2017 22:00:46 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5AC966082A; Mon, 22 May 2017 22:00:22 +0000 (UTC) Received: from forward1o.cmail.yandex.net (forward1o.cmail.yandex.net [37.9.109.84]) by lists.linaro.org (Postfix) with ESMTPS id F1B3F60725 for ; Mon, 22 May 2017 22:00:19 +0000 (UTC) Received: from smtp3m.mail.yandex.net (smtp3m.mail.yandex.net [77.88.61.130]) by forward1o.cmail.yandex.net (Yandex) with ESMTP id 15B3621297 for ; Tue, 23 May 2017 01:00:18 +0300 (MSK) Received: from smtp3m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3m.mail.yandex.net (Yandex) with ESMTP id E52172840812 for ; Tue, 23 May 2017 01:00:17 +0300 (MSK) Received: by smtp3m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ll1QrMKPBI-0HEuQt2p; Tue, 23 May 2017 01:00:17 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 23 May 2017 00:59:55 +0300 Message-Id: <1495490409-30066-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495490409-30066-1-git-send-email-odpbot@yandex.ru> References: <1495490409-30066-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 34 Subject: [lng-odp] [PATCH API-NEXT v2 6/20] linux: crypto: add SHA* capabilities for full length digests X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov In addition to truncated digests (used by IPsec) add full-length capabilities to SHA* algos. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 34 (lumag:crypto-update-main-new) ** https://github.com/Linaro/odp/pull/34 ** Patch: https://github.com/Linaro/odp/pull/34.patch ** Base sha: 826ee894aa0ebd09d42a17e1de077c46bc5b366a ** Merge commit sha: 7c49c61063e2d57f049a5436cf12a3c36710bb34 **/ platform/linux-generic/odp_crypto.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index d6b4ee3f..2fdcfa3f 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -52,10 +52,12 @@ static const odp_crypto_cipher_capability_t cipher_capa_aes_gcm[] = { * Keep sorted: first by digest length, then by key length */ static const odp_crypto_auth_capability_t auth_capa_md5_hmac[] = { -{.digest_len = 12, .key_len = 16, .aad_len = {.min = 0, .max = 0, .inc = 0} } }; +{.digest_len = 12, .key_len = 16, .aad_len = {.min = 0, .max = 0, .inc = 0} }, +{.digest_len = 16, .key_len = 16, .aad_len = {.min = 0, .max = 0, .inc = 0} } }; static const odp_crypto_auth_capability_t auth_capa_sha256_hmac[] = { -{.digest_len = 16, .key_len = 32, .aad_len = {.min = 0, .max = 0, .inc = 0} } }; +{.digest_len = 16, .key_len = 32, .aad_len = {.min = 0, .max = 0, .inc = 0} }, +{.digest_len = 32, .key_len = 32, .aad_len = {.min = 0, .max = 0, .inc = 0} } }; static const odp_crypto_auth_capability_t auth_capa_aes_gcm[] = { {.digest_len = 16, .key_len = 0, .aad_len = {.min = 8, .max = 12, .inc = 4} } };