RAND_Bytes() failed with RAND_R_ERROR_INSTANTIATING_DRBG

Manish Patel manish.patel2 at broadcom.com
Mon Apr 17 19:11:15 UTC 2023


Hi,

  I am trying to upgrade openssl-1.1.1c with openssl-3.0.8.
We have an existing code that calls RAND_Bytes() which
now fails with above error code: [error:1200006C:lib(36)::reason(108)]

Tracing
RAND_bytes_ex()
seed_src_generate()
ossl_pool_acquire_entropy() <- this returns no entropy.

The pool->len is always zero.
I do not see ossl_rand_pool_add() or ossl_rand_pool_add_begin()
ever called.

What am I missing? Looks like the random code in openssl has changed
significantly but can not figure out what do I need to do for the
entropy pool
to kick start.

Any help is appreciated.

Thank you
Manish.



-- 
This electronic communication and the information and any files transmitted 
with it, or attached to it, are confidential and are intended solely for 
the use of the individual or entity to whom it is addressed and may contain 
information that is confidential, legally privileged, protected by privacy 
laws, or otherwise restricted from disclosure to anyone else. If you are 
not the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, you are hereby notified that any use, 
copying, distributing, dissemination, forwarding, printing, or copying of 
this e-mail is strictly prohibited. If you received this e-mail in error, 
please return the e-mail to the sender, delete it from your computer, and 
destroy any printed copy of it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4211 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20230417/428b5de9/attachment-0001.p7s>


More information about the openssl-users mailing list