Module cose

Source
Expand description

This file contains helper functions to aid in COSE deserialization

Functionsยง

content_type ๐Ÿ”’
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.
ed25519_signing_key ๐Ÿ”’
Helper function to parse a ed25519 signing key from a CoseKey.
ed25519_verifying_key ๐Ÿ”’
Helper function to parse a ed25519 verifying key from a CoseKey.
key_id ๐Ÿ”’
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.
namespace ๐Ÿ”’
Helper function to extract the namespace from a ProtectedHeader. The namespace is a custom header set on the protected headers of the signature object.
okp_curve ๐Ÿ”’
Helper function to parse the OKP curve from a CoseKey.
okp_d ๐Ÿ”’
Helper function to parse the private key d from a CoseKey.
okp_x ๐Ÿ”’
Helper function to parse the public key x from a CoseKey.