Hi,
 
The RSA test cases in cryptest failed for me. Could somebody know what happened?
 
try 1:
 
//generate key pair
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
 
try 2:
 
//generate key pair
cryptest g
Key length in bits: 1024
 
Save private key to file: prv.dat
 
Save public key to file: pub.dat
 
Random Seed: 34567891234
 
//encrypt using private key
cryptest rs prv.dat message.txt out.txt
 
CryptoPP::Exception caught: NullRNG: NullRNG should only be passed to functions that don't need to generate random bytes
 
 
When I generate key pair, is there any requirment for key length and seed?
 
Thank for help.
 
Jessica

Reply via email to