-
Notifications
You must be signed in to change notification settings - Fork 32
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
Wrap cryptolib functions #132
Conversation
yogh333
commented
Feb 8, 2024
•
edited
Loading
edited
- Added wrapper for hash functions
- Return Chain Code (BIP32 derivation)
0fb5774
to
14739bf
Compare
path: &[u32], | ||
key: &mut [u8], | ||
cc: &mut [u8], | ||
) -> Result<(), CxError> { |
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 don't get why for ed25519 the requested length is 96 few lines below?
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.
Agreed, looks to be ok with 64 🤔. Maybe a typo @yhql ?
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.
Fix in this commit, waiting feedback from @yhql if revert is needed
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.
Looks good to me.
…ward compatibility
3521a3e
to
11d4dbc
Compare
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.
LGTM, would recommend using macro_rules!
to declare HashInit
for all variants though