On Thu, Jan 08, 2004 at 01:42:47PM +1100, Jessica Wei wrote:
> cryptest g
> Key length in bits: 1024
> 
> Save private key to file: prv.txt
> 
> Save public key to file: pub.txt
> 
> Random Seed: 123456789
> 
> //encrypt using private key
> cryptest rs priv.txt message.txt out.txt
> 
> CryptoPP::Exception caught: PK_Signer: key too short for this signature scheme

You used prv.txt, then priv.txt (with extra "i").

> CryptoPP::Exception caught: NullRNG: NullRNG should only be passed to functions that 
> don't need to generate random bytes

This is a bug in the testing code. Please see
http://www.mail-archive.com/[EMAIL PROTECTED]/msg00137.html

> When I generate key pair, is there any requirment for key length and seed?

When generating RSA keys, the only hard requirement is that key length has
to be at least 16. But for security you should use at least 1024 bits.  
For production code, use the AutoSeededRandomPool, which does not require
a seed. The test code uses a user-provided seed for bug reproducibility.

Reply via email to