-
-
Notifications
You must be signed in to change notification settings - Fork 672
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
Implement hashing to curve #3293
Conversation
032c927
to
bff0c77
Compare
@andrewkozlik is going to do a brief overall review. @matejcik, @hiviah, I need at least one of you to check the memory safety (particularly the out-of-bound reads and writes) of these functions:
|
crypto/hash_to_curve.h
Outdated
#ifndef __HASH_TO_CURVE_H__ | ||
#define __HASH_TO_CURVE_H__ | ||
|
||
#include "bignum.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need to include bignum.h.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in d4e8d2a.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have looked over the API (crypto/hash_to_curve.h) and the test vectors (crypto/tests/test_check.c). Those LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C-wise LGTM.
f89b889
to
4c144cd
Compare
This pull requests implements hashing to a curve that is compatible with the suite
P256_XMD:SHA-256_SSWU_RO_
from RFC9380.