From patchwork Mon Feb 5 13:00:07 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: 126864 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1950780ljc; Mon, 5 Feb 2018 05:02:23 -0800 (PST) X-Google-Smtp-Source: AH8x2272YCxCs9kqiWq1eZnaG2KU/BVBHgSZGD83rBScLi9CkJYdm74pCGZaDmTHxtxYQ86HWtP1 X-Received: by 10.200.62.1 with SMTP id z1mr27641703qtf.113.1517835743633; Mon, 05 Feb 2018 05:02:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517835743; cv=none; d=google.com; s=arc-20160816; b=zhpmAbncTBstI0wqw/IJ7qN7RjSqqnrt5umViOwMu9f8rq80vh19U+Dj2dqlztp5+Q xoYqrOEwAv5xYwPPi0xVFitg50W1RbYUkNkkG/FdqW+PJNonM1GmUDSZ0O31snpu0IzS zVfB+Aij5TEvYQgYLr38a0QAVwyjj0eoEjCfSqeFcG03Nv43r+TjoAbdhFPJqBCeeRxm /+i6juLEAqxQ8COCCD2SvUDQxsOjyIG9x0xEIeKc8DysFBcH0RkRF9YmXfot+1Wk4j0F 0i8+2yr+BYPLY7PHMtg17V6onhbD2pOBx1APiX4Hs9WcRfPO6vmF35W/H7kc4RmYHjyV Ef1A== 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=XrtavPrwVnrcOkIwzFns0Pvp+8hNGj15DyJVg2Orqxg=; b=w+YNHwoWSHvbxn6Y6PGMZ7X4Q0G6LgJfkan6YvGDHzT9CWeBuvLXP7I2qoHhcxt8bP nSNkKgGCtx1IpIduLUFqEA2jLOIcxqm4/yK2QwSDV7z04AQqbBt8MEe9BZGt7wxpjYuT p6jXg/31p2z7NH8IpennfIwaF/xcTKkObSGTR3LOtDtfVpr+m1bhSOphKElUBGpKxn38 hLRjSltTjLwgGTLj8Zxoi8hK16wTKydkFfvdenfckkU2X1M71YqyE7jmMPo4HHzLUkV8 zMETJbwcskDMmIjEKlU83BrT8IOsEbbcDjfQi6D7z5QcqmAKs/QAeRF2VVhfwfRItpzk lw2w== 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 u9si1352139qka.294.2018.02.05.05.02.18; Mon, 05 Feb 2018 05:02: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 E4C79608D9; Mon, 5 Feb 2018 13:02:17 +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 D7D2660953; Mon, 5 Feb 2018 13:01: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 E242A60887; Mon, 5 Feb 2018 13:01:10 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 4224B6050B for ; Mon, 5 Feb 2018 13:00:22 +0000 (UTC) Received: from mxback11g.mail.yandex.net (mxback11g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:90]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 3D52644446E4 for ; Mon, 5 Feb 2018 16:00:10 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback11g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id SKoitNMZvB-0AJGaJvQ; Mon, 05 Feb 2018 16:00:10 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id KfTH12Zsa0-09pmnH0O; Mon, 05 Feb 2018 16:00:09 +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 16:00:07 +0300 Message-Id: <1517835608-15779-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517835608-15779-1-git-send-email-odpbot@yandex.ru> References: <1517835608-15779-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 450 Subject: [lng-odp] [PATCH API-NEXT v2 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: fa6d104f6031b9687ae5f60f87f5c2338ad9a83e ** Merge commit sha: acc5ce384b98953d3afe30bf866917657643f4e2 **/ 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 13: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: 126863 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1949499ljc; Mon, 5 Feb 2018 05:01:20 -0800 (PST) X-Google-Smtp-Source: AH8x226MLb7MlsKiFlh8AURWwAvgONtVaovdz5mQVGqAZ7YRgRLafs6368C9yUVVfeNyRmYYqRV7 X-Received: by 10.237.39.4 with SMTP id n4mr3334371qtd.230.1517835680481; Mon, 05 Feb 2018 05:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517835680; cv=none; d=google.com; s=arc-20160816; b=we4hkVs3ILzrynwRffBLwvsT2vxC1sNSxpl1MPuWJ5IKEIgyiz0Z23QMjkJwawxjdv rDBCSSsgl5SNHslvI/CTgf983C7lxV+hiI1hYfnMcPMQz6CrvKZ9ZQPtbm2TPCTm3p6e A4RjaVPyBcn/PRojklcuQox17g5utZSflReav1xxtdpjsWcwStVf0Zz289g3t5qOfv5U P7UGswImQW5ov2CZacBJkstviPasDt1ttgco0ccn6EGE7lrEf4Y/KqTOaZoU/4Z0y66V AZQL9z96SA62mCbUhccrXmkD8qm0xYTLmSPJJDTN5XiiWPtMZ5vLIik5FG0GQ/Ihaf5E 2j0A== 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=8bI74jKEUuWI08+SjO4dl9rS87HXLYo0t1afAv/J9b8=; b=gTh4OFhw2sYE77aDGddxj5uuYmFOpmfPDwW9gFBT8en/HYLJ0AyfR4Y5hrnne56snt 4J0MwwGTnjNDO9lXx/rptEeqc8PecUmfGP66cMTE0DIfz3Hi9JdQOECdgeBzjpS4NW9X X9lXeZxUdPb5nNlxzYZRfZQwVgNmS+z/0aJZS0p3GLyBEMG0KiVen2+tvTgux7h81WLg KZnltPTHl4AGQAyN9WRo1Ux3VqK/A+zWcrLEgyCB4QSZ/f7hDpi0jLEvbWh412SL6IhE GACwCzi1cU6KAc28uA9nFDfbTY2jjvtyEw0WtIXMsoRsrQApUXuqND7bK8soc2IvlfFG w/Ug== 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 23si445796qtr.35.2018.02.05.05.01.20; Mon, 05 Feb 2018 05:01:20 -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 1054B608D9; Mon, 5 Feb 2018 13:01:20 +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 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 5A2CE60721; Mon, 5 Feb 2018 13:01:12 +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 D5A08608C0; Mon, 5 Feb 2018 13:01:07 +0000 (UTC) Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [37.140.190.177]) by lists.linaro.org (Postfix) with ESMTPS id 4249960721 for ; Mon, 5 Feb 2018 13:00:28 +0000 (UTC) Received: from mxback10g.mail.yandex.net (mxback10g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:171]) by forward103o.mail.yandex.net (Yandex) with ESMTP id CFB345881A81 for ; Mon, 5 Feb 2018 16:00:10 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback10g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id KjmyDCepJr-0ApO17MR; Mon, 05 Feb 2018 16:00:10 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id KfTH12Zsa0-0Ap8qArB; Mon, 05 Feb 2018 16:00:10 +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 16:00:08 +0300 Message-Id: <1517835608-15779-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517835608-15779-1-git-send-email-odpbot@yandex.ru> References: <1517835608-15779-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 450 Subject: [lng-odp] [PATCH API-NEXT v2 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: fa6d104f6031b9687ae5f60f87f5c2338ad9a83e ** Merge commit sha: acc5ce384b98953d3afe30bf866917657643f4e2 **/ include/odp/api/spec/crypto.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index e27860a38..c59f66023 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -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;