aesrng icon indicating copy to clipboard operation
aesrng copied to clipboard

Is your DRBG based on AES-CTR?

Open gogo9th opened this issue 6 years ago • 1 comments

Hi,

Thanks very much for making this random number generator library based on AES- I think you're the first who made this available on Google.

I wonder if your DRBG is based on AES-CTR. If not, what AES is it based on?

I am looking for an AES-CTR-based random number generator which is fast enough for production. I wonder if yours or anything else is a good fit for this purpose..

gogo9th avatar Dec 15 '19 22:12 gogo9th

Thanks for looking.

This is not based on AES-CTR, though it could be easily modified to work similarly.

This isn't based on anything formal, and is not meant to be cryptographically secure. It is meant more to be as fast as possible while still passing the diehard tests.

If you want to make it more like AES-CTR, you would want to bump up the AES_ROUNDS to 8 and use the full key schedule instructions rather than the current primitive key schedule. This will slow it down.

swenson avatar Dec 24 '19 19:12 swenson