From patchwork Tue Sep 11 07:42:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Mosnacek X-Patchwork-Id: 10595209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 48E1714E5 for ; Tue, 11 Sep 2018 07:42:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38BD829253 for ; Tue, 11 Sep 2018 07:42:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C58D2925F; Tue, 11 Sep 2018 07:42:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C01E229253 for ; Tue, 11 Sep 2018 07:42:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727721AbeIKMkr (ORCPT ); Tue, 11 Sep 2018 08:40:47 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43766 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbeIKMkr (ORCPT ); Tue, 11 Sep 2018 08:40:47 -0400 Received: by mail-wr1-f65.google.com with SMTP id k5-v6so24487467wre.10 for ; Tue, 11 Sep 2018 00:42:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Gp5yWeX3R3srA4XsAGoAc6IVPoEo00tOOJu9mz155no=; b=cfwjWdeMkTs1eo/cKZV6e0mUOCJotz/k7g2UklZsk2f6we5mUlkRSKMulaADfQK1xF YOhAYKwAm+P1WP225IZeuTYLhjt+ilwtqy/A7JyaS4iMgI+RzGtoVzi43DZw1BX4xjY4 /V6L1SviXj25t2LnJIjXWZv9DApWFcn+7QFWCYRlWqm0GDpH5Q/NknjDMoH3hGhVEhs5 48iUOxEZ+drLjHNmgtdnQOjpVXHdfdurjx6ovJ+NfYZaSLWrCLCQT6a9AfaW9gFM3NKM pGy134m5U/aNMdu2naaRuJbSHx+tGluzsXLZ7LWFo4Z2hwdoFXcXKDJahMe21L1ahLVr l5Vg== X-Gm-Message-State: APzg51D2QEQxEMkrVcxOHt3F2bqxGc6vFQze6Gu1CDd2i5UvscSUOprQ htk4HU4XEkuz9MNDqQGNCTGROw== X-Google-Smtp-Source: ANB0VdYn6Dh2Ky1HqeKEqpUTZaLt30m8dTAjWSbWUeGlPfnbsdc54Yy5BFPxL4bym8u54R78K2M9fA== X-Received: by 2002:adf:9244:: with SMTP id 62-v6mr16404340wrj.62.1536651763986; Tue, 11 Sep 2018 00:42:43 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id j133-v6sm449765wmd.12.2018.09.11.00.42.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Sep 2018 00:42:43 -0700 (PDT) From: Ondrej Mosnacek To: Herbert Xu Cc: linux-crypto@vger.kernel.org, dm-devel@redhat.com, Mikulas Patocka , Eric Biggers , Ondrej Mosnacek Subject: [PATCH v3 0/2] crypto: lrw - Simplify and optimize the LRW template Date: Tue, 11 Sep 2018 09:42:37 +0200 Message-Id: <20180911074239.2398-1-omosnace@redhat.com> X-Mailer: git-send-email 2.17.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset is a follow-up to a similar patch for XTS: https://patchwork.kernel.org/patch/10588775/ The first patch applies a small optimization to the tweak computation and the second simplifes away the use of auxiliary buffer to cache computed tweaks. Changes in v3: - fix a copy-paste error v2: https://www.spinics.net/lists/linux-crypto/msg34890.html Changes in v2: - small cleanup suggested by Eric Biggers v1: https://www.spinics.net/lists/linux-crypto/msg34871.html Ondrej Mosnacek (2): crypto: lrw - Optimize tweak computation crypto: lrw - Do not use auxiliary buffer crypto/lrw.c | 327 ++++++++++++--------------------------------------- 1 file changed, 75 insertions(+), 252 deletions(-)