Skip to content

Move the hash/MAC/PBKDF2 dependencies to the digest 0.11 ecosystem #154

Done

Description

@WingZer0o

Summary

Several RustCrypto crates that the other algorithm issues need (cmac 0.8, shake, cshake, k12, turboshake, ascon-hash256, and hkdf 0.13, which cas-lib already uses) are built on digest 0.11. cas-lib's hashers, HMAC and PBKDF2 are still on the digest 0.10 generation, so HKDF already needs a second copy of sha2 under the sha2-hkdf alias. Moving the remaining crates to the digest 0.11 generation together removes the alias and unblocks the new hash, XOF, MAC, KDF and password-hash work.

Upstream

Scope

  • Bump sha2, sha3, blake2, hmac and pbkdf2 to their digest 0.11 releases
  • Remove the sha2-hkdf alias from Cargo.toml and point src/kdf/hkdf.rs at sha2
  • Check whether argon2, scrypt, hpke, rsa and ed25519-dalek still pull digest 0.10, and say in the PR which ones do
  • cargo audit --deny unsound --deny yanked passes

Implementation notes

  • This should not change any public API or output. The existing NIST KATs (tests/hashers.rs, tests/message.rs) and Wycheproof runs prove the digests, HMACs and PBKDF2 outputs stay identical.
  • Use targeted cargo update -p <crate> rather than a blanket cargo update.
  • PR title: chore(deps): … (or refactor:), not a feature.

Tests

  • cargo test --release --locked passes unchanged on Linux, Windows and macOS.

Docs

  • No new APIs; only update docs/EXAMPLES.md if an example's imports change.

Activity

  1. added
    enhancement
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions