cmc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDrivers

func GetDrivers() map[string]ar.Driver

func GetMetadata

func GetMetadata(paths []string, cache string) ([][]byte, ar.Serializer, error)

func GetPolicyEngines

func GetPolicyEngines() map[string]ar.PolicyEngineSelect

Types

type Cmc

type Cmc struct {
	Metadata           [][]byte
	PolicyEngineSelect ar.PolicyEngineSelect
	Drivers            []ar.Driver
	Serializer         ar.Serializer
	Network            string
	IntelStorage       string
}

func NewCmc

func NewCmc(c *Config) (*Cmc, error)

type Config

type Config struct {
	Addr           string   `json:"addr"`
	ProvServerAddr string   `json:"provServerAddr"`
	Metadata       []string `json:"metadata"`
	Drivers        []string `json:"drivers"`                // TPM, SNP
	UseIma         bool     `json:"useIma"`                 // TRUE, FALSE
	ImaPcr         int      `json:"imaPcr"`                 // 10-15
	KeyConfig      string   `json:"keyConfig,omitempty"`    // RSA2048 RSA4096 EC256 EC384 EC521
	Api            string   `json:"api"`                    // gRPC, CoAP, Socket
	Network        string   `json:"network,omitempty"`      // unix, socket
	PolicyEngine   string   `json:"policyEngine,omitempty"` // JS, DUKTAPE
	LogLevel       string   `json:"logLevel,omitempty"`
	Storage        string   `json:"storage,omitempty"`
	Cache          string   `json:"cache,omitempty"`
	MeasurementLog bool     `json:"measurementLog,omitempty"`
}

Jump to

Keyboard shortcuts

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