request

package
v0.0.0-...-cd181bd Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 0 Imported by: 14

Documentation

Overview

Package request contains constructs commonly used in the NSM request payload.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestation

type Attestation struct {
	UserData  []byte `cbor:"user_data"`
	Nonce     []byte `cbor:"nonce"`
	PublicKey []byte `cbor:"public_key"`
}

An Attestation request.

func (*Attestation) Encoded

func (r *Attestation) Encoded() interface{}

Encoded returns the Go-encoded form of the request, according to Rust's cbor serde.

type DescribeNSM

type DescribeNSM struct {
}

A DescribeNSM request.

func (*DescribeNSM) Encoded

func (r *DescribeNSM) Encoded() interface{}

Encoded returns the Go-encoded form of the request, according to Rust's cbor serde.

type DescribePCR

type DescribePCR struct {
	Index uint16 `cbor:"index"`
}

A DescribePCR request.

func (*DescribePCR) Encoded

func (r *DescribePCR) Encoded() interface{}

Encoded returns the Go-encoded form of the request, according to Rust's cbor serde.

type ExtendPCR

type ExtendPCR struct {
	Index uint16 `cbor:"index"`
	Data  []byte `cbor:"data"`
}

An ExtendPCR request.

func (*ExtendPCR) Encoded

func (r *ExtendPCR) Encoded() interface{}

Encoded returns the Go-encoded form of the request, according to Rust's cbor serde.

type GetRandom

type GetRandom struct {
}

A GetRandom request.

func (*GetRandom) Encoded

func (r *GetRandom) Encoded() interface{}

Encoded returns the Go-encoded form of the request, according to Rust's cbor serde.

type LockPCR

type LockPCR struct {
	Index uint16 `cbor:"index"`
}

A LockPCR request.

func (*LockPCR) Encoded

func (r *LockPCR) Encoded() interface{}

Encoded returns the Go-encoded form of the request, according to Rust's cbor serde.

type LockPCRs

type LockPCRs struct {
	Range uint16 `cbor:"range"`
}

A LockPCRs request.

func (*LockPCRs) Encoded

func (r *LockPCRs) Encoded() interface{}

Encoded returns the Go-encoded form of the request, according to Rust's cbor serde.

type Request

type Request interface {
	// Returns the Go-encoded form of the request, according to Rust's cbor
	// serde.
	Encoded() interface{}
}

A Request interface.

Jump to

Keyboard shortcuts

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