From patchwork Sat Dec 16 03:00:07 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: 122154 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp261512qgn; Fri, 15 Dec 2017 19:01:38 -0800 (PST) X-Google-Smtp-Source: ACJfBosdfjrPw/Djp8aDR5QL/ufpwkurSReh/YTrIlE/MPaI9nSHWmOZbJ65Iy80uAeuHYJS6q1+ X-Received: by 10.200.1.20 with SMTP id e20mr25201296qtg.2.1513393298145; Fri, 15 Dec 2017 19:01:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513393298; cv=none; d=google.com; s=arc-20160816; b=pKfi1mR7xMyVaZwgcchukW0ZbhB1qhgmuLfBpPO+7cTY26f9ocaBrY8b+VMAapyHmN hx+DzCo2R9qqWPp9teF/gNwxvP7Ln7WeUxJ+T6IOtgPWVt620xuaytAKdZfZdUCGpTBi NSLQyUoHBzPBv/P4XALWa1gaZgihDPiHas5wV0mEyAkWoq7RIIP3VcS1LNJ/e4iwxh9M eRcObzUSJ8tD3Loz6VkHHKrD/PP42ocMBI4oq75n/Mx8VWTEHrvZTGR3+8nKBK7gB6fp MWbqvWaMdzp5FCuWLG9AoBW6b49asg54Z4+JwLgQMaQOeNzpjGR1NVn+8/cJ/UItVzOe l3wg== 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=Z8cBlmDYjQFECtkjN7FTPtPdUqidHf8n8aerWlA3JgY=; b=QkBeq4bAUBlEk/vR7wmeV3PuXlXw0cLYexLXnD30WzDEPhyEIfSNaY58gAqc4l+AKo ohZLMcyeeQlrcaGKFkJNiQvo7fLnOsbjmBbO+vNA/53iUgsxfvAkOvUBL0Ie1xxxBsUR PG9qimE+YBFxTTMvYJ/6VaT3kD4aosVSHMdsXeZ2b0R6901UYtsmUuG6hHDeC97GY0G9 pjv2e5NYO14cZg/XPKlz5twbxaaRlCAfbUiG2r7BavMF81fg9JWDHJof/RNEZXYYlBLH S8zRrCUr+t80S1s5iE7loALuZDYAeGhbcQuEj15h96QEiBPJBkyhOit5SatvnAi6J2FX D5SQ== 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 o7si5941209qkb.402.2017.12.15.19.01.37; Fri, 15 Dec 2017 19:01:38 -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 D588161502; Sat, 16 Dec 2017 03:01:37 +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 9976B60960; Sat, 16 Dec 2017 03:01:03 +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 4021B614E2; Sat, 16 Dec 2017 03:00:54 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 244ED614E2 for ; Sat, 16 Dec 2017 03:00:25 +0000 (UTC) Received: from mxback9g.mail.yandex.net (mxback9g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:170]) by forward104p.mail.yandex.net (Yandex) with ESMTP id A2C8E182C02 for ; Sat, 16 Dec 2017 06:00:23 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback9g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id YWJkaKiob4-0NmeXDDD; Sat, 16 Dec 2017 06:00:23 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id qI7Kebq8sy-0HGO8912; Sat, 16 Dec 2017 06:00:17 +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: Sat, 16 Dec 2017 06:00:07 +0300 Message-Id: <1513393209-29808-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513393209-29808-1-git-send-email-odpbot@yandex.ru> References: <1513393209-29808-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 344 Subject: [lng-odp] [PATCH API-NEXT v3 1/3] performance: add AES tests to crypto performance tests 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 Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 344 (lumag:openssl-ctx-api-next) ** https://github.com/Linaro/odp/pull/344 ** Patch: https://github.com/Linaro/odp/pull/344.patch ** Base sha: 0588040068a50d0d15a641d091fce23214b15594 ** Merge commit sha: b99f3905979695ee44a55ac3111eb4b586aa1a06 **/ test/performance/odp_crypto.c | 71 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c index 0cbc2754e..b1c1b79fe 100644 --- a/test/performance/odp_crypto.c +++ b/test/performance/odp_crypto.c @@ -30,7 +30,7 @@ */ #define POOL_NUM_PKT 64 -static uint8_t test_iv[8] = "01234567"; +static uint8_t test_iv[16] = "0123456789abcdef"; static uint8_t test_key16[16] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, @@ -38,6 +38,12 @@ static uint8_t test_key16[16] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x10, }; +static uint8_t test_key20[20] = { 0x01, 0x02, 0x03, 0x04, 0x05, + 0x06, 0x07, 0x08, 0x09, 0x0a, + 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, + 0x10, 0x11, 0x12, 0x13, 0x14, +}; + static uint8_t test_key24[24] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, @@ -226,6 +232,69 @@ static crypto_alg_config_t algs_config[] = { .auth_digest_len = 12, }, }, + { + .name = "aes-cbc-null", + .session = { + .cipher_alg = ODP_CIPHER_ALG_AES_CBC, + .cipher_key = { + .data = test_key16, + .length = sizeof(test_key16) + }, + .iv = { + .data = test_iv, + .length = 16, + }, + .auth_alg = ODP_AUTH_ALG_NULL + }, + }, + { + .name = "aes-cbc-hmac-sha1-96", + .session = { + .cipher_alg = ODP_CIPHER_ALG_AES_CBC, + .cipher_key = { + .data = test_key16, + .length = sizeof(test_key16) + }, + .iv = { + .data = test_iv, + .length = 16, + }, + .auth_alg = ODP_AUTH_ALG_SHA1_HMAC, + .auth_key = { + .data = test_key20, + .length = sizeof(test_key20) + }, + .auth_digest_len = 12, + }, + }, + { + .name = "null-hmac-sha1-96", + .session = { + .cipher_alg = ODP_CIPHER_ALG_NULL, + .auth_alg = ODP_AUTH_ALG_SHA1_HMAC, + .auth_key = { + .data = test_key20, + .length = sizeof(test_key20) + }, + .auth_digest_len = 12, + }, + }, + { + .name = "aes-gcm", + .session = { + .cipher_alg = ODP_CIPHER_ALG_AES_GCM, + .cipher_key = { + .data = test_key16, + .length = sizeof(test_key16) + }, + .iv = { + .data = test_iv, + .length = 12, + }, + .auth_alg = ODP_AUTH_ALG_AES_GCM, + .auth_digest_len = 16, + }, + }, }; /**