From patchwork Mon May 22 22:00:35 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: 100342 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp51771qge; Mon, 22 May 2017 15:22:31 -0700 (PDT) X-Received: by 10.55.41.74 with SMTP id p71mr25334407qkh.110.1495491751222; Mon, 22 May 2017 15:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495491751; cv=none; d=google.com; s=arc-20160816; b=lwpRjl7OAF3CMloaE2HVnXZ/Tr0MCQ6IuLIDQYHhOFJQ/Jc1qZxcCILCJykUSy+Jvt xgvVWlbHmkw9pqrUkOWNleXL2lhIACskqxLaaKG0ubGMHOHSWKnKWYVkZEYnHgtWRFcd SyJETTgg0ktUeFvOt0GYImCPIfm5NckvuIlGFOJ6LIqA8qsEklosmGL/MV6iK5XqkA1Z zltIta4xtVaODzo+yKL8PAgpMvJ70WaeJcM+y+OWI6D5BXXBZvua03KTUevMiYMZBf68 p5VjtAi8PlpZd/9ZWUdaXAzTLpWOKp+snYLUVDvrZfB90R/2F+Jx9PG0ikZb24oli3A1 L0kQ== 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=MdafD1MLgipIhJUO22SMHzG11UNZ5+lMCmDQ9SQPpkw=; b=gy8+hlgubEGeA/7tdjp/vZ9S51GZWNqfhOXgfiTMTsTvnMJyTUI2o3SLhp8Sj+fX5/ NjiQmT8NILXns1wYh/Ttv7Ks2WXprX4oHhn0O/SK/0kD00Q0bcBUVo/H1+3Lz76LaJ/V RMQ+nXPiSzaT8XoBokk1A5K5fQ6yVeVJhw9MpDei4LFeCdN3Wc+UggCaw9o2e+urPAWd 2ULzkilTZ6XFTIL8mIOmmX8JEZr/MiO8K0V6d4rB7eG3KQmgXzOs+MbybFK9KBBdI/Ro 9mKIS3VB5GBsXqYkpUXDfAbS18UB+krHlwPo/f6CHTbWwZrRxO+7dmmgl7eqD7nJdidU 4umg== 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 a17si18993090qth.27.2017.05.22.15.22.30; Mon, 22 May 2017 15:22:31 -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 DFA5960BD8; Mon, 22 May 2017 22:22:30 +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 A07C460BF4; Mon, 22 May 2017 22:03:45 +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 3ABF560BEB; Mon, 22 May 2017 22:03:38 +0000 (UTC) Received: from forward3h.cmail.yandex.net (forward3h.cmail.yandex.net [87.250.230.18]) by lists.linaro.org (Postfix) with ESMTPS id 2BC5060BEB for ; Mon, 22 May 2017 22:00:47 +0000 (UTC) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [77.88.29.85]) by forward3h.cmail.yandex.net (Yandex) with ESMTP id 378B82119F for ; Tue, 23 May 2017 01:00:45 +0300 (MSK) Received: from smtp2p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2p.mail.yandex.net (Yandex) with ESMTP id 145B81A80065 for ; Tue, 23 May 2017 01:00:44 +0300 (MSK) Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id W3J1KhwBo7-0ixCOwcC; Tue, 23 May 2017 01:00:44 +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 01:00:35 +0300 Message-Id: <1495490436-30157-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495490436-30157-1-git-send-email-odpbot@yandex.ru> References: <1495490436-30157-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 24 Subject: [lng-odp] [PATCH API-NEXT v4 6/7] 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: ad894972724a7ec25c384144f46258caf3224cc9 **/ 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} } };