From patchwork Thu Nov 2 17:00:06 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: 117834 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp2314796edm; Thu, 2 Nov 2017 10:00:21 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TrFp8sT5N96B5wIwe16gEW9Qr2xiRyYdJv75qWMEYouRllMDg/QRazMvSrcvzhGWNLKe/y X-Received: by 10.200.27.116 with SMTP id p49mr6178809qtk.336.1509642021019; Thu, 02 Nov 2017 10:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509642021; cv=none; d=google.com; s=arc-20160816; b=GLCGPQ7VB7/iv2GctjZw11FXBCi39MBm0mEFg4kKKcA8bAoheA2k8sOmURc5mM6WZB umBpgtJbHOq68y9W6EhXq14GKwxISRMVEvRtAtkpvPhHljaWzhH8yIQ4oU2+0Z+sE3wD kr7WLy7xmx4B9MlieaJTv/OH3Rm0MsG8FK0mfgJajTv6jCawys99IpCVzwNkVWZJpcyp s/jqdJ0pD9Ru0bTjHAey28V7iEj24nduQLR1vk89jIS74qeDMy6rhJ4Tw+3HZNyMPYXy Agkhk7vyq3nyHj3YI3Js0okmllP+Bwo+7RqstNci3MFIPBZpQh6OY/Hd697hZShaPaRU qmLQ== 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=OXDHZMdK+d3/bUCe8/XpmS1FoT54PeiK5+G7eTFwlps=; b=HXS2tk3A+d2/ON8Uo6xoWZLUa3apBRlAN2Lf7076HU1YBTbMssbdvyRgZbdO+GHYoV 2pCMz+6MmfoJ+FIcDY9aNwt99fvp1eaMVFHM7zTJT8j6uXundfjU62HcEbKzDSyiFHLO KI2owJEQC+E6ewTagEmCxqjbNZykSYHxTiFdn3onHND/H202qE4JxLLPWB3tYjtN5R7k Br1ksKZSwt7dVgkpTZhy2t1SbnXlqQpKQK9y2wGr9+H//DLsUyf5OtOvGiE0qrYjS1jB 6Ah9VNLujZScsfrTDIy7VHiDsdPQkzWOJJQDT/Pu05jBLi5jw7sNGbqeKzuREAtLjAJ4 4lvQ== 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 w64si3567156qkg.155.2017.11.02.10.00.20; Thu, 02 Nov 2017 10:00:20 -0700 (PDT) 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 2925860A31; Thu, 2 Nov 2017 17:00:20 +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_H3, RCVD_IN_MSPIKE_WL 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 9898F6069C; Thu, 2 Nov 2017 17:00:16 +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 39A00608E8; Thu, 2 Nov 2017 17:00:13 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 1194E6069C for ; Thu, 2 Nov 2017 17:00:12 +0000 (UTC) Received: from mxback1g.mail.yandex.net (mxback1g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:162]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 76AE6218230B for ; Thu, 2 Nov 2017 20:00:10 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback1g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ExToLE7EZc-0ASKUqfd; Thu, 02 Nov 2017 20:00:10 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id EKt7cPg9I4-09sa9wYT; Thu, 02 Nov 2017 20: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: Thu, 2 Nov 2017 20:00:06 +0300 Message-Id: <1509642008-6978-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509642008-6978-1-git-send-email-odpbot@yandex.ru> References: <1509642008-6978-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 271 Subject: [lng-odp] [PATCH API-NEXT v2 1/3] api: crypto: add AES-CTR 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 declarations for AES-CTR cryptographic mode support. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 271 (lumag:aes-ctr) ** https://github.com/Linaro/odp/pull/271 ** Patch: https://github.com/Linaro/odp/pull/271.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: b976868759b2e8ee4ff32d3749e1df5cbd844ef7 **/ include/odp/api/spec/crypto.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 7dcb71264..4f8123bec 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -90,7 +90,10 @@ typedef enum { ODP_DEPRECATE(ODP_CIPHER_ALG_AES128_CBC), /** @deprecated Use ODP_CIPHER_ALG_AES_GCM instead */ - ODP_DEPRECATE(ODP_CIPHER_ALG_AES128_GCM) + ODP_DEPRECATE(ODP_CIPHER_ALG_AES128_GCM), + + /** AES with counter mode */ + ODP_CIPHER_ALG_AES_CTR, } odp_cipher_alg_t; @@ -169,6 +172,9 @@ typedef union odp_crypto_cipher_algos_t { /** @deprecated Use aes_gcm instead */ uint32_t ODP_DEPRECATE(aes128_gcm) : 1; + /** ODP_CIPHER_ALG_AES_CTR */ + uint32_t aes_ctr : 1; + } bit; /** All bits of the bit field structure