Skip to main content

unwrap_response_with

Function unwrap_response_with 

Source
pub fn unwrap_response_with(
    response: &[u8],
    expected_pubkey: Option<&VerifyingKey>,
    pq_store: Option<&dyn PqTrustStore>,
    verify_policy: CryptoPolicy,
) -> Result<(u64, Vec<u8>)>
Expand description

Unwrap and verify a ResponseEnvelope under an explicit kid-anchored PQ trust store + verify policy (#275).

Enforces the same mandatory-hybrid semantics as unwrap_and_verify: the signer must have an anchored ML-DSA-65 key and the outer signature must verify. Missing anchors and classical-only responses fail closed.