common

package
v0.0.0-...-db34ce0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName = "tpm"
)

Variables

This section is empty.

Functions

func AgentID

func AgentID(trustDomain string, pubHash string) string

func DecodeEK

func DecodeEK(pemBytes []byte) (*attest.EK, error)

func EncodeEK

func EncodeEK(ek *attest.EK) ([]byte, error)

func GetPubHash

func GetPubHash(ek *attest.EK) (string, error)

Types

type AttestationData

type AttestationData struct {
	EK []byte
	AK *attest.AttestationParameters
}

type Challenge

type Challenge struct {
	EC *attest.EncryptedCredential
}

type ChallengeResponse

type ChallengeResponse struct {
	Secret []byte
}

type KeyData

type KeyData struct {
	Keys []string `json:"keys"`
}

Jump to

Keyboard shortcuts

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