Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp445881pxb; Thu, 21 Jan 2021 10:46:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzu5PGzDQ6OFevNZEqwshh0iSdyP+f+J+266hFU85sCjRLBBfmGMvjAGpqnpIo1o6TPF3B6 X-Received: by 2002:a17:906:4d8f:: with SMTP id s15mr551028eju.389.1611254819146; Thu, 21 Jan 2021 10:46:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611254819; cv=none; d=google.com; s=arc-20160816; b=ToxcuLIyee1eQe47VSfNwiUKYunDmHw21gXUGzlb2h4hOsTG6Age2kKXxH2Ftt0TA3 rqUkapJIr6B8bAudGDN0q8508EriTFz6YWkTdV6fj0+4GIDwyoSaSxFSQmw0RqpsQhkP d9PKAecjnt/Z7EsWkuZWLCTAhMM8Z+hiuTu2eUxu9lNYXbMlPO8xyrAMLYGNHOBASfRH CDP4FxNQ0QqT5ywjACGHQVDvxSmY6K/9tEaL4fJqQABKtw87/4TWJPk35lTdzPe97iYn LZTvyUCRsto35yJDXKO4Vqh93VC4GLs/K4svZo4hDx9PxHv7e0qRnCvdnh8+NzGURdLs J/lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OyOuopIrv8/4vEEbULgoV2l5thLbiLJaFXm8XTuoUpU=; b=E2mM8dcrVxkwTogNTRBJS0uDquxWVEGRiTLLzorGUWD/+LhbSx4LTDmIGJYQQv7H6H 2RQrGKGcizqsLn/hV9zxRFHh0PV43PODFcwGqZxas+CprC99PjlEsZdBDSFfkp0gFxTL mkH/ktiLyyYX3camxbBamFaith1nZibkJBP2S1gCLuUZEQYGIccR6K7BVRN01EtCFGA0 Ax5r5/NfNeQYaQx4IF0BIgwklgRroCj7proTZ/lNyEjHRhUkm3mzmWQ9P0Pg5DNumIOk 9wdp5KY34SvOwZ+zS9H4poR0cPvxgunINxUAyM71vNZu/bHXaRiu8vOa3hab0Yx/wV9U zDJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gca44VZL; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si2463419edh.496.2021.01.21.10.46.34; Thu, 21 Jan 2021 10:46:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gca44VZL; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbhAUSZb (ORCPT + 99 others); Thu, 21 Jan 2021 13:25:31 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:20808 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728527AbhAUSWu (ORCPT ); Thu, 21 Jan 2021 13:22:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611253244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OyOuopIrv8/4vEEbULgoV2l5thLbiLJaFXm8XTuoUpU=; b=gca44VZLfifzpbXlle31xkTD6/HwoKzB1Xuu38BUHZ2TgauPzC+NmwOeUe4EJ4Mm76ukAb f5SY0E8N1Ac+7WWgM0+1Bojo82h9wWOLHXJsRpH9JSNpje/eEfLPbysDJws8rFCb8evM0E +nF34Yi7nApo9PMnwXz/wVbbt+4rRxY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-162-4JTMUH6WP-GnXSxqZovbEg-1; Thu, 21 Jan 2021 13:20:40 -0500 X-MC-Unique: 4JTMUH6WP-GnXSxqZovbEg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 72A7859; Thu, 21 Jan 2021 18:20:39 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4F07C5D749; Thu, 21 Jan 2021 18:20:36 +0000 (UTC) Date: Thu, 21 Jan 2021 13:20:35 -0500 From: Mike Snitzer To: Ard Biesheuvel Cc: Eric Biggers , agk@redhat.com, dm-devel@redhat.com, Milan Broz , Linux Crypto Mailing List , Herbert Xu Subject: Re: [PATCH 5/5] crypto: remove Salsa20 stream cipher algorithm Message-ID: <20210121182035.GB4662@redhat.com> References: <20210121130733.1649-1-ardb@kernel.org> <20210121130733.1649-6-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jan 21 2021 at 1:09pm -0500, Ard Biesheuvel wrote: > On Thu, 21 Jan 2021 at 19:05, Eric Biggers wrote: > > > > On Thu, Jan 21, 2021 at 02:07:33PM +0100, Ard Biesheuvel wrote: > > > Salsa20 is not used anywhere in the kernel, is not suitable for disk > > > encryption, and widely considered to have been superseded by ChaCha20. > > > So let's remove it. > > > > > > Signed-off-by: Ard Biesheuvel > > > --- > > > Documentation/admin-guide/device-mapper/dm-integrity.rst | 4 +- > > > crypto/Kconfig | 12 - > > > crypto/Makefile | 1 - > > > crypto/salsa20_generic.c | 212 ---- > > > crypto/tcrypt.c | 11 +- > > > crypto/testmgr.c | 6 - > > > crypto/testmgr.h | 1162 -------------------- > > > 7 files changed, 3 insertions(+), 1405 deletions(-) > > > > > > diff --git a/Documentation/admin-guide/device-mapper/dm-integrity.rst b/Documentation/admin-guide/device-mapper/dm-integrity.rst > > > index 4e6f504474ac..d56112e2e354 100644 > > > --- a/Documentation/admin-guide/device-mapper/dm-integrity.rst > > > +++ b/Documentation/admin-guide/device-mapper/dm-integrity.rst > > > @@ -143,8 +143,8 @@ recalculate > > > journal_crypt:algorithm(:key) (the key is optional) > > > Encrypt the journal using given algorithm to make sure that the > > > attacker can't read the journal. You can use a block cipher here > > > - (such as "cbc(aes)") or a stream cipher (for example "chacha20", > > > - "salsa20" or "ctr(aes)"). > > > + (such as "cbc(aes)") or a stream cipher (for example "chacha20" > > > + or "ctr(aes)"). > > > > You should check with the dm-integrity maintainers how likely it is that people > > are using salsa20 with dm-integrity. It's possible that people are using it, > > especially since the documentation says that dm-integrity can use a stream > > cipher and specifically gives salsa20 as an example. > > > > Good point - cc'ed them now. > No problem here, if others don't find utility in salsa20 then dm-integrity certainly isn't the hold-out. Acked-by: Mike Snitzer Mike