From patchwork Wed Nov 8 18:00:07 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: 118302 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5601238qgn; Wed, 8 Nov 2017 10:05:30 -0800 (PST) X-Google-Smtp-Source: ABhQp+S9Dc2QNFiJG0odhcaymPBAiFVaYJCQnCBF5nTx+aJr46UTewtDlQA45vI3i682Vf1zXqUz X-Received: by 10.55.15.90 with SMTP id z87mr2081594qkg.141.1510164330315; Wed, 08 Nov 2017 10:05:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510164330; cv=none; d=google.com; s=arc-20160816; b=TdOn2aC0jroK5t9JY4atdSyk4qhLRGbjztBOMhOlTacXL+iA+hu1A9rRO6PEJmm1My IsYbG/6RV5vD8REJaF+IVc1XqU+tfnBVg15l+UR+Jg97NYoO1ArxOsgpBpboaBhaQ1Xl XcV0HUJefolrDHxxaJgLt0MhNh4fFoq244yCsperyN28PTGPbSAXVgrV846A6HxedNZD hnANOSjab3wJP+oEidpQ7qu6VkpN2VpS0M92kn/AkkrHdRtrYdwW93KAP77KZPlbd9Sn 8dy2TmePzDnQyyRt4wDFLWuRXeHnVg8ByM6vJLp/G3l61Dan4O7hk54pSkcfvL0nKh3Y rhDA== 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=/5TQ18PL4WZ5hNWN0O0TVqUNZF8t1DUecskdxt6cBD0=; b=WtNheLIUqgV5Jcq/U1TIjBoN3vTmlsaLkOnf3Uw4V+NAKhlbL2HOrFzqjd3hQf4ud3 guuAJ1kL1MJYuggAu0vdVSyex09X6DKTIe3+I6/kHTS4MKXCshUXiAcsOquLEZ3UrUSf OcWWVOFXxaDCvR4QikdP4X59I5gDGag+6R7gQDxJPef+fBEwHe88cbKd2gsQ/wsneyBc JfaNDhx7BPHh0u00IOOmyTJ7vg6V1c/5ft01BO2y+E+BHP8bl/OPahXu6L0p+5RrsFqy oIedPY7/SjhUb87HYFt/szkYxhst/OLEKUtB+I+ROC6BCaVu18nma9XF1GGzAtOtCB/e rLfA== 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 f13si929227qtf.326.2017.11.08.10.05.30; Wed, 08 Nov 2017 10:05:30 -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 0CDAD60890; Wed, 8 Nov 2017 18:05:30 +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 9B85960CB2; Wed, 8 Nov 2017 18:00:53 +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 B4C366069B; Wed, 8 Nov 2017 18:00:21 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 202146065A for ; Wed, 8 Nov 2017 18:00:16 +0000 (UTC) Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 59B2F5103D69 for ; Wed, 8 Nov 2017 21:00:14 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HENS7p0do6-0EmmuXYw; Wed, 08 Nov 2017 21:00:14 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id unJA9Y8tSc-0D3ObfKT; Wed, 08 Nov 2017 21:00:13 +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: Wed, 8 Nov 2017 21:00:07 +0300 Message-Id: <1510164012-14286-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510164012-14286-1-git-send-email-odpbot@yandex.ru> References: <1510164012-14286-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 288 Subject: [lng-odp] [PATCH API-NEXT v1 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: 569b57eebedebdf2d3148ca06f481cb94bea52e4 **/ 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;