Re: seed in RSA_public_encrypt and others

2004-03-30 Thread Nils Larsch
Xinwen Fu wrote: Hi, In the man page of RSA_public_encrypt, it says The random number generator must be seeded prior to calling RSA_public_encrypt() yes, (pseudo) random numbers are needed for the pkcs1 padding Does this mean that each time I use RSA_public_encrypt(), I need to use

Re: seed in RSA_public_encrypt and others

2004-03-30 Thread Xinwen Fu
to use RAND_seed() to seed the The random number generator? For example, if RSA_public_encrypt() is invoked in a loop, should RAND_seed() also be in the loop? normally it should be sufficient to set the prng once For RSA_NO_PADDING, do we need to set the prng? Seems no reason

Re: seed in RSA_public_encrypt and others

2004-03-30 Thread Nils Larsch
Xinwen Fu wrote: to use RAND_seed() to seed the The random number generator? For example, if RSA_public_encrypt() is invoked in a loop, should RAND_seed() also be in the loop? normally it should be sufficient to set the prng once For RSA_NO_PADDING, do we need to set the prng? Seems no

seed in RSA_public_encrypt and others

2004-03-29 Thread Xinwen Fu
Hi, In the man page of RSA_public_encrypt, it says The random number generator must be seeded prior to calling RSA_public_encrypt() Does this mean that each time I use RSA_public_encrypt(), I need to use RAND_seed() to seed the The random number generator? For example, if