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;