Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ console_error_panic_hook = { version = "0.1", optional = true }
# aes-gcm (via the reader) pulls getrandom 0.2; the wasm32-unknown-unknown
# target needs its "js" backend explicitly enabled to build.
getrandom = { version = "0.2", features = ["js"] }
# ml-dsa 0.1 (via the reader) pulls getrandom 0.4, which renamed the wasm
# backend feature from "js" to "wasm_js". Both versions coexist in the
# dep graph; we surface the 0.4 instance here under a rename so we can
# enable wasm_js without colliding with the 0.2 alias above.
getrandom_v04 = { package = "getrandom", version = "0.4", features = ["wasm_js"] }

[features]
default = ["console_error_panic_hook"]
10 changes: 5 additions & 5 deletions impl/rust/pqf-reader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ ml-kem = "0.2"

# Hybrid signatures
ed25519-dalek = { version = "2.1", features = ["std"] }
# Pinned to 0.0.4 (not 0.1) because ml-dsa 0.1 swapped to the
# `signature` 3.0 Verifier trait and renamed the verify method. Same
# situation as ml-kem above — dep-compatible but needs code changes
# in reader.rs.
ml-dsa = "0.0.4"
# ml-dsa 0.1 routes the `signature::Verifier::verify` trait method to
# FIPS 204 Algorithm 8 (no domain separator). BouncyCastle's pure
# ML-DSA-87 signs with Algorithm 3 (with the empty-context prefix), so
# the verifier in reader.rs uses `verify_with_context(msg, &[], &sig)`.
ml-dsa = "0.1.0"

# AEAD + hashing + KDF
aes-gcm = "0.10"
Expand Down
2 changes: 1 addition & 1 deletion impl/rust/pqf-reader/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ fn verify_mldsa87(pub_key: &[u8], message: &[u8], sig: &[u8]) -> bool {
let Some(parsed) = ml_dsa::Signature::<MlDsa87>::decode(&sig_encoded) else {
return false;
};
vk.verify(message, &parsed).is_ok()
vk.verify_with_context(message, &[], &parsed)
}

fn decode_mlkem_dk(
Expand Down
Loading