Documentation
¶
Overview ¶
package spam defines some library functions for dealing with spams.
Index ¶
- func Define(tpm io.ReadWriter, slot uint16, platformAuth string) error
- func GetPolicy(policy *policypb.Policy) ([]byte, error)
- func Read(tpm io.ReadWriter, slot uint16) (*[64]byte, error)
- func SatisfyPolicy(tpm io.ReadWriter, session tpmutil.Handle, pol *policypb.Policy) error
- func Undefine(tpm io.ReadWriter, slot uint16, platformAuth string) error
- func Write(tpm io.ReadWriter, slot uint16, data [64]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Define ¶
func Define(tpm io.ReadWriter, slot uint16, platformAuth string) error
Define sets up a spam at the specified slot.
func Read ¶
func Read(tpm io.ReadWriter, slot uint16) (*[64]byte, error)
Read reads the spam at the specified slot.
func SatisfyPolicy ¶
SatisfyPolicy runs a spam policy in the given policy session. Fails if the policy is not satisfiable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.