Documentation
¶
Overview ¶
cose contains utility functions related to COSE keys, Section 7 of [RFC8152].
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingKeyType = fmt.Errorf("cose: missing key type") ErrMissingAlgorithm = fmt.Errorf("cose: missing algorithm") ErrUnsupportedKeyType = fmt.Errorf("cose: unsupported key type") ErrUnsupportedAlgorithm = fmt.Errorf("cose: unsupported algorithm") ErrInvalidFormat = fmt.Errorf("cose: invalid format") )
Errors
Functions ¶
func ParseCOSE ¶
ParseCOSE parses a raw COSE key into a public key, either *ecdsa.PublicKey or *rsa.PublicKey.
func ParseCOSEMap ¶
ParseCOSEMap parses a COSE key that has been decoded from it's CBOR format to a dictionary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.