pub fn unwrap_payload_hpke(
wrapped_payload: &[u8],
wrapped_secondary_payload: &[u8],
private_key: &[u8],
wrapper_algorithm: WrapperAlgorithm,
label: &str,
) -> Result<(Vec<u8>, Vec<u8>), UnwrapPayloadError>Expand description
Unwrap a payload that was wrapped using the specified WrapperAlgorithm.
The algorithm and private key type MUST match. label MUST match the value
used at wrap time.