From patchwork Sun Jul 1 07:02:33 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: 140689 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2689360ljj; Sun, 1 Jul 2018 00:03:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLTe8+BXq07uk6TRLvAjwgsx/8fGKBbQMpeCWvsmpaf8FeGhvuU1LbkVJhu9wLb716NPC0b X-Received: by 2002:a17:902:9a8a:: with SMTP id w10-v6mr21327550plp.333.1530428625544; Sun, 01 Jul 2018 00:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530428625; cv=none; d=google.com; s=arc-20160816; b=v2hPBTbeZhSz5WPbdjwXyLTovuvwFhEThi5w1NBkzcGtGJB40qWrEdiax06v/RATSS jJFCIs36qR63zoKJjNqzFpJPDFv2cm8zCtKrVf+u95MeaDZSD/bqUUPGq7eer7h/ViFa 0gd0UHvfOixY8svGo9/OoYck+jXPQKt094zp/kjCuqT5FkrkjtV5DvtWjkYJCHZfdgPN LYjBstf/LMD3JNFaA1r4eUR9Pu0wBuGUu9cFThF13MRAlZOpfZ7ylTf8oSuM95YsxNNz eFpUz6Dm/h41Aiy8mktpY+04/GWeq0CEjG9aG12BcuXkS1XYwWa5UWZJY2++VXcpetnk hZHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xHDyEOND7bQpTHAunE/mxF093MwbsbTrvjYlKWbKj5U=; b=t6eSlHzCI+6bNtBlgMJ69Y2GfF6S70Ov3HQ3q/U6ZHcTaH2Yuo6nbDzf/0a93KYCc5 UMufNxPrAJORsvZwmwWco5yIjnTGmH53WOnbHkKDi9LhbsE8ULS9Ubzm/J0e/MQfOG10 Mk3WtS09NQFxR/ePYEhGR4OH5f3wxJyvcGCjbKXRclAWiHcZYsvsJAuZxEtG6RNEeJOi wi1hiOFN3m111oEmtNbKzr/ataIlDfrL70gbGEamz+cCJL2tvepZnmGDl8ruxzQeO2yg SCn3n1XhtTJFg3b9THazTnWicdG3PZ1igMY003uIBG+6OiiitIICH3dNCvFrmd8KLN6l XQTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 x1-v6si13281635plb.8.2018.07.01.00.03.45; Sun, 01 Jul 2018 00:03:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751725AbeGAHDb (ORCPT + 1 other); Sun, 1 Jul 2018 03:03:31 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47326 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751633AbeGAHDb (ORCPT ); Sun, 1 Jul 2018 03:03:31 -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 7E2BC18A; Sun, 1 Jul 2018 00:03:30 -0700 (PDT) Received: from sugar.benyossef.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 41EFD3F318; Sun, 1 Jul 2018 00:03:28 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , Hadar Gat , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/6] crypto: fixes and cleanups Date: Sun, 1 Jul 2018 08:02:33 +0100 Message-Id: <1530428560-4440-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The patch set fixes ccree IV handling, finup() operation (provided by Hadar Gat) and CTS-AES mode of operation along a code cleanup. Since our finup() method was obviously broken but was not detected by testmgr, I've added finup() test to testmgr to catch it next time it happened. Changes from v1: - Add missing "static" qualifier reported by kbuild bot - Add CTS-AES fix and some more cleanups Gilad Ben-Yossef (5): crypto: testmgr: add hash finup tests crypto: ccree: fix iv handling crypto: ccree: remove dead legacy code crypto: ccree: use CBC-CS3 CTS mode crypto: ccree: rate limit debug print Hadar Gat (1): crypto: ccree: fix finup crypto/testmgr.c | 55 +++++++++++++--- drivers/crypto/ccree/cc_cipher.c | 137 +++++++++++++++++++++++++-------------- drivers/crypto/ccree/cc_driver.c | 4 +- drivers/crypto/ccree/cc_hash.c | 81 +++++------------------ 4 files changed, 153 insertions(+), 124 deletions(-) -- 2.7.4