From patchwork Sun Jan 28 08:59:56 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: 126059 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp1555652ljd; Sun, 28 Jan 2018 01:00:40 -0800 (PST) X-Google-Smtp-Source: AH8x226jBOisDnYKYQr1Qyr0YVaIHknHkMNPKC94lNWDTSvvnVGMCCWAQzBwMIUzzEUZ62uAHq4s X-Received: by 10.55.192.4 with SMTP id o4mr1161322qki.268.1517130040469; Sun, 28 Jan 2018 01:00:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517130040; cv=none; d=google.com; s=arc-20160816; b=olVsC2NEI589jH/H53q2wZgDE/DE+CDc3W1YlbTE2c0sph151Zd/BZXIMoRDYfkFCl mBj/dJDSSOcgIKnl6nW3URP+5veojGN+gumi4gCDsmdnTT5TUFeiVAILLeB0pwjk15cL cAfHr+DXCTfto3TjeNaWHmpjscxzcEvJXDjQEA6tLgP/nj1KL4BToGuyY+ov5MQDwnj8 Sy++Ro2Mg9yDnpYoMu2yLVAlMWflHKDg7yPTIZZDT3oxL7B48CMXF9mKKQ0gyZSslrah 2rgRcMKDVei5cFWkggtBY7n0YnpNIFowuzfmt2fOoVa9Whr7wNMZKnMAcUuGVxN138iC rBzg== 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=GnoPEMptWu/pgmOVFRbUVCaWfh+S2LE1i7uis+HCNKY=; b=zUIRVmmAqxSz/+zD481DmrDwIC7VmUrD1yrdodR9YY2LvtOKwxgunVAX3PM8IDL2O4 AIXUP4tITP1F0n6q5NMGQbRLrS6jGstV8blFoHQlGt3/qD5psBFl2U19IYs6CuN5XjXw bSZEM7vvyQZ7NiziUPxTs/VS9jGwLabR/BMnvZv3kzQlsVmkjjRiLHoKPEpGKPLEGmqZ lpXEGA14MakdxMh5seN+2darOATDsVhOqOHg9+wa06ZeDxTT1+95pZXl5GnrnqanXv19 8T334QsGxgIObZTVnwiItcBDiQFXbqvvH/15/iK9xkvW29s8u+i70SjMYCsHdM4t3UZy FUxA== 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 o50si11418332qtb.313.2018.01.28.01.00.39; Sun, 28 Jan 2018 01:00:40 -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 9DE63617F3; Sun, 28 Jan 2018 09:00:39 +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 12A546178D; Sun, 28 Jan 2018 09:00:24 +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 9FD8361776; Sun, 28 Jan 2018 09:00:16 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id 57C1560887 for ; Sun, 28 Jan 2018 09:00:14 +0000 (UTC) Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward104o.mail.yandex.net (Yandex) with ESMTP id 91969702823 for ; Sun, 28 Jan 2018 12:00:12 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id MbmuGPSBLy-0CSK34mi; Sun, 28 Jan 2018 12:00:12 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kBi2pciDaV-0CX4ed1p; Sun, 28 Jan 2018 12:00:12 +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, 28 Jan 2018 11:59:56 +0300 Message-Id: <1517130009-11837-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517130009-11837-1-git-send-email-odpbot@yandex.ru> References: <1517130009-11837-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 434 Subject: [lng-odp] [PATCH API-NEXT v2 3/16] 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: 0bdad6d2562166eec4abeb957b6bb5067de9fe94 ** Merge commit sha: 8947b874421e06f87f32ec66357967a71e46e986 **/ 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;