From bbe81e6c871e9556ce224a9039c7d8eb507276b2 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 19 Apr 2020 16:09:31 +0200 Subject: use chacha8, switch to chacha-opt This is actually even faster (and comparable in speed with the reference implementation), and also has received substantial cryptanalysis. --- rdd.1 | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'rdd.1') diff --git a/rdd.1 b/rdd.1 index a9b7364..d5012ab 100644 --- a/rdd.1 +++ b/rdd.1 @@ -1,4 +1,4 @@ -.Dd January 3, 2018 +.Dd April 19, 2020 .Dt RDD 1 .Os .Sh NAME @@ -12,11 +12,11 @@ .Sh DESCRIPTION .Nm is a high-speed, cryptographically safe random data generator -using the reference implementation of the eSTREAM Profile 1 SOSEMANUK -stream cipher. +using optimized versions of the ChaCha8 stream cipher, +depending on your CPU. It is designed to fill crypto devices with random data. .Pp -Random binary data is outputted to standard output. +Random binary data is written to standard output. .Pp The options are as follows: .Bl -tag -width Ds @@ -41,14 +41,14 @@ to standard error on every rekey. .Xr random 4 , .Xr random 7 .Sh NOTES -rdd reads 32 random bytes for the initial key and 16 bytes for every rekeying +rdd reads 40 random bytes for the initial key and 32 bytes for every rekeying from the random source. Setting .Ar rekeymb to -1 never rekeys. .Pp This implementation passed dieharder 3.31.1 "-a" and -PractRand/RNG_test 0.93 (tested up to 32 TB). +PractRand/RNG_test 0.95 (tested up to 32 TB). .Sh AUTHORS .An Leah Neukirchen Aq Mt leah@vuxu.org .Sh LICENSE @@ -62,17 +62,4 @@ neighboring rights to this work. .Pp .Lk http://creativecommons.org/publicdomain/zero/1.0/ .Pp -This program includes code taken from -.Lk http://www.ecrypt.eu.org/stream/p3ciphers/sosemanuk/sosemanuk_p3source.zip -as of 2013-04-13. -An error message which can never occur in rdd usage -has been #ifdef'ed out. -.Pp -\[co] 2005 X-CRYPT project. -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising -from the use of this software. -.Pp -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to no restriction. +This program uses the public domain library chacha-opt. -- cgit 1.4.1