From patchwork Mon Feb 5 09:00:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 126833 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1791175ljc; Mon, 5 Feb 2018 01:02:02 -0800 (PST) X-Google-Smtp-Source: AH8x226wb55vF/0Ih6XoqaSH1Ks21KXO+E0UGaG5s/X/fKX0KsmmWErSsAD5Tfwy2o2UpgsbMRCg X-Received: by 10.55.107.3 with SMTP id g3mr70656742qkc.193.1517821321941; Mon, 05 Feb 2018 01:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517821321; cv=none; d=google.com; s=arc-20160816; b=iQFOjz5UwXzgRr+G2dz8O1yBFSIBry2/7uXprrCDUe1F+Wlba3vkpHfkODJMVFmu/B gP+meAwmxBGPq6ytUSxVDDBd/J/FuZlb76Yozmwyz3J/4WyMup6XmaAbvFCWHPyUfEOV Qp8DJshypSDiKt6em2GAHY6FpAlN4gMXMxMi6B4yhYATdutYDxxOtVzl9siBl+KxecU7 DFuJXYis5fBHK1i3Qy/85XXUz4JO3sAHojXFe+2jLNeG+6H3VryR1G/+u2n0XppCqoeC Z0OjQUmt9kmUcybj0YWVK43DYUIPUsumRHlniK8aZ1PhtFFi39aR42BNBCU8yfKRNuvn 9ohA== 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=FBvJqRHh0Ex2neqcMtglcByYIubDzgFe7NqTrmpfi8k=; b=SR08tKruM1NC28/A/ki8+cVJQ+izC5W/k2zneXRL8Rs26qHWBJ82raKyRZBOpeE3wV 8WUMyIUY1ULsbYtCR1TdbBph+4zziqB8IXvjqt/2P6AqQltTYNso2dX7Vkk78kgnR67q 5YqCrqW5YQ6qy6Nq4y9ZZJ5ofYpSw8GQyZpAGrc09sN7czOm1VWHsZWnrFDxJ9RGgLUQ Xa0PrZwwhfGX7XC/SZVFjJgNaigTuCTm0rz6YN/n5DJS7YddNVfBgIyfTiawIu8gVIx5 3WvpnF4zVu6gGatVpOMGq7aaa5ds0BTgyI89bH47tNK0S52wSuv3kyiwvsr5IREme6fw KH6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id i31si4760855qtb.9.2018.02.05.01.02.01; Mon, 05 Feb 2018 01:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 A1DEA60BF4; Mon, 5 Feb 2018 09:02:01 +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_H2 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 6BC9660C5E; Mon, 5 Feb 2018 09:00:29 +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 354C0607C7; Mon, 5 Feb 2018 09:00:25 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 492A56087B for ; Mon, 5 Feb 2018 09:00:13 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward102o.mail.yandex.net (Yandex) with ESMTP id B829B5A041F6 for ; Mon, 5 Feb 2018 12:00:11 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id yYmI2zo9Pu-0Bj47QWc; Mon, 05 Feb 2018 12:00:11 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id SXdjLS661i-0BpWPlJm; Mon, 05 Feb 2018 12:00:11 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 5 Feb 2018 12:00:08 +0300 Message-Id: <1517821209-11550-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517821209-11550-1-git-send-email-odpbot@yandex.ru> References: <1517821209-11550-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 450 Subject: [lng-odp] [PATCH API-NEXT v1 1/2] api: crypto: add SHA-384 enumerations 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 Following SonicWall proposal, add SHA-384 algorithm enumerations. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 450 (lumag:sonicwall-crypto) ** https://github.com/Linaro/odp/pull/450 ** Patch: https://github.com/Linaro/odp/pull/450.patch ** Base sha: 7cc568a011f1623a343399f5cff6688baf834639 ** Merge commit sha: b044e6cb29ddcf9ef195248a55fbf34b682fb019 **/ include/odp/api/spec/crypto.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index b7ab53620..e27860a38 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -143,6 +143,12 @@ typedef enum { */ ODP_AUTH_ALG_SHA256_HMAC, + /** HMAC-SHA-384 + * + * SHA-384 algorithm in HMAC mode + */ + ODP_AUTH_ALG_SHA384_HMAC, + /** HMAC-SHA-512 * * SHA-512 algorithm in HMAC mode @@ -275,6 +281,9 @@ typedef union odp_crypto_auth_algos_t { /** ODP_AUTH_ALG_SHA256_HMAC */ uint32_t sha256_hmac : 1; + /** ODP_AUTH_ALG_SHA384_HMAC */ + uint32_t sha384_hmac : 1; + /** ODP_AUTH_ALG_SHA512_HMAC */ uint32_t sha512_hmac : 1; From patchwork Mon Feb 5 09:00:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 126832 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1790666ljc; Mon, 5 Feb 2018 01:01:23 -0800 (PST) X-Google-Smtp-Source: AH8x226+l4R87+TycKiHI9yE3Pek3ckzrwcLvppG8iafyudbA1zcgx/Vwe/599L8BCBwnK8Bw7ot X-Received: by 10.55.123.67 with SMTP id w64mr5119146qkc.31.1517821283244; Mon, 05 Feb 2018 01:01:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517821283; cv=none; d=google.com; s=arc-20160816; b=WR+T56kFVkZvQtjnOeccHFSn7tctRGOeQepZA2Y9XNen/E/91FdbYNLezlsFVKCgjk qbbYYV/BiUY8EgWFuBbWJcyclk6tNGaEZhUgRyMsvJz71Jamznh+DJN8pnPz7YEZns3o 1Mw84iVaEG+In5KJQsLP0jtqiB2WMtQ2GeMTdiTSN6reJULjyEjLP4pC28IA1L3YDokz V/vfqdUWPx1DJByw2JFZE3Y1wIVFQGBjlB6rrZFT/UW5TR/rSVqUh5aqk7WzTFV0WPyH jL53q5SRHmzziqFwU0KaZ5ux+BIArAD/n24TSnZ63WoQ3oSaoOLKAxHtE/tLa36feFg5 BwFg== 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=WVn5XhqizZCB1EPuUZQBwqxoyUm7d7qFW+uHeBzAFg0=; b=i4XAydue9r/14i82m4z7jer9P6x3GlMHxJBchlczX+/Zl0DfvlonQ4GtDACcB7SQhP EI5fCKjbrEy0pvHQ1I+c3bTc/uTiSOvxZH59/nYaCfNoNrthKLvWdCTzg1PZPgqpNafD yB8+JNtV4ODwJiKl1alvdFTnHH89tYHqEL1LvxmNRsHdBXCEmcXdXVCUkwQIV9GNSwJi upzpMVK8ywVomiwCWZf7fVBqr1/TtfuTzKzJCm/yBpoiwNPZCG2Dl5swXpxn5tOgfVS1 mtdstc3lP7GydOHAIMppQXUHeIiKYEVZv9Am6FMxXTTS7GwHIold8K0sxakhSwid8nzI hp2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id v4si4870476qkh.387.2018.02.05.01.01.22; Mon, 05 Feb 2018 01:01:23 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 E237F616E1; Mon, 5 Feb 2018 09:01:22 +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 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 0F17E608E4; Mon, 5 Feb 2018 09:00:28 +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 361CB6071D; Mon, 5 Feb 2018 09:00:22 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id C8FDC6063B for ; Mon, 5 Feb 2018 09:00:17 +0000 (UTC) Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 85FF15601B66 for ; Mon, 5 Feb 2018 12:00:12 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback14j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CPqXuwZmsG-0Ca4IptI; Mon, 05 Feb 2018 12:00:12 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id SXdjLS661i-0Bp8QlDA; Mon, 05 Feb 2018 12:00:11 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 5 Feb 2018 12:00:09 +0300 Message-Id: <1517821209-11550-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517821209-11550-1-git-send-email-odpbot@yandex.ru> References: <1517821209-11550-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 450 Subject: [lng-odp] [PATCH API-NEXT v1 2/2] api: crypto: add AES-XCBC-MAC enumerations 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 Following SonicWall proposal, add AES-XCBC-MAC algorithm enumerations. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 450 (lumag:sonicwall-crypto) ** https://github.com/Linaro/odp/pull/450 ** Patch: https://github.com/Linaro/odp/pull/450.patch ** Base sha: 7cc568a011f1623a343399f5cff6688baf834639 ** Merge commit sha: b044e6cb29ddcf9ef195248a55fbf34b682fb019 **/ include/odp/api/spec/crypto.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index e27860a38..0ac1b9081 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -155,7 +155,7 @@ typedef enum { */ ODP_AUTH_ALG_SHA512_HMAC, - /** AES-GCM + /** AES in Galois/Counter Mode * * AES in Galois/Counter Mode (GCM) algorithm. GCM provides both * authentication and ciphering of data (authenticated encryption) @@ -198,6 +198,13 @@ typedef enum { */ ODP_AUTH_ALG_AES_CMAC, + /** AES-XCBC-MAC + * + * AES CBC MAC for arbitrary-length messages (XCBC-MAC). + * + */ + ODP_AUTH_ALG_AES_XCBC_MAC, + /** ChaCha20-Poly1305 AEAD * * ChaCha20 with Poly1305 provide both authentication and ciphering of @@ -299,6 +306,9 @@ typedef union odp_crypto_auth_algos_t { /** ODP_AUTH_ALG_AES_CMAC*/ uint32_t aes_cmac : 1; + /** ODP_AUTH_ALG_AES_XCBC_MAC*/ + uint32_t aes_xcbc_mac : 1; + /** ODP_AUTH_ALG_CHACHA20_POLY1305 */ uint32_t chacha20_poly1305 : 1;