diff options
author | Werner Koch <[email protected]> | 1999-03-11 15:42:06 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-03-11 15:42:06 +0000 |
commit | e95a22a6d214edbb604ffe3292ad11ee096bf9a0 (patch) | |
tree | db513c500ee4997d2645cbe71dbda7701e9f213a /cipher | |
parent | See ChangeLog: Wed Mar 10 11:26:18 CET 1999 Werner Koch (diff) | |
download | gnupg-e95a22a6d214edbb604ffe3292ad11ee096bf9a0.tar.gz gnupg-e95a22a6d214edbb604ffe3292ad11ee096bf9a0.zip |
See ChangeLog: Thu Mar 11 16:39:46 CET 1999 Werner Koch
Diffstat (limited to 'cipher')
-rw-r--r-- | cipher/primegen.c | 5 | ||||
-rw-r--r-- | cipher/rndunix.c | 45 |
2 files changed, 47 insertions, 3 deletions
diff --git a/cipher/primegen.c b/cipher/primegen.c index e94842189..c7b5b757d 100644 --- a/cipher/primegen.c +++ b/cipher/primegen.c @@ -16,6 +16,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + * + * *********************************************************************** + * The algorithm used to generate practically save primes is due to + * Lim and Lee as described in the CRYPTO '97 proceedings (ISBN3540633847) + * page 260. */ #include <config.h> diff --git a/cipher/rndunix.c b/cipher/rndunix.c index 145f17fbd..46f80eab2 100644 --- a/cipher/rndunix.c +++ b/cipher/rndunix.c @@ -1,11 +1,50 @@ /**************************************************************************** * * - * BeOS Randomness-Gathering Code * - * Copyright Peter Gutmann, Paul Kendall, and Chris Wedgwood 1996-1998 * - * Copyright (C) 1998, 1999 Werner Koch + * * + * Unix Randomness-Gathering Code * + * * + * Copyright Peter Gutmann, Paul Kendall, and Chris Wedgwood 1996-1999. * + * Heavily modified for GnuPG by Werner Koch * + * * * * ****************************************************************************/ +/* This module is part of the cryptlib continuously seeded pseudorandom + number generator. For usage conditions, see lib_rand.c + + [Here is the notice from lib_rand.c:] + + This module and the misc/rnd*.c modules represent the cryptlib + continuously seeded pseudorandom number generator (CSPRNG) as described in + my 1998 Usenix Security Symposium paper "The generation of random numbers + for cryptographic purposes". + + The CSPRNG code is copyright Peter Gutmann (and various others) 1996, + 1997, 1998, 1999, all rights reserved. Redistribution of the CSPRNG + modules and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice + and this permission notice in its entirety. + + 2. Redistributions in binary form must reproduce the copyright notice in + the documentation and/or other materials provided with the distribution. + + 3. A copy of any bugfixes or enhancements made must be provided to the + author, <[email protected]> to allow them to be added to the + baseline version of the code. + + ALTERNATIVELY, the code may be distributed under the terms of the GNU + General Public License, version 2 or any later version published by the + Free Software Foundation, in which case the provisions of the GNU GPL are + required INSTEAD OF the above restrictions. + + Although not required under the terms of the GPL, it would still be nice if + you could make any changes available to the author to allow a consistent + code base to be maintained */ + + + /* General includes */ #include <config.h> |