cose

package
v0.0.0-...-48b6be6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type COSEPublicKey

type COSEPublicKey interface{}

func ParseCOSEKey

func ParseCOSEKey(cose []byte) (pkdata COSEPublicKey, err error)

type EC2

type EC2 struct {
	PKMetadata
	Curve int64  `cbor:"-1,keyasint,omitempty"`
	X     []byte `cbor:"-2,keyasint,omitempty"`
	Y     []byte `cbor:"-3,keyasint,omitempty"`
}

type OKP

type OKP struct {
	PKMetadata
	Curve int64  `cbor:"-1,keyasint,omitempty"`
	X     []byte `cbor:"-2,keyasint,omitempty"`
}

type PKMetadata

type PKMetadata struct {
	KeyType   int64 `cbor:"1,keyasint,omitempty"`
	Algorithm int64 `cbor:"3,keyasint,omitempty"`
}

type RSA

type RSA struct {
	PKMetadata
	Modulus  []byte `cbor:"-1,keyasint,omitempty"`
	Exponent []byte `cbor:"-3,keyasint,omitempty"`
}

Jump to

Keyboard shortcuts

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