Skip to content

chore(deps): bump cas-lib to 0.7.2 #145

Backlog

Description

@WingZer0o

Summary

cas-core-lib pins cas-lib = "=0.7.0". Bump it to cas-lib 0.7.2, which also picks up 0.7.1 (HKDF, exported separately in the HKDF issue) and the dependency migration.

What changes in cas-lib 0.7.1 → 0.7.2

0.7.2 moves cas-lib to the digest 0.11 RustCrypto stack and removes rand (Cryptographic-API-Services/cas-lib#167, Cryptographic-API-Services/cas-lib#168, Cryptographic-API-Services/cas-lib#169, Cryptographic-API-Services/cas-lib#170, Cryptographic-API-Services/cas-lib#172). No public signature changes, and every hash, KDF, key, signature and ciphertext output is byte-identical (the cas-lib KATs were not edited). Behaviour differences callers can see:

  • CASArgon::hash_password*, CASScrypt::hash_password* and PBKDF2 derivation now return an error (PasswordHashingFailed) if the OS RNG fails, instead of panicking.
  • AEAD generate_key / generate_nonce, CASArgon::generate_salt, Ed25519 and SLH-DSA key generation still panic if the OS RNG fails (now documented under # Panics).
  • The PBKDF2 salt is still the 22-character PHC "B64" string; Argon2 and scrypt PHC strings from earlier releases still verify.

Work

  • Cargo.toml: cas-lib = "=0.7.2", then cargo update -p cas-lib and commit the Cargo.lock diff (no blanket cargo update).
  • Run cargo audit --deny unsound --deny yanked and say in the PR what changed in the tree (digest 0.10, rand 0.8 and curve25519-dalek 4 should be gone except via slh-dsa 0.0.3).
  • Regression tests: an Argon2 and a scrypt PHC hash, and an Ed25519 signature, produced by cas-core-lib 1.0.0 (cas-lib 0.7.0) still verify. Hard-code the stored values in the tests.
  • Check the password-hasher error paths still return error codes (the RNG-failure path is now PasswordHashingFailed rather than a panic).

Downstream

cas-dotnet-sdk picks this up through a submodule bump once a cas-core-lib release contains it.

Acceptance criteria

  • CI green on Linux, Windows and macOS (--locked builds).
  • PR title follows Conventional Commits. Don't bump the version or edit CHANGELOG.md by hand; release-please does that.

Activity

  1. added
    dependencies
    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

    dependencies

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions