Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2470163pxb; Sat, 2 Oct 2021 18:43:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeK8pqM3AKJsXIpcewD7aXU7CQEk6Cn55pLZmhBbWy/BzT7g5+0izZ+qVpFr7NmJ/eDe5V X-Received: by 2002:a17:906:a382:: with SMTP id k2mr7679233ejz.454.1633225422203; Sat, 02 Oct 2021 18:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633225422; cv=none; d=google.com; s=arc-20160816; b=p2VFAvZUp4+WM1br75zNFWna4wMIChfhy4J/c8RJDqL9z5OZKHYnORpUVLlcEMSrsS bScpdRm0FC0Y4Wq04HUmoMyffTFOitqcBwP19f8BLK86GIX4HTrahJV6DIDeXBUH3pdB ibXtOtUBy26xFU0mK3fBho/E+T2eT6m5p6GUmxBhKd/NGeDPrdRUeFF2NZjzyWSWHNP5 z3oTBaHs256KWPF633TsqRzhICFNhOVsqqmOt6j/CHJy5poHL1iE3HE5zr/kojZXr8a6 GcIVphn5kvMAT161DMTC2/MZXo+2os+sj/OmhpetjmCu7z7KQnrBJLE79U3GlImuylII VvGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=YFtRoVly5QVuTS6yeUPUX6GPzN7sjV7r/79qrUDHaQI=; b=nLuxgQgdKPiruTG08fbHpPn2X65A+qswqt/30jaY3V5yCV4mt2Ns8qQbnagfvvst3R IJ8H7I+toUsyn6r60i+dteL8CcBov+irKOxcBorj/SVc6kqqySQC1FM3lUm1iWRr3jdb yWDWF0R9qGQm3lm47aiNDISxxnKma/2YI8DUK1cMTAGF4WBP58zWc7F5KnI4kE6zUXt3 gy4AR57CqAPlkX5sW/ChxJz0QOeo9Wg3NIM9LZvLXV8SHkWzxJCEmn34VESwOLLDn8Ad toV4m6EKs6gRB2M+9+M9/3rtdQo6MmNXC5qBjysAZgAcKbkaZDXxaRnJAtwhASgksOeT tBxA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si12815855ejm.327.2021.10.02.18.43.03; Sat, 02 Oct 2021 18:43:42 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229486AbhJCBor convert rfc822-to-8bit (ORCPT + 99 others); Sat, 2 Oct 2021 21:44:47 -0400 Received: from vm1.rngh.net ([50.116.5.249]:60748 "EHLO mail.rngh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbhJCBor (ORCPT ); Sat, 2 Oct 2021 21:44:47 -0400 X-Greylist: delayed 485 seconds by postgrey-1.27 at vger.kernel.org; Sat, 02 Oct 2021 21:44:47 EDT Received: from [192.168.1.107] (c-73-231-123-62.hsd1.ca.comcast.net [73.231.123.62]) by mail.rngh.net (Postfix) with ESMTPSA id 6B93E3DB36; Sun, 3 Oct 2021 01:34:55 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [Cryptography] [RFC] random: add new pseudorandom number generator From: Ron Garret In-Reply-To: <378733E4-D976-4E2D-BE14-AD900C901CE8@callas.org> Date: Sat, 2 Oct 2021 18:34:54 -0700 Cc: Sandy Harris , Ted Ts'o , Cryptography , Linux Crypto Mailing List Content-Transfer-Encoding: 8BIT Message-Id: <2DAE91DD-D16B-42B2-A34B-E405725048C2@flownet.com> References: <378733E4-D976-4E2D-BE14-AD900C901CE8@callas.org> To: Jon Callas X-Mailer: Apple Mail (2.1878.6) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Oct 2, 2021, at 5:08 PM, Jon Callas wrote: > > >> On Sep 16, 2021, at 20:18, Sandy Harris wrote: >> >> I have a PRNG that I want to use within the Linux random(4) driver. It >> looks remarkably strong to me, but analysis from others is needed. > > A good block cipher in counter mode makes a pretty-okay PRNG. I say pretty-okay only because I would like my PRNG not to be invertible. Iterated hash functions are better. Whatever you use you want to truncate the output, otherwise you won?t get repetitions, which you actually want from a good PRNG. rg