attest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attest

func Attest(attestation []byte, rootCert *x509.Certificate) (*AttestationDoc, *AttestationUserData, error)

func GetRootAWSCert

func GetRootAWSCert() (*x509.Certificate, error)

Types

type AttestationDoc

type AttestationDoc struct {
	ModuleID    string `cbor:"module_id"`
	Timestamp   uint64
	Digest      string
	PCRs        map[int][]byte
	Certificate []byte
	Cabundle    [][]byte
	PublicKey   []byte `cbor:"public_key"`
	UserData    []byte `cbor:"user_data"`
}

type AttestationUserData

type AttestationUserData struct {
	FuncHash      []byte `json:"func_hash"`
	KeyPolicyHash []byte `json:"key_policy_hash"`
	CapeKey       []byte `json:"key"`
}

Jump to

Keyboard shortcuts

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