testkey

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustEC256

func MustEC256() *ecdsa.PrivateKey

func MustEC384

func MustEC384() *ecdsa.PrivateKey

func MustRSA2048

func MustRSA2048() *rsa.PrivateKey

func MustRSA4096

func MustRSA4096() *rsa.PrivateKey

func NewEC256

func NewEC256(tb testing.TB) *ecdsa.PrivateKey

func NewEC384

func NewEC384(tb testing.TB) *ecdsa.PrivateKey

func NewRSA2048

func NewRSA2048(tb testing.TB) *rsa.PrivateKey

func NewRSA4096

func NewRSA4096(tb testing.TB) *rsa.PrivateKey

Types

type Generator

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

func (*Generator) GenerateEC256Key

func (g *Generator) GenerateEC256Key() (*ecdsa.PrivateKey, error)

func (*Generator) GenerateEC384Key

func (g *Generator) GenerateEC384Key() (*ecdsa.PrivateKey, error)

func (*Generator) GenerateRSA2048Key

func (g *Generator) GenerateRSA2048Key() (*rsa.PrivateKey, error)

func (*Generator) GenerateRSA4096Key

func (g *Generator) GenerateRSA4096Key() (*rsa.PrivateKey, error)

type Keys

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

func (*Keys) MustEC256

func (ks *Keys) MustEC256() *ecdsa.PrivateKey

func (*Keys) MustEC384

func (ks *Keys) MustEC384() *ecdsa.PrivateKey

func (*Keys) MustRSA2048

func (ks *Keys) MustRSA2048() *rsa.PrivateKey

func (*Keys) MustRSA4096

func (ks *Keys) MustRSA4096() *rsa.PrivateKey

func (*Keys) NewEC256

func (ks *Keys) NewEC256(tb testing.TB) *ecdsa.PrivateKey

func (*Keys) NewEC384

func (ks *Keys) NewEC384(tb testing.TB) *ecdsa.PrivateKey

func (*Keys) NewRSA2048

func (ks *Keys) NewRSA2048(tb testing.TB) *rsa.PrivateKey

func (*Keys) NewRSA4096

func (ks *Keys) NewRSA4096(tb testing.TB) *rsa.PrivateKey

func (*Keys) NextEC256

func (ks *Keys) NextEC256() (*ecdsa.PrivateKey, error)

func (*Keys) NextEC384

func (ks *Keys) NextEC384() (*ecdsa.PrivateKey, error)

func (*Keys) NextRSA2048

func (ks *Keys) NextRSA2048() (*rsa.PrivateKey, error)

func (*Keys) NextRSA4096

func (ks *Keys) NextRSA4096() (*rsa.PrivateKey, error)

Jump to

Keyboard shortcuts

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