helpers

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertUserInputPCR

func ConvertUserInputPCR(pcr0SHA string) ([]byte, error)

ConvertUserInputPCR tries to convert user-provided PCR hash value into a sequence of bytes

func DeserialiseThrift

func DeserialiseThrift(
	ctx context.Context,
	b []byte,
	out thrift.TStruct,
) error

DeserialiseThrift deserializes a Thrift structure from its binary form.

func FirmwarewandOptions

func FirmwarewandOptions(addrs string) []firmwarewand.Option

FirmwarewandOptions returns firmwarewand.Option-s should be use to initialize firmwarewand in afascli/cmd/ verbs.

func ParseRegisters

func ParseRegisters(registersPath string) (registers.Registers, error)

ParseRegisters parses status register given the path.

func ParseTPMEventlog

func ParseTPMEventlog(eventLogPath string) (*tpmeventlog.TPMEventLog, error)

ParseTPMEventlog tries to path TPM eventlog located in provided path

func SerialiseThrift

func SerialiseThrift(
	ctx context.Context,
	in thrift.TStruct,
) ([]byte, error)

SerialiseThrift serializes a Thrift structure into its binary form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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