From patchwork Thu Nov 9 14: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: 118449 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6632693qgn; Thu, 9 Nov 2017 06:04:14 -0800 (PST) X-Google-Smtp-Source: AGs4zMbMrWfBtaUmhEvKAppGupETWHkxXF4FQwcFzoICRJBKOSxXSr/x2g8X/2/F0i7AK9sY45Jc X-Received: by 10.237.61.118 with SMTP id h51mr897466qtf.36.1510236254784; Thu, 09 Nov 2017 06:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510236254; cv=none; d=google.com; s=arc-20160816; b=smDkr2m8AjXyDHhGgZK16e3/wMHjPPGkVOn73hnTCi/HLQWcIC+IGAiN9QMzUx7Wad eelnyUafOXvtKpQdaaKiz+BSeKfN+kC6MD8lI93se0PSI0YKf/0+XWMQF/ysRsfBLh1U o2GgDw6p8ZImC1xX+zO5mEWoVYg8T0Qh2lPGHRU7gF5Rf2VC9YzCKOlig+t6dVIAuyJW fNY9VTgh+pB7qu6XFwXg4j2yPkocL43KcNBBWxK3opXcWO5paqmaYECJXQ/vGLrmR4Gm GM75BXOix6GhrE67ADFLmdQJGpfnnUfpTDOeHvHf38s+T+41SuyPZxcKSRf+khIK6eYc 2eUw== 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=tNGEWNJUirgAhhq4s0TxjUcOyA6nr/Df9BATZop3CSY=; b=Keoq4/27g2okfnFOFfVjMiCXFJGjwuiCpZ/yTOKkPR3cUCmo7PBIf5s7wjP4KPHF1U CsOVJqTEs8RFvh9zL/BisKdYjouL0Ib9wW+WCQIyvpgZLAoo+2rG2UzM8kGwS6fr+FEP OobYfwzK/Q2T5OpmBvNGtk7BJLnJmlHDNE1s3ebPlwdeyp6D4pKkC5ClqZ7xxAW9P8og X000dnAddaMv1eOLzFzrzzbj71beJsJb4YuVtCv2ApXhDo24GGXS8kyjsL5/CGNzEEba QNnvP3WmiIU8doBr82HoYCL57vrLTE3U8N++RxLwS2ztmoOnc1tjtAMZ1D7icXVkF5oT /hQw== 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 p128si2389386qka.361.2017.11.09.06.04.14; Thu, 09 Nov 2017 06:04:14 -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 5B53961010; Thu, 9 Nov 2017 14:04:14 +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 729C160D3C; Thu, 9 Nov 2017 14:00:41 +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 B63B56023D; Thu, 9 Nov 2017 14:00:20 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 61E646023D for ; Thu, 9 Nov 2017 14:00:13 +0000 (UTC) Received: from mxback3o.mail.yandex.net (mxback3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1d]) by forward104p.mail.yandex.net (Yandex) with ESMTP id C7DD5182D59 for ; Thu, 9 Nov 2017 17:00:11 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback3o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Z059gm0njq-0Bb4sCYQ; Thu, 09 Nov 2017 17:00:11 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 9u564oQ33p-0AnSpt2w; Thu, 09 Nov 2017 17: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: Thu, 9 Nov 2017 17:00:02 +0300 Message-Id: <1510236007-28235-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510236007-28235-1-git-send-email-odpbot@yandex.ru> References: <1510236007-28235-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 288 Subject: [lng-odp] [PATCH API-NEXT v3 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: ba7b9d98bb5dfe0cf7d7d28767c7a9c02d421d2d **/ include/odp/api/spec/crypto.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 7dcb71264..34530c7f6 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -131,6 +131,16 @@ typedef enum { */ ODP_AUTH_ALG_AES_GCM, + /** AES in Galois/Counter MAC Mode + * + * @note Specification uses term AAD with GMAC. ODP uses packet + * payload for GMAC authentication, like the rest of MAC algorithms. + * Pass GMAC IV via session IV or per-packet IV override. + * + * @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 +212,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;