testkey

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustEC256

func MustEC256() *ecdsa.PrivateKey

func MustEC384 added in v0.12.2

func MustEC384() *ecdsa.PrivateKey

func MustRSA2048 added in v0.12.2

func MustRSA2048() *rsa.PrivateKey

func MustRSA4096 added in v0.12.2

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 added in v1.5.0

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

func (*Generator) GenerateEC256Key added in v1.5.0

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

func (*Generator) GenerateEC384Key added in v1.5.0

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

func (*Generator) GenerateRSA2048Key added in v1.5.0

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

func (*Generator) GenerateRSA4096Key added in v1.5.0

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

type Keys added in v0.12.2

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

func (*Keys) MustEC256 added in v0.12.2

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

func (*Keys) MustEC384 added in v0.12.2

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

func (*Keys) MustRSA2048 added in v0.12.2

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

func (*Keys) MustRSA4096 added in v0.12.2

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

func (*Keys) NewEC256 added in v0.12.2

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

func (*Keys) NewEC384 added in v0.12.2

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

func (*Keys) NewRSA2048 added in v0.12.2

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

func (*Keys) NewRSA4096 added in v0.12.2

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

func (*Keys) NextEC256 added in v1.0.0

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

func (*Keys) NextEC384 added in v1.0.0

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

func (*Keys) NextRSA2048 added in v1.0.0

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

func (*Keys) NextRSA4096 added in v1.0.0

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