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

Add Customized trait for blake2 #664

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

sylvainpelissier
Copy link
Contributor

Allow to use Blake2 with a customized string: Blake2b128::new_customized(persona) as described in the paper and as for cSHAKE. It needs a new trait VarOutputCustomized implemented by: RustCrypto/traits#1787

@newpavlov
Copy link
Member

newpavlov commented Mar 12, 2025

You should add a patch for digest using the traits repo. Add this to the root Cargo.toml:

[patch.crates-io]
# https://github.com/RustCrypto/traits/pull/1787
digest = { git = "https://github.com/RustCrypto/traits" }

@newpavlov newpavlov merged commit 510b388 into RustCrypto:master Mar 24, 2025
227 checks passed
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

Successfully merging this pull request may close these issues.

2 participants