key

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadJSONWebKey

func LoadJSONWebKey(json []byte, pub bool) (map[string]JWKeyPair, error)

func LoadJSONWebKeySet

func LoadJSONWebKeySet(jwkBytes []byte) ([]jose.JSONWebKey, error)

func LoadKeyPair added in v1.0.2

func LoadKeyPair(data []byte, checkForPassword bool) (interface{}, interface{}, error)

func LoadPrivateKey

func LoadPrivateKey(data []byte, checkForPassword bool) (interface{}, error)

func LoadPublicKey

func LoadPublicKey(data []byte, checkForPassword bool) (interface{}, error)

func ReadKey added in v1.0.2

func ReadKey(payload []byte, checkForPassword bool) []byte

func ReadPassword added in v1.0.2

func ReadPassword() []byte

func ResolveKeyPair added in v1.0.2

func ResolveKeyPair(key interface{}, pub bool, kid string) (interface{}, interface{}, error)

Types

type JWKeyPair added in v1.0.2

type JWKeyPair struct {
	PrivateKey interface{}
	PublicKey  interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