From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from v1.tansi.org (mail.tansi.org [84.19.178.47]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0528F33DC for ; Thu, 16 Feb 2023 11:05:29 +0000 (UTC) Received: from gatewagner.dyndns.org (81-6-44-245.init7.net [81.6.44.245]) by v1.tansi.org (Postfix) with ESMTPA id 84E8E140155 for ; Thu, 16 Feb 2023 12:04:57 +0100 (CET) Received: by gatewagner.dyndns.org (Postfix, from userid 1000) id 842F317A45F; Thu, 16 Feb 2023 12:05:22 +0100 (CET) Date: Thu, 16 Feb 2023 12:05:22 +0100 From: Arno Wagner To: cryptsetup@lists.linux.dev Subject: Re: Filling a device with random data Message-ID: <20230216110522.GB29020@tansi.org> References: <20230209040200.GA3642@tansi.org> <20230214221711.GA12121@tansi.org> Precedence: bulk X-Mailing-List: cryptsetup@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230214221711.GA12121@tansi.org> User-Agent: Mutt/1.10.1 (2018-07-13) I should add that I though about removing it, but this approach may still have a use on very small Linux devices. Meube I should add a comment to that effect. Arno On Tue, Feb 14, 2023 at 23:17:11 CET, Arno Wagner wrote: > As I said, it is old. Old like some not having > hardware support and /dev/urandom being dog-slow. > > Toaday, it is not really a problem doing this fast. > > Regards, > Arno > > > > On Thu, Feb 09, 2023 at 20:03:52 CET, Eric Biggers wrote: > > While this is a creative use of dm-crypt, a cleaner way to generate very > > high throughput cryptographically secure random data (specifically, even > > higher throughput than /dev/urandom which is usually good enough) is to > > just generate it in userspace. For example, the command 'openssl rand > > $LENGTH' does this. > > > > - Eric > > -- > Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name > GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 > ---- > A good decision is based on knowledge and not on numbers. -- Plato > > If it's in the news, don't worry about it. The very definition of > "news" is "something that hardly ever happens." -- Bruce Schneier -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- A good decision is based on knowledge and not on numbers. -- Plato If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier