tcb

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validity

type Validity uint

Validity is the validity of a TCB level.

const (
	// ValidityInvalid means the TCB level is invalid, but may have been accepted.
	ValidityInvalid Validity = iota
	// ValidityConditional means the TCB level may be considered valid (e.g., SWHardeningNeeded).
	ValidityConditional
	// ValidityUnconditional means the TCB level is valid unconditionally (e.g., UpToDate).
	ValidityUnconditional
)

func CheckStatus

func CheckStatus(status tcbstatus.Status, tcbErr error, accepted []string) (Validity, error)

CheckStatus checks the TCB status and returns the validity of the TCB level. It returns an error if the TCB level is invalid and the status isn't accepted.

Jump to

Keyboard shortcuts

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