From patchwork Tue Jan 30 14:59:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 126241 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp3446107ljd; Tue, 30 Jan 2018 07:10:19 -0800 (PST) X-Google-Smtp-Source: AH8x226mu0e9Kun/qSyNYeS7Lk+51QMsPgGAvodFkVl42t4DgFxp68RkyWsdbax/k8BMXGAjGwDb X-Received: by 10.37.65.80 with SMTP id o77mr20186129yba.124.1517325019755; Tue, 30 Jan 2018 07:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517325019; cv=none; d=google.com; s=arc-20160816; b=YZtFw8KY8+64Tv3HlVJhsuM7VBmyKlisY+usmJ3D1mHcGv/8d30qeclfHXKunhsCg3 x/+161mWj1jY4sOZHpqwq91v26L6W7SMRB7qd6Qz7RBxtsjKV3SS57Swpb5dzpyciTfa /Cznt2xI0lYcAluq0dr8T/Ek25MRi+6BEtqo1ivYlQWj/UMeRxuGbJgWSL+GlHJI7oRG BRAbsGx7nVQXuasswOYwuZPO+ZkelUDdyXHeBMl1PMbj1m17yXOhcRmmrlEbVbc7w74c du5P1AKGOA3nrRW92FVHJoeuJsn/oaVA6tpRwMnlJ8NDz2J8qbKAzgkMq2gcXqAdoQLc 6m4g== 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=/zXPDRRt7FF05btBAHcPwJVXfsUGNE/88HEvgH2AyJc=; b=FaJKUb0KYfIsubEeR1Y7cOx39aPhyWteY7KVFyZhE1fejQV2XimctnR4eVV0WHHVQp gkWwc9sKE7e5i4Dq+6mucH0g5eKFE/ItJdlZWl2qrLOlQA1g4OT4f+KwbEx7yMNiX7xK C00PvxCIEDqsxG19IIYr76UA7aD/ykUrligDCPxoSQcApBPA0+z15X/4Jpx2t1YU3Xx4 I6M75wRa2cHCTqmwcfECFNf5BkdfofSOuvRrEtxR4SdFV8W6cSlm0cP+JxBshaGt0aaL W1W1NDf4lK13AKPKwe8Pw003CP/ze4jdFX9GUis4A5F2SHnSRjtIpKJR+GRgrXFiDlSm 5hBQ== 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 77si736375qkv.59.2018.01.30.07.10.19; Tue, 30 Jan 2018 07:10:19 -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 5B62461753; Tue, 30 Jan 2018 15:10:19 +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_H2 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 744006175E; Tue, 30 Jan 2018 15:01:11 +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 2BA8A6099A; Tue, 30 Jan 2018 15:00:33 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id F10696104E for ; Tue, 30 Jan 2018 15:00:20 +0000 (UTC) Received: from mxback18j.mail.yandex.net (mxback18j.mail.yandex.net [IPv6:2a02:6b8:0:1619::94]) by forward105p.mail.yandex.net (Yandex) with ESMTP id D9D964082AB2 for ; Tue, 30 Jan 2018 18:00:15 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback18j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 0jIOdgJekG-0FjKndhT; Tue, 30 Jan 2018 18:00:15 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id sxKD104gxy-0FriSrKZ; Tue, 30 Jan 2018 18:00:15 +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: Tue, 30 Jan 2018 17:59:58 +0300 Message-Id: <1517324412-24567-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517324412-24567-1-git-send-email-odpbot@yandex.ru> References: <1517324412-24567-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 434 Subject: [lng-odp] [PATCH API-NEXT v3 3/17] api: crypto: add enumeration for AES-CMAC 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 enumeration for AES CMAC authentication algorithm. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 434 (lumag:crypto-upd) ** https://github.com/Linaro/odp/pull/434 ** Patch: https://github.com/Linaro/odp/pull/434.patch ** Base sha: abc7b3bb0babe8efa0fde52752bcd514f2f0d422 ** Merge commit sha: 15e0c830b5937ae889b7bcf6822797dbe0ecb799 **/ include/odp/api/spec/crypto.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index b8c7b9d80..421080c2b 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -175,6 +175,14 @@ typedef enum { */ ODP_AUTH_ALG_AES_CCM, + /** AES-CMAC + * + * AES Cipher-based Message Authentication Code (CMAC) algorithm. CMAC + * is a keyed hash function that is based on a symmetric key block + * cipher, such as the AES. + */ + ODP_AUTH_ALG_AES_CMAC, + /** @deprecated Use ODP_AUTH_ALG_MD5_HMAC instead */ ODP_DEPRECATE(ODP_AUTH_ALG_MD5_96), @@ -258,6 +266,9 @@ typedef union odp_crypto_auth_algos_t { /** ODP_AUTH_ALG_AES_CCM */ uint32_t aes_ccm : 1; + /** ODP_AUTH_ALG_AES_CMAC*/ + uint32_t aes_cmac : 1; + /** @deprecated Use md5_hmac instead */ uint32_t ODP_DEPRECATE(md5_96) : 1;