testauthority

package
v11.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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

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

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

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

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

func (*Keygen) GetNewKeyPairFromPool

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

type PreparedKeyPair

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