Re: What is the underlying algorithm in RAND_bytes() function?

2014-05-13 Thread Nitesh
Can you help me with changing the default MD from SHA1 to SHA256(for Hash
DRBG)? I could not find proper resource.



--
View this message in context: 
http://openssl.6102.n7.nabble.com/What-is-the-underlying-algorithm-in-RAND-bytes-function-tp50089p50122.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


What is the underlying algorithm in RAND_bytes() function?

2014-05-12 Thread harika_n
I am using RAND_bytes function to generate cryptographically secure random
numbers. I want to know if it uses Hash based DRBG or HMAC based DRBG. If it
uses Hash based DRBG what is the underlying hash function used? I looked at
the source code and found that it uses some MD function but I could not find
which MD it is using.



--
View this message in context: 
http://openssl.6102.n7.nabble.com/What-is-the-underlying-algorithm-in-RAND-bytes-function-tp50089.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Re: What is the underlying algorithm in RAND_bytes() function?

2014-05-12 Thread Marcus Meissner
On Mon, May 12, 2014 at 03:00:23AM -0700, harika_n wrote:
 I am using RAND_bytes function to generate cryptographically secure random
 numbers. I want to know if it uses Hash based DRBG or HMAC based DRBG. If it
 uses Hash based DRBG what is the underlying hash function used? I looked at
 the source code and found that it uses some MD function but I could not find
 which MD it is using.

Depending on what random generator engine is used. The default builtin one
is a hash based DRBG.

crypto/rand/rand_lcl.h ... the default MD is SHA1.

Ciao, Marcus
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org