Documentation
¶
Index ¶
- Constants
- func EvictControl(ctx context.Context, loaded *File, address Address) error
- func IsTPMEnabled(ctx context.Context) bool
- func PCRs(ctx context.Context) (map[string][]int, error)
- type Address
- type File
- func CreatePCRPolicy(ctx context.Context, selector PCRSelector) (File, error)
- func CreatePrimary(ctx context.Context, hash HashAlgorithm, key KeyAlgorithm) (File, error)
- func Load(ctx context.Context, primary File, obj Object) (loaded File, err error)
- func NewFile(suffix string) File
- func Unseal(ctx context.Context, address Address, pcrs PCRSelector) (File, error)
- type HashAlgorithm
- type HexString
- type KeyAlgorithm
- type Object
- type PCRSelector
Constants ¶
View Source
const ( SHA1 HashAlgorithm = "sha1" SHA256 HashAlgorithm = "sha256" SHA384 HashAlgorithm = "sha384" SHA512 HashAlgorithm = "sha512" RSA KeyAlgorithm = "rsa" )
Variables ¶
This section is empty.
Functions ¶
func EvictControl ¶
EvictControl
func IsTPMEnabled ¶
IsTPMEnabled checks if TPM is accessible on this system
Types ¶
type File ¶
type File string
File is a tmp file path to make it easier to pass files around
func CreatePCRPolicy ¶
func CreatePCRPolicy(ctx context.Context, selector PCRSelector) (File, error)
CreatePCRPolicy creates a pcr policy from selection
func CreatePrimary ¶
func CreatePrimary(ctx context.Context, hash HashAlgorithm, key KeyAlgorithm) (File, error)
CreatePrimary key
type HashAlgorithm ¶
type HashAlgorithm string
type KeyAlgorithm ¶
type KeyAlgorithm string
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
type PCRSelector ¶
type PCRSelector map[HashAlgorithm][]int
func (PCRSelector) String ¶
func (p PCRSelector) String() string
Click to show internal directories.
Click to hide internal directories.