From patchwork Mon May 22 10:59:54 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: 100283 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp190693qge; Mon, 22 May 2017 04:11:44 -0700 (PDT) X-Received: by 10.107.20.145 with SMTP id 139mr21817729iou.11.1495451504671; Mon, 22 May 2017 04:11:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495451504; cv=none; d=google.com; s=arc-20160816; b=z2MpZEpgSmNuokcki6gCFMrbqErbAq65tcXtNG7lMX7SkQjdX7keJNP79Wvq2pZ3RF A4Gnm7NRgzPO7MqQBpRP1fKcblsiTz9VdPkteDUUxlaRDxkaBp9lDHkZbb15WVh3ki2E h6mYK1M+2lt2somDpX+qFb5+4PGG1I1pcLvtkVDPORXPJRqLI3NvNyqAoFwydANSwctF fkYgN2Fy9FuaLwCGJMUBZxFNPSVyeTKK6YRdFaHtpznMdeImEKB6ERNI71UYLTbCD7Lb KpjIOSGDnvEw+d/Q01748zonu9zFrqDOsHeqti+UZNh/nJcQa2M9fbWEDo8lw7vl3vz1 LcbQ== 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=eM6d/ut4i5eakhx55ygWdECilGq3TWbkRCqxDaqg4X4=; b=qTzJiEKngPvzAWXKp4ERol1+KlkBGwaKn+toBhArdG+5Q4++qksYvPXCeJEgTWZbw/ cjsRzT66lhf+SVSWPzGL2QxfSTAxpLF+NuHZoEWxUHWiY+vKZ3B17wKocxc8hDK/9ojH CXTzMVowFrN1lAY3PTxBHuEjQztI+6oIf5rFa1vAkA6zDhBzXcJ40NNu4jBByeGub9BY mb/1uNpBVsz+rRxLDDFGNOzC3nPEQSKPukXx6J+KmaaHLR8hMBne8nlnvHYbJXlyA/vY zj7yg+4i16Tl3dfnFcvLb+1gEUgFZPHQmRIxxeGr7nOLCNxzZ88BQ8bXE+2PwH8rwdTZ iYsw== 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 x13si19329737ite.18.2017.05.22.04.11.44; Mon, 22 May 2017 04:11:44 -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 2922460679; Mon, 22 May 2017 11:11:44 +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,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 9E1A660ACC; Mon, 22 May 2017 11:03:25 +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 1A1CB60A56; Mon, 22 May 2017 11:02:20 +0000 (UTC) Received: from forward4m.cmail.yandex.net (forward4m.cmail.yandex.net [5.255.216.22]) by lists.linaro.org (Postfix) with ESMTPS id 8E65860A4E for ; Mon, 22 May 2017 11:00:52 +0000 (UTC) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [37.140.190.28]) by forward4m.cmail.yandex.net (Yandex) with ESMTP id E89E42104E for ; Mon, 22 May 2017 14:00:50 +0300 (MSK) Received: from smtp3o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3o.mail.yandex.net (Yandex) with ESMTP id EC9662940FCA for ; Mon, 22 May 2017 14:00:23 +0300 (MSK) Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id EyK36iliXq-0MpGCNCX; Mon, 22 May 2017 14:00:23 +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: Mon, 22 May 2017 13:59:54 +0300 Message-Id: <1495450806-27703-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495450806-27703-1-git-send-email-odpbot@yandex.ru> References: <1495450806-27703-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 34 Subject: [lng-odp] [PATCH API-NEXT v1 4/16] 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: 225ede5cef6eb46fc9e1d1d385ac8be0b57c64f5 **/ 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} } };