key

package
v0.0.0-...-14a7c87 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeKid

func ComputeKid(pub crypto.PublicKey) (string, error)

Types

type Key

type Key struct {
	Kid    string
	Issuer string
	Key    ecdsa.PublicKey
}

func NewKey

func NewKey(iss string, pkix []byte) (Key, error)

SubjectPublicKeyInfo (RFC 5280, Section 4.1) ASN.1 DER

func NewKeyBase64

func NewKeyBase64(iss string, b64 string) (Key, error)

type Set

type Set struct {
	// contains filtered or unexported fields
}

func NewSet

func NewSet() *Set

func (*Set) Equal

func (k *Set) Equal(keys *[]Key) bool

func (*Set) Key

func (k *Set) Key(kid string) (Key, bool)

func (*Set) KeysFor

func (k *Set) KeysFor(iss string) []Key

func (*Set) Replace

func (k *Set) Replace(keys *[]Key)

Jump to

Keyboard shortcuts

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