From patchwork Mon Nov 13 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: 118748 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1831900qgn; Mon, 13 Nov 2017 06:04:09 -0800 (PST) X-Google-Smtp-Source: AGs4zMY2mLVSQ9FOcW/b79xrcYeUthqdAqHW3+DAa9XY4HifnWh5idcX0g3xSIITLOQrtbWT6YwZ X-Received: by 10.55.80.193 with SMTP id e184mr13869083qkb.126.1510581849812; Mon, 13 Nov 2017 06:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510581849; cv=none; d=google.com; s=arc-20160816; b=dO+aKlJhZ5uTKZ4LI4LFvuWPOnUEbWZIifeYnhM1NAzbSmiaILpEO+yn0UdLYpAZhv apMq9DqEYgQHqGYCOBaFN0uOTVQhTtcLhUEWSKSNToLwSYRhiV9NpKzOlUtG73GmaIcv RBBXzvQcr5fkQf1IJcTa82Cr1JnMF7+2+2UTN1Q6irbgnGbqS7DAVMsoAICeD4306/wt Uq3TjDbu775JDeiW17Owp2IhEshufkOtHm/3dtynBZWeeMjR3wJ0FG/oKfaNnE/POJLJ 5q2DC9dsgBWEjfdSFHd+gSvCkzw3uT48PsP+aaHXlVjryomOUyOI7/ee9ClgXESp3e2p XbBg== 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=5uM/Bl5M7c0zIvvvjNx2nqktShBaHZlr+ww9yJl0IA4=; b=zBPn6Ut6MYLpvDTjqvnkmEthuImsvFX2GFiWtJ98xsxVUyzz175FWWEYVwvu7hSa08 gNN8F4IJ3+sYYlm518pse6espn95eAvAFHrIYMpaRhgEgECgojzPpG5WLy7uVOiioU/e +xgabtTHpLXLYf96z2Ab/3dacnNYBSKV5fqZZQhVZFc7gQglvCncWMFiiIhz2SDu1OgD ESd81L7VIrsEHOBKuQ2VeeMEOpFVrMyV0ImhnKqXgeyzP2Am0L09LGgaeJ7tx4UKz4di LHvGQgCnvOMoXeB3KrLsVFTmY58zBgfVP+Xf/k+doeX3RzpQ5b5pAl6n4mqBbhlxeFMI RSQQ== 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 y7si4363299qtk.196.2017.11.13.06.04.09; Mon, 13 Nov 2017 06:04:09 -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 6184061BBA; Mon, 13 Nov 2017 14:04:09 +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,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 5CA1961019; Mon, 13 Nov 2017 14:00:47 +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 9496E60991; Mon, 13 Nov 2017 14:00:26 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 6E12860B16 for ; Mon, 13 Nov 2017 14:00:16 +0000 (UTC) Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward101o.mail.yandex.net (Yandex) with ESMTP id BABC31341E50 for ; Mon, 13 Nov 2017 17:00:14 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id deH6AUwGc3-0EZCM1xG; Mon, 13 Nov 2017 17:00:14 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id eBFPNklri7-0E8ObJ7q; Mon, 13 Nov 2017 17:00:14 +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, 13 Nov 2017 17:00:02 +0300 Message-Id: <1510581611-13870-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510581611-13870-1-git-send-email-odpbot@yandex.ru> References: <1510581611-13870-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 288 Subject: [lng-odp] [PATCH API-NEXT v6 3/12] 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: a908a4dead95321e84d6a8a23de060051dcd8969 ** Merge commit sha: 60f2c36c67f6b216666f85876af63f7091b1bff0 **/ 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 ed1fd6784..50557c018 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -134,6 +134,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), @@ -208,6 +218,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;