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

[seraphis] seraphis_crypto: add seraphis hash functions #9197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

UkoeHB
Copy link
Contributor

@UkoeHB UkoeHB commented Feb 22, 2024

This is a PR in my 'upstreaming seraphis_lib project', the changes here are not used anywhere yet.

Adds hash functions on top of Blake2b.

TODO

hash_base(derivation_key, data, data_length, hash_out, 32);
}
//-------------------------------------------------------------------------------------------------------------------
void sp_derive_x25519_key(const void *derivation_key, const void *data, const std::size_t data_length, void *hash_out)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe LibSodium also sets the 255th bit to 1.
So what is the definition of a canonical X25519 scalar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Tevador's comment is interesting.

@UkoeHB
Copy link
Contributor Author

UkoeHB commented May 21, 2024

@tevador can you review?

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

Successfully merging this pull request may close these issues.

None yet

4 participants