Versions in this module Expand all Collapse all v0 v0.1.1 Feb 8, 2015 Changes in this version + const ErrCodeAuthentication + const ErrCodeCommunicationFailure + const ErrCodeNVRAMAlreadyExists + const ErrCodeNoStorageRootKey + const ErrCodeTPMDisabled + const PermAuthRead + const PermAuthWrite + const PermWriteAllAtOnce + func Present() bool + type Context struct + func NewContext() (*Context, error) + func (c *Context) Close() error + func (c *Context) GetPolicy() (*Policy, error) + func (c *Context) NewNVRAM() (*NVRAM, error) + func (c *Context) NewPolicy() (*Policy, error) + func (c *Context) NewRSA() (*RSA, error) + func (c *Context) TakeOwnership(srk *RSA) error + type Error struct + func (e Error) Code() ErrorCode + func (e Error) Error() string + type ErrorCode int + type NVRAM struct + Index uint32 + Permissions uint32 + Size int + func (nv *NVRAM) Create() error + func (nv *NVRAM) Destroy() error + func (nv *NVRAM) Read(out []byte) (int, error) + func (nv *NVRAM) Write(contents []byte) error + type Object struct + type Policy struct + func (p *Policy) AssignTo(o *Object) error + func (p *Policy) SetKey(key [20]byte) error + func (p *Policy) SetPassword(pw string) error + type RSA struct + func (rsa *RSA) GetPolicy() (*Policy, error)