hwsec

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package hwsec provides gRPC service definitions for meta tests.

Index

Constants

This section is empty.

Variables

View Source
var (
	UserVerification_name = map[int32]string{
		0: "DISCOURAGED",
		1: "PREFERRED",
		2: "REQUIRED",
	}
	UserVerification_value = map[string]int32{
		"DISCOURAGED": 0,
		"PREFERRED":   1,
		"REQUIRED":    2,
	}
)

Enum value maps for UserVerification.

View Source
var (
	AuthenticatorType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "PLATFORM",
		2: "CROSS_PLATFORM",
	}
	AuthenticatorType_value = map[string]int32{
		"UNSPECIFIED":    0,
		"PLATFORM":       1,
		"CROSS_PLATFORM": 2,
	}
)

Enum value maps for AuthenticatorType.

View Source
var File_attestation_dbus_service_proto protoreflect.FileDescriptor
View Source
var File_ownership_proto protoreflect.FileDescriptor
View Source
var File_webauthn_service_proto protoreflect.FileDescriptor

Functions

func RegisterAttestationDBusServiceServer

func RegisterAttestationDBusServiceServer(s *grpc.Server, srv AttestationDBusServiceServer)

func RegisterOwnershipServiceServer

func RegisterOwnershipServiceServer(s *grpc.Server, srv OwnershipServiceServer)

func RegisterWebauthnServiceServer

func RegisterWebauthnServiceServer(s *grpc.Server, srv WebauthnServiceServer)

Types

type AttestationDBusServiceClient

type AttestationDBusServiceClient interface {
	// GetStatus returns the attestation status.
	GetStatus(ctx context.Context, in *attestation_proto.GetStatusRequest, opts ...grpc.CallOption) (*attestation_proto.GetStatusReply, error)
	// CreateEnrollRequest creates enroll request.
	CreateEnrollRequest(ctx context.Context, in *attestation_proto.CreateEnrollRequestRequest, opts ...grpc.CallOption) (*attestation_proto.CreateEnrollRequestReply, error)
	// FinishEnroll finish enroll request.
	FinishEnroll(ctx context.Context, in *attestation_proto.FinishEnrollRequest, opts ...grpc.CallOption) (*attestation_proto.FinishEnrollReply, error)
	// CreateCertificateRequest create certificate request.
	CreateCertificateRequest(ctx context.Context, in *attestation_proto.CreateCertificateRequestRequest, opts ...grpc.CallOption) (*attestation_proto.CreateCertificateRequestReply, error)
	// FinishCertificateRequest finish certificate request.
	FinishCertificateRequest(ctx context.Context, in *attestation_proto.FinishCertificateRequestRequest, opts ...grpc.CallOption) (*attestation_proto.FinishCertificateRequestReply, error)
	// SignEnterpriseChallenge sign enterprise challenge.
	SignEnterpriseChallenge(ctx context.Context, in *attestation_proto.SignEnterpriseChallengeRequest, opts ...grpc.CallOption) (*attestation_proto.SignEnterpriseChallengeReply, error)
	// SignSimpleChallenge sign simple challenge.
	SignSimpleChallenge(ctx context.Context, in *attestation_proto.SignSimpleChallengeRequest, opts ...grpc.CallOption) (*attestation_proto.SignSimpleChallengeReply, error)
	// GetKeyInfo returns the key info.
	GetKeyInfo(ctx context.Context, in *attestation_proto.GetKeyInfoRequest, opts ...grpc.CallOption) (*attestation_proto.GetKeyInfoReply, error)
	// GetEnrollmentID returns the enrollment id.
	GetEnrollmentID(ctx context.Context, in *attestation_proto.GetEnrollmentIdRequest, opts ...grpc.CallOption) (*attestation_proto.GetEnrollmentIdReply, error)
	// SetKeyPayload sets a payload for a key.
	SetKeyPayload(ctx context.Context, in *attestation_proto.SetKeyPayloadRequest, opts ...grpc.CallOption) (*attestation_proto.SetKeyPayloadReply, error)
	// RegisterKeyWithChapsToken registers the key into chaps.
	RegisterKeyWithChapsToken(ctx context.Context, in *attestation_proto.RegisterKeyWithChapsTokenRequest, opts ...grpc.CallOption) (*attestation_proto.RegisterKeyWithChapsTokenReply, error)
	// DeleteKeys delete user's keys.
	DeleteKeys(ctx context.Context, in *attestation_proto.DeleteKeysRequest, opts ...grpc.CallOption) (*attestation_proto.DeleteKeysReply, error)
}

AttestationDBusServiceClient is the client API for AttestationDBusService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AttestationDBusServiceServer

