From patchwork Thu Sep 20 13:18:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 147090 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1988026ljw; Thu, 20 Sep 2018 06:19:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ0qrdQnqKD4h/eF/JMaxVy0/uu1XJB7pemLeot2RUAJBzp3DhJiToMcbsjnBIZ4nZHh9uM X-Received: by 2002:a62:490e:: with SMTP id w14-v6mr41209937pfa.213.1537449567291; Thu, 20 Sep 2018 06:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537449567; cv=none; d=google.com; s=arc-20160816; b=yFx0JY+4X+Kw/yWHKwrksS7vyZK/aC7ZHgpTewBvL/4tvxY7768qoy4aDN5SqhWkUf 1N3C8MJrtfI1yDe0OAVi97VwVGSBbMCigcYhlMipCvxUH/rllasWP0tcKeSmzf1nngFG zFn608g2lMDzzxsdScjr0pADW0+wVI+AU9G51ik7kor3cDyFLNBYAzF+UmBb1g9B6X21 szCm7zswBm1AwF90WSYASPzLdmC4wBd7158c9QQNhP4BjzqzlcQrap8jNV5yWR6q/97k RTVZcUUDZKQQ49dWkx6nsap2ifAY8M0iqQJJimdJztz+Gyzignozc7X2I6njGoYAkJs9 0JBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=EUQLiukEMOO9NPqHfNFFixWwk1Ho7ziROJ2pO2MD354=; b=SKLgt+oWQv9qDP+Q85vDrhNP4E22Ml7yGtmLVg+kO0WE/35ZrBOrqqPa+WmTUYyQzp Vve9fC6Trj9IrFk6aO9+NvfuciJJSFdIzc2Ra4NA76+sl3WPVBGczzDHHBdXNsobemVE 5FZPq0tiPLZoHR2bByKF1ZF4SuCNGy8qNhgPOg1FKxw5O5lCtakllIeO0PU918BZijVS TLQf0psg9L71srHt62N7U2o+uNokqDjHg4TqSyAU5kqJw6GeLdnV9+Hc9HOFDc1Rayiv gjKrnc3WFxOt4AIbMKwz4RyL+iwHEYuvQbtPFF7giMUmJNNNBAIST4jp6smJZ5UTCM9g dJ5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3-v6si23828309pgm.288.2018.09.20.06.19.26; Thu, 20 Sep 2018 06:19:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732867AbeITTCy (ORCPT + 32 others); Thu, 20 Sep 2018 15:02:54 -0400 Received: from foss.arm.com ([217.140.101.70]:45858 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732650AbeITTCx (ORCPT ); Thu, 20 Sep 2018 15:02:53 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 963847A9; Thu, 20 Sep 2018 06:19:24 -0700 (PDT) Received: from sugar.kfn.arm.com (E110176.Emea.Arm.com [10.50.4.176]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2BB083F5BD; Thu, 20 Sep 2018 06:19:22 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: ofir.drang@arm.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] crypto: tcrypt: add OFB functional tests Date: Thu, 20 Sep 2018 14:18:40 +0100 Message-Id: <1537449521-16182-4-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537449521-16182-1-git-send-email-gilad@benyossef.com> References: <1537449521-16182-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We already have OFB test vectors and tcrypt OFB speed tests. Add OFB functional tests to tcrypt as well. Signed-off-by: Gilad Ben-Yossef --- crypto/tcrypt.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index e56c3e1..e64f1df 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1733,6 +1733,7 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) ret += tcrypt_test("xts(aes)"); ret += tcrypt_test("ctr(aes)"); ret += tcrypt_test("rfc3686(ctr(aes))"); + ret += tcrypt_test("ofb(aes)"); break; case 11: