keytest

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkECDSA

func MkECDSA(t *testing.T, a elliptic.Curve) ecdsa.PrivateKey

func MkImportableKey

func MkImportableKey(t *testing.T, tpm transport.TPMCloser, keytype tpm2.TPMAlgID, bits int, pin []byte, comment string) (*key.SSHTPMKey, error)

Helper to make an importable key

func MkKey

func MkKey(t *testing.T, tpm transport.TPMCloser, keytype tpm2.TPMAlgID, bits int, pin []byte, comment string) (*key.SSHTPMKey, error)

Test helper for CreateKey

func MkRSA

func MkRSA(t *testing.T, bits int) rsa.PrivateKey

func MustRand

func MustRand(size int) []byte

Give us some random bytes

func NewTestAgent added in v0.8.0

func NewTestAgent(t *testing.T, tpm transport.TPMCloser) *agent.Agent

Types

type KeyFunc

Represents the type for MkKey and mkImportableKey

func MkCertificate added in v0.8.0

func MkCertificate(t *testing.T, ca crypto.Signer) KeyFunc

Jump to

Keyboard shortcuts

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