Repository navigation
Backlog
Labels
dependenciesDependency or toolchain update
Description
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 PBKDF2derivationnow 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", thencargo update -p cas-liband commit theCargo.lockdiff (no blanketcargo update).- Run
cargo audit --deny unsound --deny yankedand 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
PasswordHashingFailedrather 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 (
--lockedbuilds). - PR title follows Conventional Commits. Don't bump the version or edit
CHANGELOG.mdby hand; release-please does that.
Metadata
Metadata
Assignees
Labels
dependenciesDependency or toolchain update
Activity