Documentation ¶
Index ¶
- Variables
- func RegisterTpmAttestzServiceServer(s *grpc.Server, srv TpmAttestzServiceServer)
- type AttestRequest
- func (*AttestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AttestRequest) GetControlCardSelection() *common_definitions.ControlCardSelection
- func (x *AttestRequest) GetHashAlgo() Tpm20HashAlgo
- func (x *AttestRequest) GetNonce() []byte
- func (x *AttestRequest) GetPcrIndices() []int32
- func (*AttestRequest) ProtoMessage()
- func (x *AttestRequest) ProtoReflect() protoreflect.Message
- func (x *AttestRequest) Reset()
- func (x *AttestRequest) String() string
- type AttestResponse
- func (*AttestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AttestResponse) GetControlCardId() *common_definitions.ControlCardVendorId
- func (x *AttestResponse) GetOiakCert() string
- func (x *AttestResponse) GetOidevidCert() string
- func (x *AttestResponse) GetPcrValues() map[int32][]byte
- func (x *AttestResponse) GetQuoteSignature() []byte
- func (x *AttestResponse) GetQuoted() []byte
- func (*AttestResponse) ProtoMessage()
- func (x *AttestResponse) ProtoReflect() protoreflect.Message
- func (x *AttestResponse) Reset()
- func (x *AttestResponse) String() string
- type Tpm20HashAlgo
- func (Tpm20HashAlgo) Descriptor() protoreflect.EnumDescriptor
- func (x Tpm20HashAlgo) Enum() *Tpm20HashAlgo
- func (Tpm20HashAlgo) EnumDescriptor() ([]byte, []int)deprecated
- func (x Tpm20HashAlgo) Number() protoreflect.EnumNumber
- func (x Tpm20HashAlgo) String() string
- func (Tpm20HashAlgo) Type() protoreflect.EnumType
- type TpmAttestzServiceClient
- type TpmAttestzServiceServer
- type UnimplementedTpmAttestzServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Tpm20HashAlgo_name = map[int32]string{ 0: "TPM20HASH_ALGO_UNSPECIFIED", 1: "TPM20HASH_ALGO_SHA1", 2: "TPM20HASH_ALGO_SHA256", 3: "TPM20HASH_ALGO_SHA384", 4: "TPM20HASH_ALGO_SHA512", } Tpm20HashAlgo_value = map[string]int32{ "TPM20HASH_ALGO_UNSPECIFIED": 0, "TPM20HASH_ALGO_SHA1": 1, "TPM20HASH_ALGO_SHA256": 2, "TPM20HASH_ALGO_SHA384": 3, "TPM20HASH_ALGO_SHA512": 4, } )
Enum value maps for Tpm20HashAlgo.
View Source
var File_github_com_openconfig_attestz_proto_tpm_attestz_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTpmAttestzServiceServer ¶
func RegisterTpmAttestzServiceServer(s *grpc.Server, srv TpmAttestzServiceServer)
Types ¶
type AttestRequest ¶
type AttestRequest struct { ControlCardSelection *common_definitions.ControlCardSelection `protobuf:"bytes,1,opt,name=control_card_selection,json=controlCardSelection,proto3" json:"control_card_selection,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` HashAlgo Tpm20HashAlgo `protobuf:"varint,3,opt,name=hash_algo,json=hashAlgo,proto3,enum=openconfig.attestz.Tpm20HashAlgo" json:"hash_algo,omitempty"` PcrIndices []int32 `protobuf:"varint,4,rep,packed,name=pcr_indices,json=pcrIndices,proto3" json:"pcr_indices,omitempty"` // contains filtered or unexported fields }
func (*AttestRequest) Descriptor
deprecated
func (*AttestRequest) Descriptor() ([]byte, []int)
Deprecated: Use AttestRequest.ProtoReflect.Descriptor instead.
func (*AttestRequest) GetControlCardSelection ¶
func (x *AttestRequest) GetControlCardSelection() *common_definitions.ControlCardSelection
func (*AttestRequest) GetHashAlgo ¶
func (x *AttestRequest) GetHashAlgo() Tpm20HashAlgo
func (*AttestRequest) GetNonce ¶
func (x *AttestRequest) GetNonce() []byte
func (*AttestRequest) GetPcrIndices ¶
func (x *AttestRequest) GetPcrIndices() []int32
func (*AttestRequest) ProtoMessage ¶
func (*AttestRequest) ProtoMessage()
func (*AttestRequest) ProtoReflect ¶
func (x *AttestRequest) ProtoReflect() protoreflect.Message
func (*AttestRequest) Reset ¶
func (x *AttestRequest) Reset()
func (*AttestRequest) String ¶
func (x *AttestRequest) String() string
type AttestResponse ¶
type AttestResponse struct { ControlCardId *common_definitions.ControlCardVendorId `protobuf:"bytes,1,opt,name=control_card_id,json=controlCardId,proto3" json:"control_card_id,omitempty"` OiakCert string `protobuf:"bytes,2,opt,name=oiak_cert,json=oiakCert,proto3" json:"oiak_cert,omitempty"` PcrValues map[int32][]byte `` /* 177-byte string literal not displayed */ Quoted []byte `protobuf:"bytes,4,opt,name=quoted,proto3" json:"quoted,omitempty"` QuoteSignature []byte `protobuf:"bytes,5,opt,name=quote_signature,json=quoteSignature,proto3" json:"quote_signature,omitempty"` OidevidCert string `protobuf:"bytes,6,opt,name=oidevid_cert,json=oidevidCert,proto3" json:"oidevid_cert,omitempty"` // contains filtered or unexported fields }
func (*AttestResponse) Descriptor
deprecated
func (*AttestResponse) Descriptor() ([]byte, []int)
Deprecated: Use AttestResponse.ProtoReflect.Descriptor instead.
func (*AttestResponse) GetControlCardId ¶
func (x *AttestResponse) GetControlCardId() *common_definitions.ControlCardVendorId
func (*AttestResponse) GetOiakCert ¶
func (x *AttestResponse) GetOiakCert() string
func (*AttestResponse) GetOidevidCert ¶
func (x *AttestResponse) GetOidevidCert() string
func (*AttestResponse) GetPcrValues ¶
func (x *AttestResponse) GetPcrValues() map[int32][]byte
func (*AttestResponse) GetQuoteSignature ¶
func (x *AttestResponse) GetQuoteSignature() []byte
func (*AttestResponse) GetQuoted ¶
func (x *AttestResponse) GetQuoted() []byte
func (*AttestResponse) ProtoMessage ¶
func (*AttestResponse) ProtoMessage()
func (*AttestResponse) ProtoReflect ¶
func (x *AttestResponse) ProtoReflect() protoreflect.Message
func (*AttestResponse) Reset ¶
func (x *AttestResponse) Reset()
func (*AttestResponse) String ¶
func (x *AttestResponse) String() string
type Tpm20HashAlgo ¶
type Tpm20HashAlgo int32
const ( Tpm20HashAlgo_TPM20HASH_ALGO_UNSPECIFIED Tpm20HashAlgo = 0 Tpm20HashAlgo_TPM20HASH_ALGO_SHA1 Tpm20HashAlgo = 1 Tpm20HashAlgo_TPM20HASH_ALGO_SHA256 Tpm20HashAlgo = 2 Tpm20HashAlgo_TPM20HASH_ALGO_SHA384 Tpm20HashAlgo = 3 Tpm20HashAlgo_TPM20HASH_ALGO_SHA512 Tpm20HashAlgo = 4 )
func (Tpm20HashAlgo) Descriptor ¶
func (Tpm20HashAlgo) Descriptor() protoreflect.EnumDescriptor
func (Tpm20HashAlgo) Enum ¶
func (x Tpm20HashAlgo) Enum() *Tpm20HashAlgo
func (Tpm20HashAlgo) EnumDescriptor
deprecated
func (Tpm20HashAlgo) EnumDescriptor() ([]byte, []int)
Deprecated: Use Tpm20HashAlgo.Descriptor instead.
func (Tpm20HashAlgo) Number ¶
func (x Tpm20HashAlgo) Number() protoreflect.EnumNumber
func (Tpm20HashAlgo) String ¶
func (x Tpm20HashAlgo) String() string
func (Tpm20HashAlgo) Type ¶
func (Tpm20HashAlgo) Type() protoreflect.EnumType
type TpmAttestzServiceClient ¶
type TpmAttestzServiceClient interface {
Attest(ctx context.Context, in *AttestRequest, opts ...grpc.CallOption) (*AttestResponse, error)
}
TpmAttestzServiceClient is the client API for TpmAttestzService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTpmAttestzServiceClient ¶
func NewTpmAttestzServiceClient(cc grpc.ClientConnInterface) TpmAttestzServiceClient
type TpmAttestzServiceServer ¶
type TpmAttestzServiceServer interface {
Attest(context.Context, *AttestRequest) (*AttestResponse, error)
}
TpmAttestzServiceServer is the server API for TpmAttestzService service.
type UnimplementedTpmAttestzServiceServer ¶
type UnimplementedTpmAttestzServiceServer struct { }
UnimplementedTpmAttestzServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTpmAttestzServiceServer) Attest ¶
func (*UnimplementedTpmAttestzServiceServer) Attest(context.Context, *AttestRequest) (*AttestResponse, error)
Click to show internal directories.
Click to hide internal directories.