Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp422312pxb; Thu, 21 Jan 2021 10:11:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUVoM0lsUUTP9EiCyuvf1j4hCeqVzfQ24n09h00JjuXP9i9qjFzTLiemfeOKUOnwtKoXje X-Received: by 2002:a17:906:b2d5:: with SMTP id cf21mr462552ejb.387.1611252700914; Thu, 21 Jan 2021 10:11:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611252700; cv=none; d=google.com; s=arc-20160816; b=EJPtw9dgEA5cSHgFZ4rLbOmwScttYPu6teI7tupYk10nIj//RZlLLJU3rfqXjCIbYq h7zCGVwzAcT8OxhFEsb8FyYGtcmZ56hX1AjDAW6tGeuLN2RjYTzy3wlNLuLSyMldwYAf HYnL6sTLHIGcM2c/dtsoKacW2EXZmmRtLvQaIOSgJuzkrluD3bU8qw+ziccWiKEs8u4l nIMS7S5EXZ8gFMEqF3UNQsD4t/xy0kYMu3/jxLxm+45IbwXqVa2Pg//UZ7ur5XUbmar3 N/rldAH5tGTFCMtfUssa/kANqHARb2WKaV5P9G4q5BDmujMMCPEuRh+B19ui/wPYiVff buuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1GyU4aEU2UrdLm0xZIgbNcQjRA8nzUJ7yHE8Pn915TE=; b=bygijnhokFn2z3wV1M7UrE9+N4Y7a41MP8qbbPip/OalBvMLkGz/eCGsoV9Lb0jmY0 zg/0WmEPGgisQp0bxQAWjLhLxXbMVK5TT8LEPFwItX/2VqVlklE2QoZzFtixBGT5xx4L 503pgbS2/rouXaGzC3xi364n3YgPxDzPZAj9qj61tlDTyFRMaqK5yDCjLu2K5If9UzPl XZWlCPW+kdE31rzPG7PSDpaUsOPq4qMtl8OpmRQqW/75UpgvCAIWkdlMRQ0g0IN24IOm iSB3tK+Gvws7mKdewxeBVrQ2X/p06Wwsez+CQH81UjoBokcCYZbAksWvJ1Q0QoYLF34C jFEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=syhBc+Jm; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm10si1818392ejc.64.2021.01.21.10.11.14; Thu, 21 Jan 2021 10:11:40 -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=@kernel.org header.s=k20201202 header.b=syhBc+Jm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389189AbhAUSKe (ORCPT + 99 others); Thu, 21 Jan 2021 13:10:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:58652 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389207AbhAUSK3 (ORCPT ); Thu, 21 Jan 2021 13:10:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 652BA23A22 for ; Thu, 21 Jan 2021 18:09:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611252588; bh=ARgSFuVEjpl+Uc64D1m8g9thyMfi5NetN+wxnS/O6+o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=syhBc+JmZJ1uYHR6WpgyeI5c5j8vw8eLZnzNSlxWoiWijkm9fKdwLsUbDUIvHzI6P iRemYtH34+2gN18925Co1WlJmGmwdRhMGnoXh8Ea/Q9zRG7KQmtQIXGORWPAX9eRnT 7vmVYdHy2v97DAo7t0a68eDxZ1dxmmZ2VHlg94cQXBIFKrgiDmDCACfmkUUHbxW8RA t1J4Ho2JWiblbV1riv6mUOL0VVQ4Bn425GuAoAhX++sZie++gyDdnG2G87XyH6xOhU 9RqQBjYXGV+OiF/ToqrX5xmwFf6nK1E37OFIH/pE///JfeUQEi6n9r8PqzOhaLkQXM W59/+0qgJ2SLg== Received: by mail-oo1-f52.google.com with SMTP id g46so360002ooi.9 for ; Thu, 21 Jan 2021 10:09:48 -0800 (PST) X-Gm-Message-State: AOAM531xMz5eJ+qccFGbPNcIIkicjF1TeYJgWn35C//Br+uNGhTMfRwB fiLaLwoqB/hbk8zcXCYRrSaPtUYesfrfOJKwAuE= X-Received: by 2002:a4a:bb86:: with SMTP id h6mr675631oop.13.1611252587755; Thu, 21 Jan 2021 10:09:47 -0800 (PST) MIME-Version: 1.0 References: <20210121130733.1649-1-ardb@kernel.org> <20210121130733.1649-6-ardb@kernel.org> In-Reply-To: From: Ard Biesheuvel Date: Thu, 21 Jan 2021 19:09:36 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/5] crypto: remove Salsa20 stream cipher algorithm To: Eric Biggers , agk@redhat.com, Mike Snitzer , dm-devel@redhat.com, Milan Broz Cc: Linux Crypto Mailing List , Herbert Xu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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.