I was doing some experiments with cryptography, and now I am trying to make a deterministic random number generator (DRBG). It should be a counter mode based deterministic random bit generator using AES-128 block cipher specified in NIST SP 800-90.
I have the source code of OpenSSL. In OpenSSL, there are two functions RAND_bytes()
and RAND_pseudo_bytes()
to be used as random number generator.
How to configure this OpenSSL random number generator as counter mode based DRBG using AES-128 block cipher?