diff options
author | Werner Koch <[email protected]> | 1998-02-03 12:09:20 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-02-03 12:09:20 +0000 |
commit | 899b8378eca7a3801d02bab5fb4cd13dfb6a8595 (patch) | |
tree | 71b685933a39dfbdc7d6801775dc2c6ff99aeddf /cipher/elgamal.c | |
parent | changed structure of trustdb (diff) | |
download | gnupg-899b8378eca7a3801d02bab5fb4cd13dfb6a8595.tar.gz gnupg-899b8378eca7a3801d02bab5fb4cd13dfb6a8595.zip |
Fixed a few bugs
Diffstat (limited to 'cipher/elgamal.c')
-rw-r--r-- | cipher/elgamal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher/elgamal.c b/cipher/elgamal.c index 1f1699f8f..9e6805d62 100644 --- a/cipher/elgamal.c +++ b/cipher/elgamal.c @@ -142,6 +142,9 @@ elg_generate( ELG_public_key *pk, ELG_secret_key *sk, unsigned nbits ) /* select a random number which has these properties: * 0 < x < p-1 + * This must be a very good random number because this is the + * secret part. The prime is public and may be shared anyware, + * so a random generator level of 1 has been used for the prime */ x = mpi_alloc_secure( nbits/BITS_PER_MPI_LIMB ); if( DBG_CIPHER ) |