From patchwork Sun Jan 28 08:59:55 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: 126061 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp1556744ljd; Sun, 28 Jan 2018 01:02:10 -0800 (PST) X-Google-Smtp-Source: AH8x226C9zsCQnp8nvVQ+jE5gzdbYW9vSVnF5AWRYq12wH7hrThPowk3pwGYVo5WSC+HSjUKHdcY X-Received: by 10.200.59.65 with SMTP id r1mr32252567qtf.18.1517130130750; Sun, 28 Jan 2018 01:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517130130; cv=none; d=google.com; s=arc-20160816; b=IsHer41UGAdwkoPs1s+YTCwz1zFfXuPUDx/a96JavZgBBs/aXI0WE3coOj0Qahq3r9 PDkwQ9o8W3PskDGgS9ZtiiqH+W6HoT407fDxSFjyh6rsBr16FhOpJ3msgc7xpSTtJs+6 KbS0sm9xyo2P9xBtxtHB8Ng8FME3iG4IsNthdLEpUNuqSrwTffHqzx0NX1MXlVLFRk+S dsC9kMy6nK/k/DARYgsLmaMKG87hbmF5ifkL373Gekbi5vJ4TXa8j1/7Oz1ZUopszi8k 9DHU3XBDaz+wA6Qh3LbhCGu2qybvGUKvHKHQpmBuOm7eZ48xJ/O74bMbaJsAeG4vmmjy 81Ew== 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=mGQF/8Q5PgYaR3wk83wyX87DO0RwQlw/JINM4yEIBSE=; b=RV5ktF5y3xbkJgjzpM/Q7UKGvR1OggRZ673LyUJ8rjcsHlaB5ZL/2PDaJm7SY0eONX z8wBQvTpZO8PL5O4Pw/SvQHTm5v5gMeYAnWXTUUWVyTeCf9uoy/IK4+1WhGy7lIW4j/w NdN4Qh5jAt6ZgacEh0AjlKtSv29B3PZ+J+c2Pm+6/MV3DI3u5V9lVLBm0U9zVgSPEOrY ReVJDpzBVlKmTEJRuKgY5T5o78FUdU1+8bFg4jOElIC2i7v7RLvci68+plG7VnUUti7t gpT6Mq1Jml8ZIiy5XWyC5fE2IsFybZjLc8fV953cMZXNme9ewdKOZ0t5qxUvyNCZsN9n XdmQ== 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 s41si309336qts.213.2018.01.28.01.02.10; Sun, 28 Jan 2018 01:02:10 -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 5BF2D62795; Sun, 28 Jan 2018 09:02:10 +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 BAB3161705; Sun, 28 Jan 2018 09:00:32 +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 E5E6E6176F; Sun, 28 Jan 2018 09:00:16 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id 452BD61519 for ; Sun, 28 Jan 2018 09:00:13 +0000 (UTC) Received: from mxback6g.mail.yandex.net (mxback6g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:167]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 0B4902A2260B 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 mxback6g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id fPVLNzqDG1-0B2mUm3N; Sun, 28 Jan 2018 12:00:11 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kBi2pciDaV-0BXGenmd; Sun, 28 Jan 2018 12:00:11 +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:55 +0300 Message-Id: <1517130009-11837-3-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 2/16] api: crypto: add enumeration for AES-CCM 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: Petri Savolainen Added enumerations for AES CCM authentication / encryption algorithm. Signed-off-by: Petri Savolainen --- /** 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 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index e4b0e8cef..b8c7b9d80 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -92,6 +92,15 @@ typedef enum { */ ODP_CIPHER_ALG_AES_GCM, + /** AES-CCM + * + * AES in Counter with CBC-MAC (CCM) mode algorithm. CCM provides both + * authentication and ciphering of data (authenticated encryption) + * in the same operation. Hence this algorithm must be paired always + * with ODP_AUTH_ALG_AES_CCM authentication. + */ + ODP_CIPHER_ALG_AES_CCM, + /** @deprecated Use ODP_CIPHER_ALG_AES_CBC instead */ ODP_DEPRECATE(ODP_CIPHER_ALG_AES128_CBC), @@ -157,6 +166,15 @@ typedef enum { */ ODP_AUTH_ALG_AES_GMAC, + /** AES-CCM + * + * AES in Counter with CBC-MAC (CCM) mode algorithm. CCM provides both + * authentication and ciphering of data (authenticated encryption) + * in the same operation. Hence this algorithm must be paired always + * with ODP_CIPHER_ALG_AES_CCM cipher. + */ + ODP_AUTH_ALG_AES_CCM, + /** @deprecated Use ODP_AUTH_ALG_MD5_HMAC instead */ ODP_DEPRECATE(ODP_AUTH_ALG_MD5_96), @@ -192,6 +210,9 @@ typedef union odp_crypto_cipher_algos_t { /** ODP_CIPHER_ALG_AES_GCM */ uint32_t aes_gcm : 1; + /** ODP_CIPHER_ALG_AES_CCM */ + uint32_t aes_ccm : 1; + /** @deprecated Use aes_cbc instead */ uint32_t ODP_DEPRECATE(aes128_cbc) : 1; @@ -234,6 +255,9 @@ typedef union odp_crypto_auth_algos_t { /** ODP_AUTH_ALG_AES_GMAC*/ uint32_t aes_gmac : 1; + /** ODP_AUTH_ALG_AES_CCM */ + uint32_t aes_ccm : 1; + /** @deprecated Use md5_hmac instead */ uint32_t ODP_DEPRECATE(md5_96) : 1;