Documentation ¶
Overview ¶
Package testauthority implements a wrapper around native.Keygen that uses pre-computed keys.
Index ¶
- type Keygen
- func (n *Keygen) GenerateHostCert(c services.HostCertParams) ([]byte, error)
- func (n *Keygen) GenerateJWT() (pub []byte, priv []byte, err error)
- func (n *Keygen) GenerateKeyPair() (priv []byte, pub []byte, err error)
- func (n *Keygen) GeneratePrivateKey() (*keys.PrivateKey, error)
- func (n *Keygen) GenerateUserCert(c services.UserCertParams) ([]byte, error)
- func (n *Keygen) GetNewKeyPairFromPool() (priv []byte, pub []byte, err error)
- type PreparedKeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keygen ¶ added in v1.0.0
func NewWithClock ¶
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) GenerateKeyPair ¶ added in v1.0.0
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)
type PreparedKeyPair ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.