-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Change RFC6979 implementation to be a generic PRNG #269
Conversation
@gmaxwell Want to review? |
@sipa maybe its taken care by
Is this handled externally [to that function] as part of the libraries signing process? |
@dcousens Right, secp256k1_rfc6979_hmac_sha256 only implements the PRNG side of the construction. The specific use as defined by RFC6979 is done inside the signing code. |
With benchmarks on
|
Rebased and fixed bug found by @apoelstra. |
ACK. (but see nit) |
tested ACK |
Addressed nit. |
3e6f1e2 Change rfc6979 implementation to be a generic PRNG (Pieter Wuille)
Instead of making it take key, message, and extra data separate, just pass in a byte array of seed data, turning it into just a non-EC specific PRNG.
The usage inside the blinding code and the tests is also adapted to make use of this in a more natural way.