simulateTPM

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package test provides functions for use when testing the TPM Provisioner.

Index

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.

func LoadEK

func LoadEK(rwc io.ReadWriter, cert []byte) error

LoadEK loads the EK into the simulated TPM.

Types

This section is empty.

Jump to

Keyboard shortcuts

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