arm

package
v0.0.2412 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterRefVal

func FilterRefVal(endorsements []handler.Endorsement, key string) []handler.Endorsement

func GetPlatformReferenceIDs

func GetPlatformReferenceIDs(
	scheme string,
	tenantID string,
	claims map[string]interface{},
) ([]string, error)

func GetPublicKeyFromTA

func GetPublicKeyFromTA(scheme string, trustAnchor string) (crypto.PublicKey, error)

func GetTrustAnchorID

func GetTrustAnchorID(scheme string, tenantID string, claims psatoken.IClaims) (string, error)

func MatchPlatformConfig

func MatchPlatformConfig(scheme string, evidence platform.IClaims, endorsements []handler.Endorsement) bool

func MatchSoftware

func MatchSoftware(scheme string, evidence psatoken.IClaims, endorsements []handler.Endorsement) bool

func MustImplIDString

func MustImplIDString(c psatoken.IClaims) string

func MustInstIDString

func MustInstIDString(c psatoken.IClaims) string

func RefValLookupKey

func RefValLookupKey(schemeName, tenantID, implID string) string

func SynthKeysForPlatform

func SynthKeysForPlatform(scheme string, tenantID string,
	refVal *handler.Endorsement,
) ([]string, error)

func SynthKeysFromTrustAnchors

func SynthKeysFromTrustAnchors(scheme string, tenantID string,
	ta *handler.Endorsement,
) ([]string, error)

func TaLookupKey

func TaLookupKey(schemeName, tenantID, implID, instID string) string

Types

type CcaPlatformCfg

type CcaPlatformCfg struct {
	ImplID []byte `json:"impl-id"`
	Model  string `json:"hw-model"`
	Vendor string `json:"hw-vendor"`
	Label  string `json:"platform-config-label"`
	Value  []byte `json:"platform-config-id"`
}

type SwAttr

type SwAttr struct {
	ImplID           []byte `json:"impl-id"`
	Model            string `json:"hw-model"`
	Vendor           string `json:"hw-vendor"`
	MeasDesc         string `json:"measurement-desc"`
	MeasurementType  string `json:"measurement-type"`
	MeasurementValue []byte `json:"measurement-value"`
	SignerID         []byte `json:"signer-id"`
	Version          string `json:"version"`
}

type TaAttr

type TaAttr struct {
	Model    string `json:"hw-model"`
	Vendor   string `json:"hw-vendor"`
	VerifKey string `json:"iak-pub"`
	ImplID   []byte `json:"impl-id"`
	InstID   string `json:"inst-id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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