Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is your DRBG based on AES-CTR? #1

Open
gogo9th opened this issue Dec 15, 2019 · 1 comment
Open

Is your DRBG based on AES-CTR? #1

gogo9th opened this issue Dec 15, 2019 · 1 comment

Comments

@gogo9th
Copy link

gogo9th commented Dec 15, 2019

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..

@swenson
Copy link
Owner

swenson commented Dec 24, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants