tpm

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTPMSeed added in v1.3.0

func GetTPMSeed(reg elementalv1.Registration, usePreviousSeed bool, previousSeed int64) int64

Types

type AttestationChannel added in v0.5.0

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

func (*AttestationChannel) Read added in v0.5.0

func (att *AttestationChannel) Read(p []byte) (int, error)

func (*AttestationChannel) Write added in v0.5.0

func (att *AttestationChannel) Write(p []byte) (int, error)

type AuthClient added in v0.5.0

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

func NewAuthClient added in v1.3.0

func NewAuthClient(seed int64) *AuthClient

func (*AuthClient) Authenticate added in v1.1.3

func (auth *AuthClient) Authenticate(conn *websocket.Conn) error

func (*AuthClient) GetName added in v1.1.3

func (auth *AuthClient) GetName() string

func (*AuthClient) GetPubHash added in v1.1.3

func (auth *AuthClient) GetPubHash() (string, error)

func (*AuthClient) GetToken added in v1.1.3

func (auth *AuthClient) GetToken() (string, error)

func (*AuthClient) Init added in v0.5.0

func (auth *AuthClient) Init(reg elementalv1.Registration) error

type AuthServer

type AuthServer struct {
	context.Context
	client.Client
}

func New

func New(ctx context.Context, cl client.Client) *AuthServer

func (*AuthServer) Authenticate

func (a *AuthServer) Authenticate(conn *websocket.Conn, req *http.Request, registerNamespace string) (*elementalv1.MachineInventory, bool, error)

Jump to

Keyboard shortcuts

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