Help us shape the future of Go! Take the 2026 Go Developer Survey

testkey

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 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 MustEC256PKCS1PEM added in v1.12.0

func MustEC256PKCS1PEM() []byte

func MustEC256PKCS8PEM added in v1.12.0

func MustEC256PKCS8PEM() []byte

func MustEC384 added in v0.12.2

func MustEC384() *ecdsa.PrivateKey

func MustEC384PKCS1PEM added in v1.12.0

func MustEC384PKCS1PEM() []byte

func MustEC384PKCS8PEM added in v1.12.0

func MustEC384PKCS8PEM() []byte

func MustRSA2048 added in v0.12.2

func MustRSA2048() *rsa.PrivateKey

func MustRSA2048PKCS1PEM added in v1.12.0

func MustRSA2048PKCS1PEM() []byte

func MustRSA2048PKCS8PEM added in v1.12.0

func MustRSA2048PKCS8PEM() []byte

func MustRSA4096 added in v0.12.2

func MustRSA4096() *rsa.PrivateKey

func MustRSA4096PKCS1PEM added in v1.12.0

func MustRSA4096PKCS1PEM() []byte

func MustRSA4096PKCS8PEM added in v1.12.0

func MustRSA4096PKCS8PEM() []byte

func NewEC256

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

func NewEC256PKCS1PEM added in v1.12.0

func NewEC256PKCS1PEM(tb testing.TB) []byte

func NewEC256PKCS8PEM added in v1.12.0

func NewEC256PKCS8PEM(tb testing.TB) []byte

func NewEC384

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

func NewEC384PKCS1PEM added in v1.12.0

func NewEC384PKCS1PEM(tb testing.TB) []byte

func NewEC384PKCS8PEM added in v1.12.0

func NewEC384PKCS8PEM(tb testing.TB) []byte

func NewRSA2048

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

func NewRSA2048PKCS1PEM added in v1.12.0

func NewRSA2048PKCS1PEM(tb testing.TB) []byte

func NewRSA2048PKCS8PEM added in v1.12.0

func NewRSA2048PKCS8PEM(tb testing.TB) []byte

func NewRSA4096

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

func NewRSA4096PKCS1PEM added in v1.12.0

func NewRSA4096PKCS1PEM(tb testing.TB) []byte

func NewRSA4096PKCS8PEM added in v1.12.0

func NewRSA4096PKCS8PEM(tb testing.TB) []byte

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() (crypto.Signer, error)

func (*Generator) GenerateEC384Key added in v1.5.0

func (g *Generator) GenerateEC384Key() (crypto.Signer, error)

func (*Generator) GenerateRSA2048Key added in v1.5.0

func (g *Generator) GenerateRSA2048Key() (crypto.Signer, error)

func (*Generator) GenerateRSA4096Key added in v1.5.0

func (g *Generator) GenerateRSA4096Key() (crypto.Signer, 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