From patchwork Tue Nov 7 14:00:10 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: 118168 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4012921qgn; Tue, 7 Nov 2017 06:01:31 -0800 (PST) X-Google-Smtp-Source: ABhQp+SCQ37ZHhg61yFmQ9bvL/R0uN093bajjyCB112kqoCDYcRJfws83fJccawUNCAzDQoNG1/R X-Received: by 10.36.61.76 with SMTP id n73mr2172087itn.101.1510063291709; Tue, 07 Nov 2017 06:01:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510063291; cv=none; d=google.com; s=arc-20160816; b=WyX2mQ38KUCHzZ/KNPRHemzB4iC1kmHTTEpvKHhxLuoVVEJrqGJjKmnGFO6jWcCjxA yPby+NV13uSklYw829P5VbrJlJao5MB2ly0Xxgz+JFEpEoYvBsYKa7a9LXyQBgrfCSuJ /HjBRIr3CCqm1IubGqBH2XlcU/f//isNaJ5V+67+bQV1Z1wMs0wlMynitSPdJr8JHTYi WyISYiFT8D2ifivA9WGCaeekXtTLG+sOtLe56LMMAgDQ5Y7Gr7P320a3Iu4rJF19RuEr 3Chs940SmZH2cZzi/pwgF7/duCeayy+mMAPk0TtVxImedgO+6BqqESabHvK+RHH+Oprx VkhA== 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=Hv4//qBad9Yvbanpr+nZV5ylNrU3hUxRVl4tlE/G9Y8=; b=RRNzhsJ3DAHXhg1umzcnJ8fuzlNqMyxSkLbFJTnYD0pvmaxvZz8bvsuhSheRYhwF1u uDyd1lsfE4phofKlJRWM1ButvRphxujqJTCBUTKRfPsZyhW1ACknpjHu6lflYQJzBPmj XEWhaYJRkpHKZqKbRxNXjf98u4xrLCDGzvUAGtQ+wQqjWJ63YNv8LSamEMuko/rvVQI3 ihWJC57PAT05H0i2VtZNCJk4egs2GyTCfJRitYginodEmWuKZWjHrmvF5EV5Asn5omaM 6oI2IJBDIFJRN0raPAhnRR6nuN6aEWlMRIvJ5nlIHT8suQBSf5J5OaARonpvlgU2GLRq pv0A== 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 b15si1409112iti.114.2017.11.07.06.01.30; Tue, 07 Nov 2017 06:01:31 -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 78ECF60CCE; Tue, 7 Nov 2017 14:01:30 +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 5686960C1E; Tue, 7 Nov 2017 14:00:29 +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 8F1D06069F; Tue, 7 Nov 2017 14:00:18 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 22B7C60386 for ; Tue, 7 Nov 2017 14:00:17 +0000 (UTC) Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward103p.mail.yandex.net (Yandex) with ESMTP id A9DDF218378E for ; Tue, 7 Nov 2017 17:00:15 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id gsW35KsZZ2-0Em8O8Xi; Tue, 07 Nov 2017 17:00:14 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id mAkgTAX8AR-0DeiKL5p; Tue, 07 Nov 2017 17:00:13 +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, 7 Nov 2017 17:00:10 +0300 Message-Id: <1510063212-30218-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510063212-30218-1-git-send-email-odpbot@yandex.ru> References: <1510063212-30218-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 271 Subject: [lng-odp] [PATCH API-NEXT v3 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: 17e6f7bd8c2da61bad27d90c4b530c0f5a80fb0d **/ 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..ed1fd6784 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -80,6 +80,9 @@ typedef enum { /** AES with cipher block chaining */ ODP_CIPHER_ALG_AES_CBC, + /** AES with counter mode */ + ODP_CIPHER_ALG_AES_CTR, + /** AES in Galois/Counter Mode * * @note Must be paired with cipher ODP_AUTH_ALG_AES_GCM @@ -90,7 +93,7 @@ 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), } odp_cipher_alg_t; @@ -160,6 +163,9 @@ typedef union odp_crypto_cipher_algos_t { /** ODP_CIPHER_ALG_AES_CBC */ uint32_t aes_cbc : 1; + /** ODP_CIPHER_ALG_AES_CTR */ + uint32_t aes_ctr : 1; + /** ODP_CIPHER_ALG_AES_GCM */ uint32_t aes_gcm : 1;