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

ctr drbg bug #1

Open
fanatid opened this issue Feb 14, 2016 · 1 comment
Open

ctr drbg bug #1

fanatid opened this issue Feb 14, 2016 · 1 comment

Comments

@fanatid
Copy link
Member

fanatid commented Feb 14, 2016

Implement with algorithm described in NIST SP 800-90A, checked with founded C implementations one two, but still return wrong result 😢

@chjj
Copy link

chjj commented Jun 12, 2019

I have a working JS implementation here: https://github.com/bcoin-org/bcrypto/blob/master/lib/ctr-drbg.js

I ran into the same problems you guys did. It took several hours to debug and fix it. The derivation is just confusing as hell and not explained well anywhere.

I was considering using it for something but ultimately decided against it, so I guess it was a lot of work for nothing. :)

I'm not sure what's wrong with this implementation, but using the above one as a guide might be useful.

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

No branches or pull requests

2 participants