tpmwrappb

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Secret_KeyType_name = map[int32]string{
		0: "SEALED",
		1: "DUPLICATE",
	}
	Secret_KeyType_value = map[string]int32{
		"SEALED":    0,
		"DUPLICATE": 1,
	}
)

Enum value maps for Secret_KeyType.

View Source
var File_tpmwrappb_wrap_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DuplicatedKey

type DuplicatedKey struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Kek     []byte `protobuf:"bytes,2,opt,name=kek,proto3" json:"kek,omitempty"`
	Iv      []byte `protobuf:"bytes,3,opt,name=iv,proto3" json:"iv,omitempty"`
	EkPub   []byte `protobuf:"bytes,4,opt,name=ekPub,proto3" json:"ekPub,omitempty"`
	DupPub  []byte `protobuf:"bytes,5,opt,name=dupPub,proto3" json:"dupPub,omitempty"`
	DupDup  []byte `protobuf:"bytes,6,opt,name=dupDup,proto3" json:"dupDup,omitempty"`
	DupSeed []byte `protobuf:"bytes,7,opt,name=dupSeed,proto3" json:"dupSeed,omitempty"`
	// contains filtered or unexported fields
}

func (*DuplicatedKey) Descriptor deprecated

func (*DuplicatedKey) Descriptor() ([]byte, []int)

Deprecated: Use DuplicatedKey.ProtoReflect.Descriptor instead.

func (*DuplicatedKey) GetDupDup

func (x *DuplicatedKey) GetDupDup() []byte

func (*DuplicatedKey) GetDupPub

func (x *DuplicatedKey) GetDupPub() []byte

func (*DuplicatedKey) GetDupSeed

func (x *DuplicatedKey) GetDupSeed() []byte

func (*DuplicatedKey) GetEkPub

func (x *DuplicatedKey) GetEkPub() []byte

func (*DuplicatedKey) GetIv

func (x *DuplicatedKey) GetIv() []byte

func (*DuplicatedKey) GetKek

func (x *DuplicatedKey) GetKek() []byte

func (*DuplicatedKey) GetName

func (x *DuplicatedKey) GetName() string

func (*DuplicatedKey) ProtoMessage

func (*DuplicatedKey) ProtoMessage()

func (*DuplicatedKey) ProtoReflect

func (x *DuplicatedKey) ProtoReflect() protoreflect.Message

func (*DuplicatedKey) Reset

func (x *DuplicatedKey) Reset()

func (*DuplicatedKey) String

func (x *DuplicatedKey) String() string

type PCRS

type PCRS struct {
	Pcr   int32  `protobuf:"varint,1,opt,name=pcr,proto3" json:"pcr,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PCRS) Descriptor deprecated

func (*PCRS) Descriptor() ([]byte, []int)

Deprecated: Use PCRS.ProtoReflect.Descriptor instead.

func (*PCRS) GetPcr

func (x *PCRS) GetPcr() int32

func (*PCRS) GetValue

func (x *PCRS) GetValue() []byte

func (*PCRS) ProtoMessage

func (*PCRS) ProtoMessage()

func (*PCRS) ProtoReflect

func (x *PCRS) ProtoReflect() protoreflect.Message

func (*PCRS) Reset

func (x *PCRS) Reset()

func (*PCRS) String

func (x *PCRS) String() string

type SealedKey

type SealedKey struct {
	Keyfile []byte `protobuf:"bytes,1,opt,name=keyfile,proto3" json:"keyfile,omitempty"`
	// contains filtered or unexported fields
}

func (*SealedKey) Descriptor deprecated

func (*SealedKey) Descriptor() ([]byte, []int)

Deprecated: Use SealedKey.ProtoReflect.Descriptor instead.

func (*SealedKey) GetKeyfile

func (x *SealedKey) GetKeyfile() []byte

func (*SealedKey) ProtoMessage

func (*SealedKey) ProtoMessage()

func (*SealedKey) ProtoReflect

func (x *SealedKey) ProtoReflect() protoreflect.Message

func (*SealedKey) Reset

func (x *SealedKey) Reset()

func (*SealedKey) String

func (x *SealedKey) String() string

type Secret

type Secret struct {
	Name     string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type     Secret_KeyType `protobuf:"varint,2,opt,name=type,proto3,enum=tpmwrappb.Secret_KeyType" json:"type,omitempty"`
	UserAuth bool           `protobuf:"varint,3,opt,name=userAuth,proto3" json:"userAuth,omitempty"`
	Pcrs     []*PCRS        `protobuf:"bytes,4,rep,name=pcrs,proto3" json:"pcrs,omitempty"`
	// Types that are assignable to Key:
	//
	//	*Secret_SealedOp
	//	*Secret_DuplicatedOp
	Key isSecret_Key `protobuf_oneof:"Key"`
	// contains filtered or unexported fields
}

func (*Secret) Descriptor deprecated

func (*Secret) Descriptor() ([]byte, []int)

Deprecated: Use Secret.ProtoReflect.Descriptor instead.

func (*Secret) GetDuplicatedOp

func (x *Secret) GetDuplicatedOp() *DuplicatedKey

func (*Secret) GetKey

func (m *Secret) GetKey() isSecret_Key

func (*Secret) GetName

func (x *Secret) GetName() string

func (*Secret) GetPcrs

func (x *Secret) GetPcrs() []*PCRS

func (*Secret) GetSealedOp

func (x *Secret) GetSealedOp() *SealedKey

func (*Secret) GetType

func (x *Secret) GetType() Secret_KeyType

func (*Secret) GetUserAuth

func (x *Secret) GetUserAuth() bool

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) ProtoReflect

func (x *Secret) ProtoReflect() protoreflect.Message

func (*Secret) Reset

func (x *Secret) Reset()

func (*Secret) String

func (x *Secret) String() string

type Secret_DuplicatedOp

type Secret_DuplicatedOp struct {
	DuplicatedOp *DuplicatedKey `protobuf:"bytes,6,opt,name=duplicated_op,json=duplicatedOp,proto3,oneof"`
}

type Secret_KeyType

type Secret_KeyType int32
const (
	Secret_SEALED    Secret_KeyType = 0
	Secret_DUPLICATE Secret_KeyType = 1
)

func (Secret_KeyType) Descriptor

func (Secret_KeyType) Enum

func (x Secret_KeyType) Enum() *Secret_KeyType

func (Secret_KeyType) EnumDescriptor deprecated

func (Secret_KeyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Secret_KeyType.Descriptor instead.

func (Secret_KeyType) Number

func (Secret_KeyType) String

func (x Secret_KeyType) String() string

func (Secret_KeyType) Type

type Secret_SealedOp

type Secret_SealedOp struct {
	SealedOp *SealedKey `protobuf:"bytes,5,opt,name=sealed_op,json=sealedOp,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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