type AttestationDBusServiceServer interface {
	// GetStatus returns the attestation status.
	GetStatus(context.Context, *attestation_proto.GetStatusRequest) (*attestation_proto.GetStatusReply, error)
	// CreateEnrollRequest creates enroll request.
	CreateEnrollRequest(context.Context, *attestation_proto.CreateEnrollRequestRequest) (*attestation_proto.CreateEnrollRequestReply, error)
	// FinishEnroll finish enroll request.
	FinishEnroll(context.Context, *attestation_proto.FinishEnrollRequest) (*attestation_proto.FinishEnrollReply, error)
	// CreateCertificateRequest create certificate request.
	CreateCertificateRequest(context.Context, *attestation_proto.CreateCertificateRequestRequest) (*attestation_proto.CreateCertificateRequestReply, error)
	// FinishCertificateRequest finish certificate request.
	FinishCertificateRequest(context.Context, *attestation_proto.FinishCertificateRequestRequest) (*attestation_proto.FinishCertificateRequestReply, error)
	// SignEnterpriseChallenge sign enterprise challenge.
	SignEnterpriseChallenge(context.Context, *attestation_proto.SignEnterpriseChallengeRequest) (*attestation_proto.SignEnterpriseChallengeReply, error)
	// SignSimpleChallenge sign simple challenge.
	SignSimpleChallenge(context.Context, *attestation_proto.SignSimpleChallengeRequest) (*attestation_proto.SignSimpleChallengeReply, error)
	// GetKeyInfo returns the key info.
	GetKeyInfo(context.Context, *attestation_proto.GetKeyInfoRequest) (*attestation_proto.GetKeyInfoReply, error)
	// GetEnrollmentID returns the enrollment id.
	GetEnrollmentID(context.Context, *attestation_proto.GetEnrollmentIdRequest) (*attestation_proto.GetEnrollmentIdReply, error)
	// SetKeyPayload sets a payload for a key.
	SetKeyPayload(context.Context, *attestation_proto.SetKeyPayloadRequest) (*attestation_proto.SetKeyPayloadReply, error)
	// RegisterKeyWithChapsToken registers the key into chaps.
	RegisterKeyWithChapsToken(context.Context, *attestation_proto.RegisterKeyWithChapsTokenRequest) (*attestation_proto.RegisterKeyWithChapsTokenReply, error)
	// DeleteKeys delete user's keys.
	DeleteKeys(context.Context, *attestation_proto.DeleteKeysRequest) (*attestation_proto.DeleteKeysReply, error)
}

AttestationDBusServiceServer is the server API for AttestationDBusService service.

type AuthenticatorType

type AuthenticatorType int32
const (
	AuthenticatorType_UNSPECIFIED    AuthenticatorType = 0
	AuthenticatorType_PLATFORM       AuthenticatorType = 1
	AuthenticatorType_CROSS_PLATFORM AuthenticatorType = 2
)

func (AuthenticatorType) Descriptor

func (AuthenticatorType) Enum

func (AuthenticatorType) EnumDescriptor deprecated

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

Deprecated: Use AuthenticatorType.Descriptor instead.

func (AuthenticatorType) Number

func (AuthenticatorType) String

func (x AuthenticatorType) String() string

func (AuthenticatorType) Type

type EnterPasswordRequest

type EnterPasswordRequest struct {
	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*EnterPasswordRequest) Descriptor deprecated

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

Deprecated: Use EnterPasswordRequest.ProtoReflect.Descriptor instead.

func (*EnterPasswordRequest) GetPassword

func (x *EnterPasswordRequest) GetPassword() string

func (*EnterPasswordRequest) ProtoMessage

func (*EnterPasswordRequest) ProtoMessage()

func (*EnterPasswordRequest) ProtoReflect

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

func (*EnterPasswordRequest) Reset

func (x *EnterPasswordRequest) Reset()

func (*EnterPasswordRequest) String

func (x *EnterPasswordRequest) String() string

type NewRequest

type NewRequest struct {
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*NewRequest) Descriptor deprecated

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

Deprecated: Use NewRequest.ProtoReflect.Descriptor instead.

func (*NewRequest) GetPassword

func (x *NewRequest) GetPassword() string

func (*NewRequest) GetUsername

func (x *NewRequest) GetUsername() string

func (*NewRequest) ProtoMessage

func (*NewRequest) ProtoMessage()

func (*NewRequest) ProtoReflect

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

func (*NewRequest) Reset

func (x *NewRequest) Reset()

func (*NewRequest) String

func (x *NewRequest) String() string

type OwnershipServiceClient

