pub(super) fn content_type(
protected_header: &ProtectedHeader,
) -> Result<CoapContentFormat, CryptoError>
Expand description
Helper function to extract the content type from a ProtectedHeader
. The content type is a
standardized header set on the protected headers of the signature object. Currently we only
support registered values, but PrivateUse values are also allowed in the COSE specification.