From patchwork Sun Nov 12 12: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: 118639 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp676924qgn; Sun, 12 Nov 2017 04:03:44 -0800 (PST) X-Google-Smtp-Source: AGs4zMaSc8sGtNrsTEI1Rg2Na+iiUOj1mDe52SvxQ/kFlayiXJbUOZ//BgiUJFdwBRggEwllofJb X-Received: by 10.237.62.153 with SMTP id n25mr9183275qtf.124.1510488224006; Sun, 12 Nov 2017 04:03:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510488223; cv=none; d=google.com; s=arc-20160816; b=a8x8UaDUn5Vhlazn/LDmkIplrpCRx9tjwhRi1fc2gkVs7ItKQdAIhDouuNuDlt1L3l AOM3YKbi+12byvsbOJOIo4JHY6JQdQthp6e86Vvgkv4EOmBURqhRETp5GtrcIygQYYKO wa3BFe6EosCUvh1LU1F1r2UYPJVZCpSL+mzFncNV9A95kLDTG18SUYAYeOohWb0crZB4 S5ly8RB6gxq8ci/KSoDZy2d/+KQF50UZz2cwlZ884+qFxB4qVxhxHl2uVMA9GPTb+qFI mfGwpUVSzjUYuqrkCVSMpBjERO43QMKypaZDzNXWWWKoGE2MIMj6X40NObp72q5BqUTV 0AHg== 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=xNyHcW11Ruo1LSiJ7pbfjL2l4i6EOPIgsljcnXopoec=; b=LO/oDn+r5sFqcMS4tpTzXYlWFSYeCn95YvevcpxjKnEBjUNNDL9iwWb4/88rzHoxIH 6dwIry8u66N4t4MAkFX558VdYshqYB7OVOGFgz77jesAiNcjtlILz+qvEomsg9EhBBox P4EUuNre/6mSDy+KkUxsfIfofpZpX6zB53ooQdTJP7SXRweV1LmD8YGEM+ZY/v0xSTi2 mojLnTPuLImEF5u8HqSSBBtCGd0eibCiAGzIMQbhe/q6DKK1FEv0Dgx0ln88lBBc0PfE 9Y0PzgqPEqmRGGiyBccrGkCWxquuouzxmgTC+wupxaKK6q9za5GSLk+vg1p+zWFkAE1L Z1AA== 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 r81si6325949qka.79.2017.11.12.04.03.43; Sun, 12 Nov 2017 04:03:43 -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 AA81060A56; Sun, 12 Nov 2017 12:03:43 +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 39E0F60750; Sun, 12 Nov 2017 12:01:19 +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 E32D6609C4; Sun, 12 Nov 2017 12:00:52 +0000 (UTC) Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [77.88.28.109]) by lists.linaro.org (Postfix) with ESMTPS id 1769E60A0A for ; Sun, 12 Nov 2017 12:00:12 +0000 (UTC) Received: from mxback6o.mail.yandex.net (mxback6o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::20]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 8C0902D885A5 for ; Sun, 12 Nov 2017 15:00:10 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback6o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Oi88Qhof1e-0AtiPQvB; Sun, 12 Nov 2017 15:00:10 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id r6E8l2cXPM-09WeYTZC; Sun, 12 Nov 2017 15: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: Sun, 12 Nov 2017 15:00:02 +0300 Message-Id: <1510488007-21101-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510488007-21101-1-git-send-email-odpbot@yandex.ru> References: <1510488007-21101-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 288 Subject: [lng-odp] [PATCH API-NEXT v4 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: a908a4dead95321e84d6a8a23de060051dcd8969 ** Merge commit sha: 9fff58cf77d87306efed89f77e84f957850623d5 **/ 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;