Function extract_namespace

Source
fn extract_namespace(
    header: &Header,
) -> Result<DataEnvelopeNamespace, DataEnvelopeError>
Expand description

Helper function to extract the namespace from a ProtectedHeader. The namespace is stored as a custom header value using the DATA_ENVELOPE_NAMESPACE label.