tpm

package
v0.1.0-alpha13 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeEK

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

func GetPubHash

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

Types

type AttestationData

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

type AuthServer

type AuthServer struct {
	// contains filtered or unexported fields
}

func New

func New(clients *clients.Clients) *AuthServer

func (*AuthServer) Authenticate

func (a *AuthServer) Authenticate(resp http.ResponseWriter, req *http.Request, registerNamespace string) (*v1.MachineInventory, bool, io.WriteCloser, error)

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