Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sign1Message ¶
Represents a decoded COSE_Sign1 struct. Contains the payload, signature and a header (signed)
func FromBytes ¶
func FromBytes(bytes []byte) (*Sign1Message, error)
Unmarshals COSE_Sign1 message from CBOR bytes. Currently only supports untagged CBOR structs
func (*Sign1Message) Validate ¶
func (m *Sign1Message) Validate(key interface{}) error
Validates COSE_Sign1 signature given a public key. Currently only supports ECDSA signatures w/ SHA-384
Click to show internal directories.
Click to hide internal directories.