Skip to main content

extract_key_id

Function extract_key_id 

Source
pub(crate) fn extract_key_id(header: &Header) -> Result<Option<KeyId>, ()>
Expand description

Extract the contained key ID from a COSE header, if present. Only COSE keys have a key ID; legacy keys do not.