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 aCoseKey
. - okp_x ๐
- Helper function to parse the public key
x
from aCoseKey
.