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

Open question: Should we use BLAKE3 instead of SHA-512 for signature message digests? #50

Open
casey opened this issue Oct 5, 2024 · 0 comments

Comments

@casey
Copy link
Owner

casey commented Oct 5, 2024

ed25519 uses SHA-512 in its signature algorithm. Since we already use BLAKE3 to hash files, we could use BLAKE3 as the digest in our signature algorithm instead. ed25519 requires a 512 bit digest, and BLAKE3 is 256 bits by default, but BLAKE3 is an XOF, so it's trivial to produce 512 bits of output.

Pros:

  • Remove dependency on SHA-512
  • Only depend on the security of one hash function

Cons:

  • Our signatures would no longer be standard ed25519 signatures

The con is a major one. We would lose compatibility with other ed25519 implementations, like libraries and hardware devices. This is probably not worth doing, but I wanted to create this issue to allow for some discussion.

@casey casey changed the title Open question: Should we use BLAKE3 instead of SHA-512 for signature digest? Open question: Should we use BLAKE3 instead of SHA-512 for signature digests? Oct 5, 2024
@casey casey changed the title Open question: Should we use BLAKE3 instead of SHA-512 for signature digests? Open question: Should we use BLAKE3 instead of SHA-512 for signature message digests? Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant