local

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToDecodeKey = errors.New("failed to decode public key")
	ErrKeyIsNotPublic    = errors.New("key is not a public key")
	ErrKeyIsNotPublicRSA = errors.New("key is not an RSA public key")
)

Functions

func NewNilSigner added in v0.2.0

func NewNilSigner() *nilSigner

NewNilSigner creates a signer that does nothing.

func NewVerifier

func NewVerifier(key *rsa.PublicKey) verifier

NewVerifier creates a new verifier with local public key.

func ParsePublicKey

func ParsePublicKey(pub []byte) (*rsa.PublicKey, error)

ParsePublicKey parses a public RSA key from a PEM encoded bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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