pub(super) fn key_id(cose_key: &CoseKey) -> Result<KeyId, EncodingError>
Expand description
Helper function to extract the key ID from a CoseKey
. The key ID is a standardized header
and always set in bitwarden-crypto generated encrypted messages or signatures.