Hi,
I'm new to OpenSSL. I try to generate random keys with DES_random_key. Under windows, all goes well. But Under Tandem, this doesn't succeed. The Documentation says that i need to seed the prng. So i tried with RAND_seed, but RAND_status() always return zero.
DES_random_key call RAND_bytes, so i add the following lines to DES_random_key to catch the error
if (RAND_bytes((unsigned char *)ret, sizeof(DES_cblock)) != 1)
{
errCode = ERR_get_error(); //Line added
ERR_error_string(errCode, errString); //Line added
printf("RAND_bytes Error: %s\n", errString); //Line added
return (0);
}
The message i get is RAND_bytes Error: error:24064064:lib(36):func(100):reason(100) but i don't know how to retrieve readable information.
Tandem seems not to have a random device, but I am not an expert with that. I just want to generate random keys!!! What do I have to do to generate random number under Tandem. It works under Windows, but not under tamdem.
Anyone can help??
Thanks :(
Philip St-Pierre
Programme IRIS - Atelier Logiciel
Loto-Québec
1801 McGill Collège, 10 ième étage
H3A 2N4
Tel: 514-987-2057 ext. 5072