Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Flush ¶
func Flush(rwc io.ReadWriteCloser, handle tpmutil.Handle)
Flush removes any loaded handles in the tpm. This prevent out-of-memory errors.
func FlushAndClose ¶
func FlushAndClose(rwc io.ReadWriteCloser, handle tpmutil.Handle)
FlushAndClose removes any loaded handles in the tpm and closes it. This prevent out-of-memory errors.
func GenerateNewKeyPair ¶
GenerateNewKeyPair creates a new primary key inside a tpm and returns the key handle and its public key. If GenerateNewKeyPair encounters an error during primary key creation, it returns an invalid tpm handle, nil public key and error.
func MarshalPublicKey ¶
MarshalPublicKey converts a crypto.PublicKey value to its pem encoding.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.