Documentation ¶
Index ¶
- Variables
- func DefineAUXIndexTPM12(rw io.ReadWriter) error
- func DefineAUXIndexTPM20(rw io.ReadWriter) error
- func DefinePSIndexTPM12(rw io.ReadWriter) error
- func DefinePSIndexTPM20(rw io.ReadWriter, passHash []byte) error
- func DeleteAUXIndexTPM12(rw io.ReadWriter) error
- func DeleteAUXindexTPM20(rw io.ReadWriter, pol *tools.LCPPolicy2, passHash []byte) error
- func DeletePSIndexTPM12(rw io.ReadWriter) error
- func DeletePSIndexTPM20(rw io.ReadWriter, passHash []byte) error
- func PrintProvisioningTPM12(rw io.ReadWriter)
- func PrintProvisioningTPM20(rw io.ReadWriter)
- func WritePSIndexTPM12(rw io.ReadWriter, lcppol *tools.LCPPolicy) error
- func WritePSIndexTPM20(rw io.ReadWriter, lcppol *tools.LCPPolicy2, passHash []byte) error
Constants ¶
This section is empty.
Variables ¶
var HashMapping = map[string]crypto.Hash{ "SHA1": crypto.SHA1, "SHA256": crypto.SHA256, "SHA384": crypto.SHA384, "SHA512": crypto.SHA512, }
HashMapping exports a map to convert hash names to its respective library object.
Functions ¶
func DefineAUXIndexTPM12 ¶
func DefineAUXIndexTPM12(rw io.ReadWriter) error
DefineAUXIndexTPM12 defines the AUX index on TPM 1.2
func DefineAUXIndexTPM20 ¶
func DefineAUXIndexTPM20(rw io.ReadWriter) error
DefineAUXIndexTPM20 defines the AUX index on TPM 2.0
func DefinePSIndexTPM12 ¶
func DefinePSIndexTPM12(rw io.ReadWriter) error
DefinePSIndexTPM12 creates the PS index for TPM 1.2
func DefinePSIndexTPM20 ¶
func DefinePSIndexTPM20(rw io.ReadWriter, passHash []byte) error
DefinePSIndexTPM20 creates the PS index for TPM 2.0
func DeleteAUXIndexTPM12 ¶
func DeleteAUXIndexTPM12(rw io.ReadWriter) error
DeleteAUXIndexTPM12 deletes the AUX index on TPM 1.2
func DeleteAUXindexTPM20 ¶
func DeleteAUXindexTPM20(rw io.ReadWriter, pol *tools.LCPPolicy2, passHash []byte) error
DeleteAUXindexTPM20 deletes the AUX index on TPM 2.0
func DeletePSIndexTPM12 ¶
func DeletePSIndexTPM12(rw io.ReadWriter) error
DeletePSIndexTPM12 deletes the PS index on TPM 1.2
func DeletePSIndexTPM20 ¶
func DeletePSIndexTPM20(rw io.ReadWriter, passHash []byte) error
DeletePSIndexTPM20 deletes the PS index on TPM 2.0
func PrintProvisioningTPM12 ¶
func PrintProvisioningTPM12(rw io.ReadWriter)
PrintProvisioningTPM12 outputs PS and AUX index on console for TPM 1.2
func PrintProvisioningTPM20 ¶
func PrintProvisioningTPM20(rw io.ReadWriter)
PrintProvisioningTPM20 outputs PS and AUX index on console for TPM 2.0
func WritePSIndexTPM12 ¶
func WritePSIndexTPM12(rw io.ReadWriter, lcppol *tools.LCPPolicy) error
WritePSIndexTPM12 writes the LCP Policy into the PS index of TPM 1.2
func WritePSIndexTPM20 ¶
func WritePSIndexTPM20(rw io.ReadWriter, lcppol *tools.LCPPolicy2, passHash []byte) error
WritePSIndexTPM20 writes the LCP Policy2 into the PS index of TPM 2.0
Types ¶
This section is empty.