Skip to content

Add Customized trait for blake2 - #664

Merged
newpavlov merged 2 commits into
RustCrypto:masterfrom
sylvainpelissier:blake2_custom
Mar 24, 2025
Merged

Add Customized trait for blake2#664
newpavlov merged 2 commits into
RustCrypto:masterfrom
sylvainpelissier:blake2_custom

Conversation

@sylvainpelissier

Copy link
Copy Markdown
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

newpavlov commented Mar 12, 2025

Copy link
Copy Markdown
Member

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/1787digest = { git = "https://github.com/RustCrypto/traits" }

@newpavlov
newpavlov merged commit 510b388 into RustCrypto:masterMar 24, 2025
@tarcieritarcieri mentioned this pull request Aug 25, 2026
tarcieri added a commit that referenced this pull request Aug 26, 2026
## Added
- `zeroize` support (#545)
- `Blake2b128`, `Blake2b256`, `Blake2s128` type aliases (#564)
- `CustomizedInit` support (#664)
- `alloc` crate feature (#678)
## Changed
- Edition changed to 2024 and MSRV bumped to 1.85 (#652)
- Relax MSRV policy and allow MSRV bumps in patch releases
- Update to `digest` v0.11
- Replace type aliases with newtypes (#678)
## Removed
- `std` crate feature (#678)
- `Blake2bVar` and `Blake2sVar` types (#744)
- SIMD support (#898)
## Fixed
- Handling of unkeyed hashes in keyed mode (#510, #612)
Sign up for freeto 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

@sylvainpelissier@newpavlov