testkey

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EC256

func EC256() *ecdsa.PrivateKey

EC256 returns an EC key on the P-256 curve for test use. To reduce the number of generated test keys, this function can only be called at package initialization time.

func EC384

func EC384() *ecdsa.PrivateKey

EC384 returns an EC key on the P-384 curve for test use. To reduce the number of generated test, this function can only be called at package initialization time.

func ED25519

func ED25519() ed25519.PrivateKey

ED25519 returns an EC key on the P-256 curve for test use. To reduce the number of generated test keys, this function can only be called at package initialization time.

func RSA2048

func RSA2048() *rsa.PrivateKey

RSA2048 returns an 2048-bit RSA key for test use. To reduce the number of generated test keys, this function can only be called at package initialization time.

func RSA4096

func RSA4096() *rsa.PrivateKey

RSA4096 returns an 4096-bit RSA key for test use. To reduce the number of generated test keys, this function can only be called at package initialization time.

Types

type Keys

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

func (*Keys) EC256

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

func (*Keys) EC384

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

func (*Keys) ED25519

func (ks *Keys) ED25519() ed25519.PrivateKey

func (*Keys) RSA2048

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

func (*Keys) RSA4096

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

Jump to

Keyboard shortcuts

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