rs256

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SigID = "rs256"
)

Variables

This section is empty.

Functions

func Register

func Register(algs h2signer.SigningKeyAlgs)

Register registers a signer alg

Types

type Config

type Config struct {
	Key *rsa.PrivateKey
}

func NewConfig

func NewConfig() (*Config, error)

func ParseConfig

func ParseConfig(params string) (*Config, error)

func (Config) String

func (c Config) String() (string, error)

type Key

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

Key implements SigningKey for RS256

func New

func New(config Config) (*Key, error)

func NewFromParams

func NewFromParams(params string) (*Key, error)

NewFromParams creates an RS256 key from params

func (*Key) Alg

func (k *Key) Alg() string

func (*Key) ID

func (k *Key) ID() string

func (*Key) Private

func (k *Key) Private() interface{}

func (*Key) Public

func (k *Key) Public() interface{}

Jump to

Keyboard shortcuts

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