pub(crate) fn extract_key_id(header: &Header) -> Result<Option<KeyId>, ()>
Extract the contained key ID from a COSE header, if present. Only COSE keys have a key ID; legacy keys do not.