From patchwork Sat Jan 20 17:00:17 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: 125250 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp358737ljf; Sat, 20 Jan 2018 09:01:50 -0800 (PST) X-Google-Smtp-Source: AH8x227KnLtCu/dXsFM3BaLQlzPX+iAuRQ1aYgKrCaZN0i+lVlVpANStAr/BwGQ4VE8EdYoh2q2b X-Received: by 10.55.209.137 with SMTP id o9mr2870416qkl.234.1516467710094; Sat, 20 Jan 2018 09:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516467710; cv=none; d=google.com; s=arc-20160816; b=Oj0BTHgJbdHifJoM1vUzLxfpyEnX7sIDc0Xwv4GhnQ6OVdePUo3ZpA+SI4iWFC+A1n BeChCLZ/hPWTGoNUVEZj6ep5vzn/IA2g6pcxyNoC+WWpscXbbDd1PvoJtLXYRKY3DqK3 chv86as3mSKjnNbzQrq75l0MglEIPBsdt+rjiVe9XIMfAhzBBiFOybWcjtjuZtB6hIlj PhEnb7Lm0gNLli46xKmMp9piCi50YuOCuxV4+eqDcTLirXSOLdW9n6xbXcez8536ZyJ5 ChBax6wKbljgMzJFS2OUA49vY6oPotUJkvl/xBWQFxXYhTkHrBOnc6TyrrfE93t8jQsC 0HrQ== 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=Z48ZoQnMTbg3A4E7UK3uSkoOfEwwlhu+8o78610VSFg=; b=vGTMH+1Rq5bCVZDHig/MG+CUq55eM4E57hNZKyl4uF2pNZDf2tZJ/ztxxWB3BHYv9g Rki0AdrPromScJ89JYviSMOmpT+o1FRVgvhmgzfBXytEvLZTl5TLW7KtfknWNIzL557F OgDcsdfbpM5UpK0lSW/vT3yVw49NvitW1ViscVWTAc0gFh5yQEfnjlV0GF8k5Dcbgvqd 80FBLrWGsrRXi1dS5Bsw3kNDi4pDoDGx5e958izL+7xMSfu1pyT25hLngfnmOQyZ5Vv/ IjDLdT7Kc1Xof//pvEK08ovUGs2uCVrsRJ64SXNm8wcPF06iPltExNdmnwDXVS24XC33 U/tQ== 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 t16si13000653qth.62.2018.01.20.09.01.49; Sat, 20 Jan 2018 09:01:50 -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 C11E26178A; Sat, 20 Jan 2018 17:01:49 +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 9F13D6175E; Sat, 20 Jan 2018 17:00:34 +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 4CD01609B2; Sat, 20 Jan 2018 17:00:27 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id 8B5756150B for ; Sat, 20 Jan 2018 17:00:23 +0000 (UTC) Received: from mxback13j.mail.yandex.net (mxback13j.mail.yandex.net [IPv6:2a02:6b8:0:1619::88]) by forward105p.mail.yandex.net (Yandex) with ESMTP id D8A7D408114F for ; Sat, 20 Jan 2018 20:00:20 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback13j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id IuPdNx8umV-0KgqEKFo; Sat, 20 Jan 2018 20:00:20 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id IzWeCfILCF-0Kmu3R51; Sat, 20 Jan 2018 20:00:20 +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, 20 Jan 2018 20:00:17 +0300 Message-Id: <1516467619-16521-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516467619-16521-1-git-send-email-odpbot@yandex.ru> References: <1516467619-16521-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 342 Subject: [lng-odp] [PATCH v18 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 342 (lumag:openssl-ctx) ** https://github.com/Linaro/odp/pull/342 ** Patch: https://github.com/Linaro/odp/pull/342.patch ** Base sha: 5a4502fc6bc53e6503169da3028f456b64811a0b ** Merge commit sha: c79dfa8a99529acf3d1c96543f78f6c994fc72e7 **/ 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 761cc8cff..f6524bc63 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, + }, + }, }; /**