Documentation ¶
Overview ¶
Package test provides functions for use when testing the TPM Provisioner.
Index ¶
- func CreateEK(rwc io.ReadWriter) ([]byte, error)
- func GenerateCA(cname string) (*x509.Certificate, *rsa.PrivateKey, *bytes.Buffer, error)
- func GenerateEK(ca *x509.Certificate, caKey *rsa.PrivateKey, ekPubKey *rsa.PublicKey) ([]byte, error)
- func GetPublicEK(rwc io.ReadWriter) (*rsa.PublicKey, error)
- func LoadEK(rwc io.ReadWriter, cert []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEK ¶
func CreateEK(rwc io.ReadWriter) ([]byte, error)
CreateEK Creates an EK Certificate and loads it into the simulated TPM.
func GenerateCA ¶
func GenerateCA(cname string) (*x509.Certificate, *rsa.PrivateKey, *bytes.Buffer, error)
GenerateCA creates a TPM Provisioner test CA.
func GenerateEK ¶
func GenerateEK(ca *x509.Certificate, caKey *rsa.PrivateKey, ekPubKey *rsa.PublicKey) ([]byte, error)
GenerateEK creates an EK Certificate for use with the TPM simulator.
func GetPublicEK ¶
func GetPublicEK(rwc io.ReadWriter) (*rsa.PublicKey, error)
GetPublicEK returns the EK Certificate stores in the TPM.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.