type OwnershipServiceClient interface {
	EnsureTPMIsReset(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	EnsureTPMAndSystemStateAreReset(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}

OwnershipServiceClient is the client API for OwnershipService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type OwnershipServiceServer

type OwnershipServiceServer interface {
	EnsureTPMIsReset(context.Context, *empty.Empty) (*empty.Empty, error)
	EnsureTPMAndSystemStateAreReset(context.Context, *empty.Empty) (*empty.Empty, error)
}

OwnershipServiceServer is the server API for OwnershipService service.

type StartWebauthnRequest

type StartWebauthnRequest struct {
	UserVerification  UserVerification  `` /* 148-byte string literal not displayed */
	AuthenticatorType AuthenticatorType `` /* 152-byte string literal not displayed */
	HasDialog         bool              `protobuf:"varint,3,opt,name=has_dialog,json=hasDialog,proto3" json:"has_dialog,omitempty"`
	// contains filtered or unexported fields
}

func (*StartWebauthnRequest) Descriptor deprecated

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

Deprecated: Use StartWebauthnRequest.ProtoReflect.Descriptor instead.

func (*StartWebauthnRequest) GetAuthenticatorType

func (x *StartWebauthnRequest) GetAuthenticatorType() AuthenticatorType

func (*StartWebauthnRequest) GetHasDialog

func (x *StartWebauthnRequest) GetHasDialog() bool

func (*StartWebauthnRequest) GetUserVerification

func (x *StartWebauthnRequest) GetUserVerification() UserVerification

func (*StartWebauthnRequest) ProtoMessage

func (*StartWebauthnRequest) ProtoMessage()

func (*StartWebauthnRequest) ProtoReflect

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

func (*StartWebauthnRequest) Reset

func (x *StartWebauthnRequest) Reset()

func (*StartWebauthnRequest) String

func (x *StartWebauthnRequest) String() string

type UnimplementedAttestationDBusServiceServer

type UnimplementedAttestationDBusServiceServer struct {
}

UnimplementedAttestationDBusServiceServer can be embedded to have forward compatible implementations.

type UnimplementedOwnershipServiceServer

type UnimplementedOwnershipServiceServer struct {
}

UnimplementedOwnershipServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedOwnershipServiceServer) EnsureTPMAndSystemStateAreReset

func (*UnimplementedOwnershipServiceServer) EnsureTPMAndSystemStateAreReset(context.Context, *empty.Empty) (*empty.Empty, error)

func (*UnimplementedOwnershipServiceServer) EnsureTPMIsReset

type UnimplementedWebauthnServiceServer

type UnimplementedWebauthnServiceServer struct {
}

UnimplementedWebauthnServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedWebauthnServiceServer) CheckGetAssertion

func (*UnimplementedWebauthnServiceServer) CheckMakeCredential

func (*UnimplementedWebauthnServiceServer) Close

func (*UnimplementedWebauthnServiceServer) EndWebauthn

func (*UnimplementedWebauthnServiceServer) EnterPassword

func (*UnimplementedWebauthnServiceServer) New

func (*UnimplementedWebauthnServiceServer) StartGetAssertion

func (*UnimplementedWebauthnServiceServer) StartMakeCredential

func (*UnimplementedWebauthnServiceServer) StartWebauthn

type UserVerification

type UserVerification int32
const (
	UserVerification_DISCOURAGED UserVerification = 0
	UserVerification_PREFERRED   UserVerification = 1
	UserVerification_REQUIRED    UserVerification = 2
)

func (UserVerification) Descriptor

func (UserVerification) Enum

func (UserVerification) EnumDescriptor deprecated

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

Deprecated: Use UserVerification.Descriptor instead.

func (UserVerification) Number

func (UserVerification) String

func (x UserVerification) String() string

func (UserVerification) Type

type WebauthnServiceClient

type WebauthnServiceClient interface {
	// New logs into a Chrome session as a fake user. Close must be called later
	// to clean up the associated resources.
	New(ctx context.Context, in *NewRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Close releases the resources obtained by New.
	Close(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	StartWebauthn(ctx context.Context, in *StartWebauthnRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	EndWebauthn(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	StartMakeCredential(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	CheckMakeCredential(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	StartGetAssertion(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	CheckGetAssertion(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	EnterPassword(ctx context.Context, in *EnterPasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

WebauthnServiceClient is the client API for WebauthnService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type WebauthnServiceServer

type WebauthnServiceServer interface {
	// New logs into a Chrome session as a fake user. Close must be called later
	// to clean up the associated resources.
	New(context.Context, *NewRequest) (*empty.Empty, error)
	// Close releases the resources obtained by New.
	Close(context.Context, *empty.Empty) (*empty.Empty, error)
	StartWebauthn(context.Context, *StartWebauthnRequest) (*empty.Empty, error)
	EndWebauthn(context.Context, *empty.Empty) (*empty.Empty, error)
	StartMakeCredential(context.Context, *empty.Empty) (*empty.Empty, error)
	CheckMakeCredential(context.Context, *empty.Empty) (*empty.Empty, error)
	StartGetAssertion(context.Context, *empty.Empty) (*empty.Empty, error)
	CheckGetAssertion(context.Context, *empty.Empty) (*empty.Empty, error)
	EnterPassword(context.Context, *EnterPasswordRequest) (*empty.Empty, error)
}

WebauthnServiceServer is the server API for WebauthnService service.

Jump to

Keyboard shortcuts

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