testauthority

package
v1.2.3-fred.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 54

Documentation

Overview

Package testauthority implements a wrapper around native.Keygen that uses pre-computed keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keygen added in v1.0.0

type Keygen struct {
	*native.Keygen
	// contains filtered or unexported fields
}

func New

func New() *Keygen

New creates a new key generator with defaults

func NewWithClock

func NewWithClock(clock clockwork.Clock) *Keygen

NewWithClock creates a new key generator with the specified configuration

func (*Keygen) GenerateHostCert added in v1.0.0

func (n *Keygen) GenerateHostCert(c services.HostCertParams) ([]byte, error)

func (*Keygen) GenerateJWT

func (n *Keygen) GenerateJWT() (pub []byte, priv []byte, err error)

func (*Keygen) GenerateKeyPair added in v1.0.0

func (n *Keygen) GenerateKeyPair() (priv []byte, pub []byte, err error)

func (*Keygen) GeneratePrivateKey

func (n *Keygen) GeneratePrivateKey() (*keys.PrivateKey, error)

GeneratePrivateKey generates a new PrivateKey.

func (*Keygen) GenerateUserCert added in v1.0.0

func (n *Keygen) GenerateUserCert(c services.UserCertParams) ([]byte, error)

func (*Keygen) GetNewKeyPairFromPool added in v1.0.0

func (n *Keygen) GetNewKeyPairFromPool() (priv []byte, pub []byte, err error)

type PreparedKeyPair added in v1.0.0

type PreparedKeyPair struct {
	Priv []byte
	Pub  []byte
}

Jump to

Keyboard shortcuts

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