From patchwork Thu Nov 9 02:00:02 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: 118365 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6014977qgn; Wed, 8 Nov 2017 18:02:09 -0800 (PST) X-Google-Smtp-Source: AGs4zMau8eHu/jy+meZP+Zys/n8nSy5et1GtVKJmcqHr8y2G/2Q/3rz7z+SVQw1nh6mIRngVLeGQ X-Received: by 10.233.232.213 with SMTP id a204mr4082447qkg.264.1510192928951; Wed, 08 Nov 2017 18:02:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510192928; cv=none; d=google.com; s=arc-20160816; b=zXCiONc1a/W2Z/oSXdBGWgLR2DVT9Um8A4VqiLbv/PR08ryCIrV/ysx5q/XFtTJ+Hq FhFYIyS97VdzYWPPlrjXN7/Jigq0W+w9fFE32FgJ0sbhAI6tw7XQ+Tf8oIn3yGtVcQpB RQbopf6JNXDZpRBRBHG958EiTjXLJkK9pK4uM/0LDW2zV0wFKHjZVygritaONThUfEbP Mqc+m+7SVWwvGkR2QLy6Uv4YSyftSnZkK7khsVLTGpUKWd7LnQpEGloPeK2Jms2taRxu TY0tFV5tZciV6tNWF1Oc5y7A9N3GeB65bhmmLqkFMFyISeknTF+WmlnSXYyb8gEiKuw/ BeSQ== 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=99H/95upEUJjDtPsnt/MQWmTGlsTXuHb3QWiMILqLDI=; b=fDr9+VOB2DnNG/MZZxZnyor2v4JRokkrtHlUl/P/psAczJJL9jUWJWFe1Ube4+OHc8 sg8e9P+Bw9D3q7tSeP6dEVmOAQz3TQXduvukh7/k2zxIiVNQuAydWlqySoSRTm0W/ycT ccBwS9fVZgLYIlC83CeTLVm71HT69j54Hxz4B/n9w5KbTolXXLvUgtQUg5Qa7jQRN3iI KEAGBhIra6YUC8HVkzYAoM5V0q7JaJOguA4MYgRypc2SKQQR921ZOeEk3IM7sWfjaewo fCWG0M9XMApR228KVJDChY/iMwt3HuSspw/JVZFoh5AMcJGeViRRgOLQc+2pOMIier2e kbfw== 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 a9si1036781qtg.397.2017.11.08.18.02.08; Wed, 08 Nov 2017 18:02:08 -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 A7A4960631; Thu, 9 Nov 2017 02:02:08 +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=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, 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 EC5DA60934; Thu, 9 Nov 2017 02:00:26 +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 E1E0D60634; Thu, 9 Nov 2017 02:00:14 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 0C501608AA for ; Thu, 9 Nov 2017 02:00:11 +0000 (UTC) Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward102o.mail.yandex.net (Yandex) with ESMTP id E5C175A023B3 for ; Thu, 9 Nov 2017 05:00:09 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id aJaexLMFmK-09seBtAL; Thu, 09 Nov 2017 05:00:09 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ftGesT1mbP-09E4UtJ3; Thu, 09 Nov 2017 05: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: Thu, 9 Nov 2017 05:00:02 +0300 Message-Id: <1510192807-13538-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510192807-13538-1-git-send-email-odpbot@yandex.ru> References: <1510192807-13538-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 288 Subject: [lng-odp] [PATCH API-NEXT v2 3/8] api: crypto: add AES-GMAC declarations 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 Add AES-GMAC declarations to support RFC4543. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 288 (lumag:gmac) ** https://github.com/Linaro/odp/pull/288 ** Patch: https://github.com/Linaro/odp/pull/288.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: d0ac0597cf696e17a40a8eba131ad379ba0fa08f **/ 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 7dcb71264..8da23c039 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -131,6 +131,12 @@ typedef enum { */ ODP_AUTH_ALG_AES_GCM, + /** AES in Galois/Counter MAC Mode + * + * @note Must be paired with cipher ODP_CIPHER_ALG_NULL + */ + ODP_AUTH_ALG_AES_GMAC, + /** @deprecated Use ODP_AUTH_ALG_MD5_HMAC instead */ ODP_DEPRECATE(ODP_AUTH_ALG_MD5_96), @@ -202,6 +208,9 @@ typedef union odp_crypto_auth_algos_t { /** ODP_AUTH_ALG_AES_GCM */ uint32_t aes_gcm : 1; + /** ODP_AUTH_ALG_AES_GMAC*/ + uint32_t aes_gmac : 1; + /** @deprecated Use md5_hmac instead */ uint32_t ODP_DEPRECATE(md5_96) : 1;