tpm

package
v0.0.0-...-f44e450 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const EV_ACTION = 5
View Source
const EV_COMPACT_HASH = 12
View Source
const EV_CPU_MICROCODE = 9
View Source
const EV_EFI_ACTION = 2147483655
View Source
const EV_EFI_BOOT_SERVICES_APPLICATION = 2147483651
View Source
const EV_EFI_BOOT_SERVICES_DRIVER = 2147483652
View Source
const EV_EFI_EVENT_BASE = 2147483648
View Source
const EV_EFI_GPT_EVENT = 2147483654
View Source
const EV_EFI_HANDOFF_TABLES = 2147483657
View Source
const EV_EFI_HCRTM_EVENT = 2147483664
View Source
const EV_EFI_PLATFORM_FIRMWARE_BLOB = 2147483656
View Source
const EV_EFI_RUNTIME_SERVICES_DRIVER = 2147483653
View Source
const EV_EFI_VARIABLE_AUTHORITY = 2147483872
View Source
const EV_EFI_VARIABLE_BOOT = 2147483650
View Source
const EV_EFI_VARIABLE_DRIVER_CONFIG = 2147483649
View Source
const EV_EVENT_TAG = 6
View Source
const EV_IPL = 13
View Source
const EV_IPL_PARTITION_DATA = 14
View Source
const EV_NONHOST_CODE = 15
View Source
const EV_NONHOST_CONFIG = 16
View Source
const EV_NONHOST_INFO = 17
View Source
const EV_NO_ACTION = 3
View Source
const EV_OMIT_BOOT_DEVICE_EVENTS = 18
View Source
const EV_PLATFORM_CONFIG_FLAGS = 10
View Source
const EV_POST_CODE = 1
View Source
const EV_PREBOOT_CERT = 0
View Source
const EV_SEPARATOR = 4
View Source
const EV_S_CRTM_CONTENTS = 7
View Source
const EV_S_CRTM_VERSION = 8
View Source
const EV_TABLE_OF_DEVICES = 11
View Source
const EV_UNUSED = 2

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type Algo

type Algo int64
const (
	Algo_Error   Algo = 0
	Algo_RSA     Algo = 1
	Algo_SHA1    Algo = 4
	Algo_SHA256  Algo = 11
	Algo_SHA384  Algo = 12
	Algo_SHA512  Algo = 13
	Algo_NULL_   Algo = 16
	Algo_SM3_256 Algo = 18
	Algo_SM4     Algo = 19
	Algo_RSASSA  Algo = 20
	Algo_ECDSA   Algo = 24
	Algo_SM2     Algo = 27
	Algo_KDF2    Algo = 33
	Algo_ECC     Algo = 35
)

func AlgoFromString

func AlgoFromString(s string) (Algo, error)

func AlgoPtr

func AlgoPtr(v Algo) *Algo

func (Algo) MarshalText

func (p Algo) MarshalText() ([]byte, error)

func (*Algo) Scan

func (p *Algo) Scan(value interface{}) error

func (Algo) String

func (p Algo) String() string

func (*Algo) UnmarshalText

func (p *Algo) UnmarshalText(text []byte) error

func (*Algo) Value

func (p *Algo) Value() (driver.Value, error)

type Digest_

type Digest_ struct {
	HashAlgo Algo   `thrift:"HashAlgo,1" db:"HashAlgo" json:"HashAlgo"`
	Digest   []byte `thrift:"Digest,2" db:"Digest" json:"Digest"`
}

Attributes:

  • HashAlgo
  • Digest
var Event_Digest_DEFAULT *Digest_

func NewDigest_

func NewDigest_() *Digest_

func (*Digest_) Equals

func (p *Digest_) Equals(other *Digest_) bool

func (*Digest_) GetDigest

func (p *Digest_) GetDigest() []byte

func (*Digest_) GetHashAlgo

func (p *Digest_) GetHashAlgo() Algo

func (*Digest_) Read

func (p *Digest_) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Digest_) ReadField1

func (p *Digest_) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*Digest_) ReadField2

func (p *Digest_) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*Digest_) String

func (p *Digest_) String() string

func (*Digest_) Write

func (p *Digest_) Write(ctx context.Context, oprot thrift.TProtocol) error

type Event

type Event struct {
	PCRIndex int8     `thrift:"PCRIndex,1" db:"PCRIndex" json:"PCRIndex"`
	Type     int32    `thrift:"Type,2" db:"Type" json:"Type"`
	Data     []byte   `thrift:"Data,3" db:"Data" json:"Data"`
	Digest   *Digest_ `thrift:"Digest,4" db:"Digest" json:"Digest"`
}

Attributes:

  • PCRIndex
  • Type
  • Data
  • Digest

func NewEvent

func NewEvent() *Event

func (*Event) Equals

func (p *Event) Equals(other *Event) bool

func (*Event) GetData

func (p *Event) GetData() []byte

func (*Event) GetDigest

func (p *Event) GetDigest() *Digest_

func (*Event) GetPCRIndex

func (p *Event) GetPCRIndex() int8

func (*Event) GetType

func (p *Event) GetType() int32

func (*Event) IsSetDigest

func (p *Event) IsSetDigest() bool

func (*Event) Read

func (p *Event) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Event) ReadField1

func (p *Event) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*Event) ReadField2

func (p *Event) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*Event) ReadField3

func (p *Event) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*Event) ReadField4

func (p *Event) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*Event) String

func (p *Event) String() string

func (*Event) Write

func (p *Event) Write(ctx context.Context, oprot thrift.TProtocol) error

type EventLog

type EventLog struct {
	Events []*Event `thrift:"Events,1" db:"Events" json:"Events"`
}

Attributes:

  • Events

func NewEventLog

func NewEventLog() *EventLog

func (*EventLog) Equals

func (p *EventLog) Equals(other *EventLog) bool

func (*EventLog) GetEvents

func (p *EventLog) GetEvents() []*Event

func (*EventLog) Read

func (p *EventLog) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*EventLog) ReadField1

func (p *EventLog) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*EventLog) String

func (p *EventLog) String() string

func (*EventLog) Write

func (p *EventLog) Write(ctx context.Context, oprot thrift.TProtocol) error

type Version

type Version struct {
	Major int8 `thrift:"Major,1" db:"Major" json:"Major"`
	Minor int8 `thrift:"Minor,2" db:"Minor" json:"Minor"`
}

Attributes:

  • Major
  • Minor

func NewVersion

func NewVersion() *Version

func (*Version) Equals

func (p *Version) Equals(other *Version) bool

func (*Version) GetMajor

func (p *Version) GetMajor() int8

func (*Version) GetMinor

func (p *Version) GetMinor() int8

func (*Version) Read

func (p *Version) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Version) ReadField1

func (p *Version) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*Version) ReadField2

func (p *Version) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*Version) String

func (p *Version) String() string

func (*Version) Write

func (p *Version) Write(ctx context.Context, oprot thrift.TProtocol) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL