From patchwork Fri May 19 23:00:06 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: 100217 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp534204qge; Fri, 19 May 2017 16:03:38 -0700 (PDT) X-Received: by 10.200.36.10 with SMTP id c10mr11286618qtc.160.1495235018786; Fri, 19 May 2017 16:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495235018; cv=none; d=google.com; s=arc-20160816; b=0YJ+5ltQdk45p+vB7DphaOHqe8DOuhfvTrIFmqPlncNSk2pbXqL6NncaIl0EZRjuPU as/jsJ+TG78IWX3CNZcsk5Z8yTgUHmpOlshmwR9QOcjY4X2DdGT/UZpHNGOpLk4Od+f9 YwKtKOitWS/bveX0WdDT/tGdtFPFBwqjBk/B3HyMpc5I7ERK767licLREZJuPNjEnBfR 5vQ2YjaS4/p7BVFj+Rop2Gwk1yzXmoGOSc0HQcASUrshGwPx+4UJdD90yozs5K4R6AUJ 5H/DVvMTOR486jQ0xgwmJprtnCDc6q+xoOVrOFjGRSGdyQqxP1h+N19v0JsdsR7GLJuN lX6A== 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=JKCfL+Vw2iZj5012hkTeB/EUih714mQZh7nvyKS4Qi8=; b=ElyidhwK2iGv0U9+AAMuL7Ta71TX8EeeUK3/yAlh0HhhQzGCMmHryUSHlk+Xo3qJ5n mkGoeeKyEJTFwhs6EbXHDRGD60Eoyt6ipDkFN8Yo9RgfH4/rcTlTsNisGcLdScNyWMeF ntBFPDZZuucAipa4bS7E9sj3dPnld5q1BmO0x6qmGe5Y1iHagDe/aI4c3zd0qKlKTYLt Dag57x4Rk+f+Rog0RWTg3H/sVhUy7HbtTQtRelxniu7v2/VF+Lu+sSrUZ9caYmPayiby vidgpDfMfSxDAHMmjw8kCGf8FHvpUvTZqxBVFSmGCu9AQskB2gt6XHGV2p31ffaoJ/IP UHUg== 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 s32si7269400qts.244.2017.05.19.16.03.38; Fri, 19 May 2017 16:03:38 -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 543FA609A7; Fri, 19 May 2017 23:03:38 +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 3623460722; Fri, 19 May 2017 23:00:51 +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 565EE60EF0; Fri, 19 May 2017 23:00:44 +0000 (UTC) Received: from forward1m.cmail.yandex.net (forward1m.cmail.yandex.net [5.255.216.2]) by lists.linaro.org (Postfix) with ESMTPS id 7441860E8C for ; Fri, 19 May 2017 23:00:20 +0000 (UTC) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [IPv6:2a02:6b8:0:801::ac]) by forward1m.cmail.yandex.net (Yandex) with ESMTP id 52C10210B8 for ; Sat, 20 May 2017 02:00:19 +0300 (MSK) Received: from smtp2j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2j.mail.yandex.net (Yandex) with ESMTP id 2FB7F3EC1141 for ; Sat, 20 May 2017 02:00:18 +0300 (MSK) Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id upK1d19rxX-0Ix0lR6c; Sat, 20 May 2017 02:00:18 +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: Sat, 20 May 2017 02:00:06 +0300 Message-Id: <1495234807-19672-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495234807-19672-1-git-send-email-odpbot@yandex.ru> References: <1495234807-19672-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 24 Subject: [lng-odp] [PATCH API-NEXT v3 4/5] 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 24 (lumag:crypto-dal) ** https://github.com/Linaro/odp/pull/24 ** Patch: https://github.com/Linaro/odp/pull/24.patch ** Base sha: 826ee894aa0ebd09d42a17e1de077c46bc5b366a ** Merge commit sha: 78b12f0da50bf257f978a197b2667405a94a4938 **/ 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} } };