Skip to main content

content_encryption_algorithm

Function content_encryption_algorithm 

Source
fn content_encryption_algorithm(
    header: &Header,
) -> Result<Algorithm, SecretProtectedKeyEnvelopeError>
Expand description

Reads the content-encryption algorithm declared in the protected header. This value is used as the AlgorithmID of the COSE_KDF_Context, binding the derived key to the message’s declared algorithm (RFC 9053 §6.1.2).