Re: PEM_write_bio_RSAPrivateKey assure Randomness of PK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



SO if I add this RAND usage below, em I seeding to assure a different RSA key
pair each time run of
creating a RSA pair.

I would certainly replace the time with the UUID of the device to be unique
to the device.
You would have to acquire the device to know the seeding. Hey  keep the Time
one too.

void init_openssl(void){
    if (initialized!=0)
      return;
    initialized= 1;
    ERR_load_BIO_strings();
    ERR_load_crypto_strings();
    OpenSSL_add_all_algorithms();
    OpenSSL_add_all_ciphers();
    OpenSSL_add_all_digests();

    unsigned long Time=(unsigned long)time(NULL);
    RAND_add(&Time,sizeof(Time),0);  //better than nothing for a starting
point
}



--
Sent from: http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux