Skip to main content

unwrap_and_verify

Function unwrap_and_verify 

Source
pub fn unwrap_and_verify(
    request: &[u8],
    opts: &UnwrapOptions<'_>,
) -> Result<(SignedEnvelope, Vec<u8>)>
Expand description

Unwrap and verify a SignedEnvelope from wire bytes.

Dispatches on opts.verification to select FixedSigner or AnySigner mode. If opts.decryption_key is set and the envelope is encrypted, decrypts the envelope after signature verification.