sign1

package
v0.0.0-...-528d23b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sign1Message

type Sign1Message struct {
	Payload   []byte
	Signature []byte
	Header    []byte
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL