Add complete transit engine supporting symmetric encryption (AES-256-GCM, XChaCha20-Poly1305), asymmetric signing (Ed25519, ECDSA P-256/P-384), and HMAC (SHA-256/SHA-512) with versioned key rotation, min decryption version enforcement, key trimming, batch operations, and rewrap. Includes proto definitions, gRPC handlers, REST routes, and comprehensive tests covering all 18 operations, auth enforcement, and edge cases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2198 lines
70 KiB
Go
2198 lines
70 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.20.3
|
|
// source: proto/metacrypt/v2/transit.proto
|
|
|
|
package metacryptv2
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type CreateTransitKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
// type is the key algorithm: aes256-gcm, chacha20-poly, ed25519,
|
|
// ecdsa-p256, ecdsa-p384, hmac-sha256, hmac-sha512.
|
|
// Defaults to aes256-gcm if empty.
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateTransitKeyRequest) Reset() {
|
|
*x = CreateTransitKeyRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateTransitKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateTransitKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateTransitKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateTransitKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateTransitKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateTransitKeyRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateTransitKeyRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateTransitKeyRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateTransitKeyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateTransitKeyResponse) Reset() {
|
|
*x = CreateTransitKeyResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateTransitKeyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateTransitKeyResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateTransitKeyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateTransitKeyResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateTransitKeyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateTransitKeyResponse) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateTransitKeyResponse) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateTransitKeyResponse) GetVersion() int32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteTransitKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteTransitKeyRequest) Reset() {
|
|
*x = DeleteTransitKeyRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteTransitKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteTransitKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteTransitKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteTransitKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteTransitKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DeleteTransitKeyRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteTransitKeyRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteTransitKeyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteTransitKeyResponse) Reset() {
|
|
*x = DeleteTransitKeyResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteTransitKeyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteTransitKeyResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteTransitKeyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteTransitKeyResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteTransitKeyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type GetTransitKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetTransitKeyRequest) Reset() {
|
|
*x = GetTransitKeyRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetTransitKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetTransitKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *GetTransitKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetTransitKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetTransitKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GetTransitKeyRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetTransitKeyRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetTransitKeyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
CurrentVersion int32 `protobuf:"varint,3,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
|
|
MinDecryptionVersion int32 `protobuf:"varint,4,opt,name=min_decryption_version,json=minDecryptionVersion,proto3" json:"min_decryption_version,omitempty"`
|
|
AllowDeletion bool `protobuf:"varint,5,opt,name=allow_deletion,json=allowDeletion,proto3" json:"allow_deletion,omitempty"`
|
|
Versions []int32 `protobuf:"varint,6,rep,packed,name=versions,proto3" json:"versions,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetTransitKeyResponse) Reset() {
|
|
*x = GetTransitKeyResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetTransitKeyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetTransitKeyResponse) ProtoMessage() {}
|
|
|
|
func (x *GetTransitKeyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetTransitKeyResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetTransitKeyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *GetTransitKeyResponse) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetTransitKeyResponse) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetTransitKeyResponse) GetCurrentVersion() int32 {
|
|
if x != nil {
|
|
return x.CurrentVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetTransitKeyResponse) GetMinDecryptionVersion() int32 {
|
|
if x != nil {
|
|
return x.MinDecryptionVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetTransitKeyResponse) GetAllowDeletion() bool {
|
|
if x != nil {
|
|
return x.AllowDeletion
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetTransitKeyResponse) GetVersions() []int32 {
|
|
if x != nil {
|
|
return x.Versions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListTransitKeysRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListTransitKeysRequest) Reset() {
|
|
*x = ListTransitKeysRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListTransitKeysRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListTransitKeysRequest) ProtoMessage() {}
|
|
|
|
func (x *ListTransitKeysRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListTransitKeysRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListTransitKeysRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListTransitKeysRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListTransitKeysResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListTransitKeysResponse) Reset() {
|
|
*x = ListTransitKeysResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListTransitKeysResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListTransitKeysResponse) ProtoMessage() {}
|
|
|
|
func (x *ListTransitKeysResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListTransitKeysResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListTransitKeysResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ListTransitKeysResponse) GetKeys() []string {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RotateTransitKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RotateTransitKeyRequest) Reset() {
|
|
*x = RotateTransitKeyRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RotateTransitKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RotateTransitKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *RotateTransitKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RotateTransitKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*RotateTransitKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *RotateTransitKeyRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RotateTransitKeyRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RotateTransitKeyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RotateTransitKeyResponse) Reset() {
|
|
*x = RotateTransitKeyResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RotateTransitKeyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RotateTransitKeyResponse) ProtoMessage() {}
|
|
|
|
func (x *RotateTransitKeyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RotateTransitKeyResponse.ProtoReflect.Descriptor instead.
|
|
func (*RotateTransitKeyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *RotateTransitKeyResponse) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RotateTransitKeyResponse) GetVersion() int32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateTransitKeyConfigRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
MinDecryptionVersion int32 `protobuf:"varint,3,opt,name=min_decryption_version,json=minDecryptionVersion,proto3" json:"min_decryption_version,omitempty"`
|
|
AllowDeletion bool `protobuf:"varint,4,opt,name=allow_deletion,json=allowDeletion,proto3" json:"allow_deletion,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateTransitKeyConfigRequest) Reset() {
|
|
*x = UpdateTransitKeyConfigRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateTransitKeyConfigRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateTransitKeyConfigRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateTransitKeyConfigRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateTransitKeyConfigRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateTransitKeyConfigRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *UpdateTransitKeyConfigRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateTransitKeyConfigRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateTransitKeyConfigRequest) GetMinDecryptionVersion() int32 {
|
|
if x != nil {
|
|
return x.MinDecryptionVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateTransitKeyConfigRequest) GetAllowDeletion() bool {
|
|
if x != nil {
|
|
return x.AllowDeletion
|
|
}
|
|
return false
|
|
}
|
|
|
|
type UpdateTransitKeyConfigResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateTransitKeyConfigResponse) Reset() {
|
|
*x = UpdateTransitKeyConfigResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateTransitKeyConfigResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateTransitKeyConfigResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateTransitKeyConfigResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateTransitKeyConfigResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateTransitKeyConfigResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
type TrimTransitKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TrimTransitKeyRequest) Reset() {
|
|
*x = TrimTransitKeyRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TrimTransitKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TrimTransitKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *TrimTransitKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TrimTransitKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*TrimTransitKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *TrimTransitKeyRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TrimTransitKeyRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TrimTransitKeyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Trimmed int32 `protobuf:"varint,1,opt,name=trimmed,proto3" json:"trimmed,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TrimTransitKeyResponse) Reset() {
|
|
*x = TrimTransitKeyResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TrimTransitKeyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TrimTransitKeyResponse) ProtoMessage() {}
|
|
|
|
func (x *TrimTransitKeyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TrimTransitKeyResponse.ProtoReflect.Descriptor instead.
|
|
func (*TrimTransitKeyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *TrimTransitKeyResponse) GetTrimmed() int32 {
|
|
if x != nil {
|
|
return x.Trimmed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TransitEncryptRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
// plaintext is base64-encoded data to encrypt.
|
|
Plaintext string `protobuf:"bytes,3,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
|
|
// context is optional base64-encoded additional authenticated data (AAD).
|
|
Context string `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitEncryptRequest) Reset() {
|
|
*x = TransitEncryptRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitEncryptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitEncryptRequest) ProtoMessage() {}
|
|
|
|
func (x *TransitEncryptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitEncryptRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransitEncryptRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *TransitEncryptRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitEncryptRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitEncryptRequest) GetPlaintext() string {
|
|
if x != nil {
|
|
return x.Plaintext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitEncryptRequest) GetContext() string {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitEncryptResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ciphertext in format "metacrypt:v{version}:{base64(nonce+ciphertext+tag)}"
|
|
Ciphertext string `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitEncryptResponse) Reset() {
|
|
*x = TransitEncryptResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitEncryptResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitEncryptResponse) ProtoMessage() {}
|
|
|
|
func (x *TransitEncryptResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitEncryptResponse.ProtoReflect.Descriptor instead.
|
|
func (*TransitEncryptResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *TransitEncryptResponse) GetCiphertext() string {
|
|
if x != nil {
|
|
return x.Ciphertext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitDecryptRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
Ciphertext string `protobuf:"bytes,3,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
|
Context string `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitDecryptRequest) Reset() {
|
|
*x = TransitDecryptRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitDecryptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitDecryptRequest) ProtoMessage() {}
|
|
|
|
func (x *TransitDecryptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitDecryptRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransitDecryptRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *TransitDecryptRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitDecryptRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitDecryptRequest) GetCiphertext() string {
|
|
if x != nil {
|
|
return x.Ciphertext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitDecryptRequest) GetContext() string {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitDecryptResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// plaintext is base64-encoded decrypted data.
|
|
Plaintext string `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitDecryptResponse) Reset() {
|
|
*x = TransitDecryptResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitDecryptResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitDecryptResponse) ProtoMessage() {}
|
|
|
|
func (x *TransitDecryptResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitDecryptResponse.ProtoReflect.Descriptor instead.
|
|
func (*TransitDecryptResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *TransitDecryptResponse) GetPlaintext() string {
|
|
if x != nil {
|
|
return x.Plaintext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitRewrapRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
Ciphertext string `protobuf:"bytes,3,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
|
Context string `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitRewrapRequest) Reset() {
|
|
*x = TransitRewrapRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitRewrapRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitRewrapRequest) ProtoMessage() {}
|
|
|
|
func (x *TransitRewrapRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitRewrapRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransitRewrapRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *TransitRewrapRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitRewrapRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitRewrapRequest) GetCiphertext() string {
|
|
if x != nil {
|
|
return x.Ciphertext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitRewrapRequest) GetContext() string {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitRewrapResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ciphertext string `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitRewrapResponse) Reset() {
|
|
*x = TransitRewrapResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitRewrapResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitRewrapResponse) ProtoMessage() {}
|
|
|
|
func (x *TransitRewrapResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitRewrapResponse.ProtoReflect.Descriptor instead.
|
|
func (*TransitRewrapResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *TransitRewrapResponse) GetCiphertext() string {
|
|
if x != nil {
|
|
return x.Ciphertext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitBatchItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Plaintext string `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
|
|
Ciphertext string `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
|
Context string `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
|
|
Reference string `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitBatchItem) Reset() {
|
|
*x = TransitBatchItem{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitBatchItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitBatchItem) ProtoMessage() {}
|
|
|
|
func (x *TransitBatchItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitBatchItem.ProtoReflect.Descriptor instead.
|
|
func (*TransitBatchItem) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *TransitBatchItem) GetPlaintext() string {
|
|
if x != nil {
|
|
return x.Plaintext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchItem) GetCiphertext() string {
|
|
if x != nil {
|
|
return x.Ciphertext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchItem) GetContext() string {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchItem) GetReference() string {
|
|
if x != nil {
|
|
return x.Reference
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitBatchResultItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Plaintext string `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
|
|
Ciphertext string `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
|
Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"`
|
|
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitBatchResultItem) Reset() {
|
|
*x = TransitBatchResultItem{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitBatchResultItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitBatchResultItem) ProtoMessage() {}
|
|
|
|
func (x *TransitBatchResultItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitBatchResultItem.ProtoReflect.Descriptor instead.
|
|
func (*TransitBatchResultItem) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *TransitBatchResultItem) GetPlaintext() string {
|
|
if x != nil {
|
|
return x.Plaintext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchResultItem) GetCiphertext() string {
|
|
if x != nil {
|
|
return x.Ciphertext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchResultItem) GetReference() string {
|
|
if x != nil {
|
|
return x.Reference
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchResultItem) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitBatchEncryptRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
Items []*TransitBatchItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitBatchEncryptRequest) Reset() {
|
|
*x = TransitBatchEncryptRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitBatchEncryptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitBatchEncryptRequest) ProtoMessage() {}
|
|
|
|
func (x *TransitBatchEncryptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitBatchEncryptRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransitBatchEncryptRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *TransitBatchEncryptRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchEncryptRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchEncryptRequest) GetItems() []*TransitBatchItem {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TransitBatchDecryptRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
Items []*TransitBatchItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitBatchDecryptRequest) Reset() {
|
|
*x = TransitBatchDecryptRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitBatchDecryptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitBatchDecryptRequest) ProtoMessage() {}
|
|
|
|
func (x *TransitBatchDecryptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitBatchDecryptRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransitBatchDecryptRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *TransitBatchDecryptRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchDecryptRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchDecryptRequest) GetItems() []*TransitBatchItem {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TransitBatchRewrapRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
Items []*TransitBatchItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitBatchRewrapRequest) Reset() {
|
|
*x = TransitBatchRewrapRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitBatchRewrapRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitBatchRewrapRequest) ProtoMessage() {}
|
|
|
|
func (x *TransitBatchRewrapRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[24]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitBatchRewrapRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransitBatchRewrapRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *TransitBatchRewrapRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchRewrapRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitBatchRewrapRequest) GetItems() []*TransitBatchItem {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TransitBatchResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Results []*TransitBatchResultItem `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitBatchResponse) Reset() {
|
|
*x = TransitBatchResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitBatchResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitBatchResponse) ProtoMessage() {}
|
|
|
|
func (x *TransitBatchResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[25]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitBatchResponse.ProtoReflect.Descriptor instead.
|
|
func (*TransitBatchResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *TransitBatchResponse) GetResults() []*TransitBatchResultItem {
|
|
if x != nil {
|
|
return x.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TransitSignRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
// input is base64-encoded data to sign.
|
|
Input string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitSignRequest) Reset() {
|
|
*x = TransitSignRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitSignRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitSignRequest) ProtoMessage() {}
|
|
|
|
func (x *TransitSignRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[26]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitSignRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransitSignRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *TransitSignRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitSignRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitSignRequest) GetInput() string {
|
|
if x != nil {
|
|
return x.Input
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitSignResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// signature in format "metacrypt:v{version}:{base64(signature_bytes)}"
|
|
Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitSignResponse) Reset() {
|
|
*x = TransitSignResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitSignResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitSignResponse) ProtoMessage() {}
|
|
|
|
func (x *TransitSignResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[27]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitSignResponse.ProtoReflect.Descriptor instead.
|
|
func (*TransitSignResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *TransitSignResponse) GetSignature() string {
|
|
if x != nil {
|
|
return x.Signature
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitVerifyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
Input string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
|
|
Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitVerifyRequest) Reset() {
|
|
*x = TransitVerifyRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitVerifyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitVerifyRequest) ProtoMessage() {}
|
|
|
|
func (x *TransitVerifyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[28]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitVerifyRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransitVerifyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *TransitVerifyRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitVerifyRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitVerifyRequest) GetInput() string {
|
|
if x != nil {
|
|
return x.Input
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitVerifyRequest) GetSignature() string {
|
|
if x != nil {
|
|
return x.Signature
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitVerifyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitVerifyResponse) Reset() {
|
|
*x = TransitVerifyResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitVerifyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitVerifyResponse) ProtoMessage() {}
|
|
|
|
func (x *TransitVerifyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[29]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitVerifyResponse.ProtoReflect.Descriptor instead.
|
|
func (*TransitVerifyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *TransitVerifyResponse) GetValid() bool {
|
|
if x != nil {
|
|
return x.Valid
|
|
}
|
|
return false
|
|
}
|
|
|
|
type TransitHmacRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
// input is base64-encoded data to HMAC.
|
|
Input string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
|
|
// hmac, if set, switches to verify mode.
|
|
Hmac string `protobuf:"bytes,4,opt,name=hmac,proto3" json:"hmac,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitHmacRequest) Reset() {
|
|
*x = TransitHmacRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitHmacRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitHmacRequest) ProtoMessage() {}
|
|
|
|
func (x *TransitHmacRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[30]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitHmacRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransitHmacRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
func (x *TransitHmacRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitHmacRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitHmacRequest) GetInput() string {
|
|
if x != nil {
|
|
return x.Input
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitHmacRequest) GetHmac() string {
|
|
if x != nil {
|
|
return x.Hmac
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TransitHmacResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// hmac is set in compute mode.
|
|
Hmac string `protobuf:"bytes,1,opt,name=hmac,proto3" json:"hmac,omitempty"`
|
|
// valid is set in verify mode.
|
|
Valid bool `protobuf:"varint,2,opt,name=valid,proto3" json:"valid,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitHmacResponse) Reset() {
|
|
*x = TransitHmacResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitHmacResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitHmacResponse) ProtoMessage() {}
|
|
|
|
func (x *TransitHmacResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[31]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitHmacResponse.ProtoReflect.Descriptor instead.
|
|
func (*TransitHmacResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *TransitHmacResponse) GetHmac() string {
|
|
if x != nil {
|
|
return x.Hmac
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitHmacResponse) GetValid() bool {
|
|
if x != nil {
|
|
return x.Valid
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetTransitPublicKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyRequest) Reset() {
|
|
*x = GetTransitPublicKeyRequest{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetTransitPublicKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *GetTransitPublicKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[32]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetTransitPublicKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetTransitPublicKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{32}
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyRequest) GetMount() string {
|
|
if x != nil {
|
|
return x.Mount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyRequest) GetVersion() int32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTransitPublicKeyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// public_key is base64-encoded PKIX DER public key.
|
|
PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyResponse) Reset() {
|
|
*x = GetTransitPublicKeyResponse{}
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[33]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetTransitPublicKeyResponse) ProtoMessage() {}
|
|
|
|
func (x *GetTransitPublicKeyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_transit_proto_msgTypes[33]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetTransitPublicKeyResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetTransitPublicKeyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescGZIP(), []int{33}
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyResponse) GetPublicKey() string {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyResponse) GetVersion() int32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetTransitPublicKeyResponse) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_proto_metacrypt_v2_transit_proto protoreflect.FileDescriptor
|
|
|
|
const file_proto_metacrypt_v2_transit_proto_rawDesc = "" +
|
|
"\n" +
|
|
" proto/metacrypt/v2/transit.proto\x12\fmetacrypt.v2\"W\n" +
|
|
"\x17CreateTransitKeyRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type\"\\\n" +
|
|
"\x18CreateTransitKeyResponse\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x18\n" +
|
|
"\aversion\x18\x03 \x01(\x05R\aversion\"C\n" +
|
|
"\x17DeleteTransitKeyRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\"\x1a\n" +
|
|
"\x18DeleteTransitKeyResponse\"@\n" +
|
|
"\x14GetTransitKeyRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\"\xe1\x01\n" +
|
|
"\x15GetTransitKeyResponse\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12'\n" +
|
|
"\x0fcurrent_version\x18\x03 \x01(\x05R\x0ecurrentVersion\x124\n" +
|
|
"\x16min_decryption_version\x18\x04 \x01(\x05R\x14minDecryptionVersion\x12%\n" +
|
|
"\x0eallow_deletion\x18\x05 \x01(\bR\rallowDeletion\x12\x1a\n" +
|
|
"\bversions\x18\x06 \x03(\x05R\bversions\".\n" +
|
|
"\x16ListTransitKeysRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\"-\n" +
|
|
"\x17ListTransitKeysResponse\x12\x12\n" +
|
|
"\x04keys\x18\x01 \x03(\tR\x04keys\"C\n" +
|
|
"\x17RotateTransitKeyRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\"H\n" +
|
|
"\x18RotateTransitKeyResponse\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\x05R\aversion\"\xa6\x01\n" +
|
|
"\x1dUpdateTransitKeyConfigRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x124\n" +
|
|
"\x16min_decryption_version\x18\x03 \x01(\x05R\x14minDecryptionVersion\x12%\n" +
|
|
"\x0eallow_deletion\x18\x04 \x01(\bR\rallowDeletion\" \n" +
|
|
"\x1eUpdateTransitKeyConfigResponse\"A\n" +
|
|
"\x15TrimTransitKeyRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\"2\n" +
|
|
"\x16TrimTransitKeyResponse\x12\x18\n" +
|
|
"\atrimmed\x18\x01 \x01(\x05R\atrimmed\"w\n" +
|
|
"\x15TransitEncryptRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x12\x1c\n" +
|
|
"\tplaintext\x18\x03 \x01(\tR\tplaintext\x12\x18\n" +
|
|
"\acontext\x18\x04 \x01(\tR\acontext\"8\n" +
|
|
"\x16TransitEncryptResponse\x12\x1e\n" +
|
|
"\n" +
|
|
"ciphertext\x18\x01 \x01(\tR\n" +
|
|
"ciphertext\"y\n" +
|
|
"\x15TransitDecryptRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x12\x1e\n" +
|
|
"\n" +
|
|
"ciphertext\x18\x03 \x01(\tR\n" +
|
|
"ciphertext\x12\x18\n" +
|
|
"\acontext\x18\x04 \x01(\tR\acontext\"6\n" +
|
|
"\x16TransitDecryptResponse\x12\x1c\n" +
|
|
"\tplaintext\x18\x01 \x01(\tR\tplaintext\"x\n" +
|
|
"\x14TransitRewrapRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x12\x1e\n" +
|
|
"\n" +
|
|
"ciphertext\x18\x03 \x01(\tR\n" +
|
|
"ciphertext\x12\x18\n" +
|
|
"\acontext\x18\x04 \x01(\tR\acontext\"7\n" +
|
|
"\x15TransitRewrapResponse\x12\x1e\n" +
|
|
"\n" +
|
|
"ciphertext\x18\x01 \x01(\tR\n" +
|
|
"ciphertext\"\x88\x01\n" +
|
|
"\x10TransitBatchItem\x12\x1c\n" +
|
|
"\tplaintext\x18\x01 \x01(\tR\tplaintext\x12\x1e\n" +
|
|
"\n" +
|
|
"ciphertext\x18\x02 \x01(\tR\n" +
|
|
"ciphertext\x12\x18\n" +
|
|
"\acontext\x18\x03 \x01(\tR\acontext\x12\x1c\n" +
|
|
"\treference\x18\x04 \x01(\tR\treference\"\x8a\x01\n" +
|
|
"\x16TransitBatchResultItem\x12\x1c\n" +
|
|
"\tplaintext\x18\x01 \x01(\tR\tplaintext\x12\x1e\n" +
|
|
"\n" +
|
|
"ciphertext\x18\x02 \x01(\tR\n" +
|
|
"ciphertext\x12\x1c\n" +
|
|
"\treference\x18\x03 \x01(\tR\treference\x12\x14\n" +
|
|
"\x05error\x18\x04 \x01(\tR\x05error\"z\n" +
|
|
"\x1aTransitBatchEncryptRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x124\n" +
|
|
"\x05items\x18\x03 \x03(\v2\x1e.metacrypt.v2.TransitBatchItemR\x05items\"z\n" +
|
|
"\x1aTransitBatchDecryptRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x124\n" +
|
|
"\x05items\x18\x03 \x03(\v2\x1e.metacrypt.v2.TransitBatchItemR\x05items\"y\n" +
|
|
"\x19TransitBatchRewrapRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x124\n" +
|
|
"\x05items\x18\x03 \x03(\v2\x1e.metacrypt.v2.TransitBatchItemR\x05items\"V\n" +
|
|
"\x14TransitBatchResponse\x12>\n" +
|
|
"\aresults\x18\x01 \x03(\v2$.metacrypt.v2.TransitBatchResultItemR\aresults\"R\n" +
|
|
"\x12TransitSignRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05input\x18\x03 \x01(\tR\x05input\"3\n" +
|
|
"\x13TransitSignResponse\x12\x1c\n" +
|
|
"\tsignature\x18\x01 \x01(\tR\tsignature\"r\n" +
|
|
"\x14TransitVerifyRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05input\x18\x03 \x01(\tR\x05input\x12\x1c\n" +
|
|
"\tsignature\x18\x04 \x01(\tR\tsignature\"-\n" +
|
|
"\x15TransitVerifyResponse\x12\x14\n" +
|
|
"\x05valid\x18\x01 \x01(\bR\x05valid\"f\n" +
|
|
"\x12TransitHmacRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05input\x18\x03 \x01(\tR\x05input\x12\x12\n" +
|
|
"\x04hmac\x18\x04 \x01(\tR\x04hmac\"?\n" +
|
|
"\x13TransitHmacResponse\x12\x12\n" +
|
|
"\x04hmac\x18\x01 \x01(\tR\x04hmac\x12\x14\n" +
|
|
"\x05valid\x18\x02 \x01(\bR\x05valid\"`\n" +
|
|
"\x1aGetTransitPublicKeyRequest\x12\x14\n" +
|
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n" +
|
|
"\aversion\x18\x03 \x01(\x05R\aversion\"j\n" +
|
|
"\x1bGetTransitPublicKeyResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"public_key\x18\x01 \x01(\tR\tpublicKey\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\x05R\aversion\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type2\xfd\v\n" +
|
|
"\x0eTransitService\x12Z\n" +
|
|
"\tCreateKey\x12%.metacrypt.v2.CreateTransitKeyRequest\x1a&.metacrypt.v2.CreateTransitKeyResponse\x12Z\n" +
|
|
"\tDeleteKey\x12%.metacrypt.v2.DeleteTransitKeyRequest\x1a&.metacrypt.v2.DeleteTransitKeyResponse\x12Q\n" +
|
|
"\x06GetKey\x12\".metacrypt.v2.GetTransitKeyRequest\x1a#.metacrypt.v2.GetTransitKeyResponse\x12W\n" +
|
|
"\bListKeys\x12$.metacrypt.v2.ListTransitKeysRequest\x1a%.metacrypt.v2.ListTransitKeysResponse\x12Z\n" +
|
|
"\tRotateKey\x12%.metacrypt.v2.RotateTransitKeyRequest\x1a&.metacrypt.v2.RotateTransitKeyResponse\x12l\n" +
|
|
"\x0fUpdateKeyConfig\x12+.metacrypt.v2.UpdateTransitKeyConfigRequest\x1a,.metacrypt.v2.UpdateTransitKeyConfigResponse\x12T\n" +
|
|
"\aTrimKey\x12#.metacrypt.v2.TrimTransitKeyRequest\x1a$.metacrypt.v2.TrimTransitKeyResponse\x12T\n" +
|
|
"\aEncrypt\x12#.metacrypt.v2.TransitEncryptRequest\x1a$.metacrypt.v2.TransitEncryptResponse\x12T\n" +
|
|
"\aDecrypt\x12#.metacrypt.v2.TransitDecryptRequest\x1a$.metacrypt.v2.TransitDecryptResponse\x12Q\n" +
|
|
"\x06Rewrap\x12\".metacrypt.v2.TransitRewrapRequest\x1a#.metacrypt.v2.TransitRewrapResponse\x12\\\n" +
|
|
"\fBatchEncrypt\x12(.metacrypt.v2.TransitBatchEncryptRequest\x1a\".metacrypt.v2.TransitBatchResponse\x12\\\n" +
|
|
"\fBatchDecrypt\x12(.metacrypt.v2.TransitBatchDecryptRequest\x1a\".metacrypt.v2.TransitBatchResponse\x12Z\n" +
|
|
"\vBatchRewrap\x12'.metacrypt.v2.TransitBatchRewrapRequest\x1a\".metacrypt.v2.TransitBatchResponse\x12K\n" +
|
|
"\x04Sign\x12 .metacrypt.v2.TransitSignRequest\x1a!.metacrypt.v2.TransitSignResponse\x12Q\n" +
|
|
"\x06Verify\x12\".metacrypt.v2.TransitVerifyRequest\x1a#.metacrypt.v2.TransitVerifyResponse\x12K\n" +
|
|
"\x04Hmac\x12 .metacrypt.v2.TransitHmacRequest\x1a!.metacrypt.v2.TransitHmacResponse\x12c\n" +
|
|
"\fGetPublicKey\x12(.metacrypt.v2.GetTransitPublicKeyRequest\x1a).metacrypt.v2.GetTransitPublicKeyResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v2;metacryptv2b\x06proto3"
|
|
|
|
var (
|
|
file_proto_metacrypt_v2_transit_proto_rawDescOnce sync.Once
|
|
file_proto_metacrypt_v2_transit_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proto_metacrypt_v2_transit_proto_rawDescGZIP() []byte {
|
|
file_proto_metacrypt_v2_transit_proto_rawDescOnce.Do(func() {
|
|
file_proto_metacrypt_v2_transit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v2_transit_proto_rawDesc), len(file_proto_metacrypt_v2_transit_proto_rawDesc)))
|
|
})
|
|
return file_proto_metacrypt_v2_transit_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_metacrypt_v2_transit_proto_msgTypes = make([]protoimpl.MessageInfo, 34)
|
|
var file_proto_metacrypt_v2_transit_proto_goTypes = []any{
|
|
(*CreateTransitKeyRequest)(nil), // 0: metacrypt.v2.CreateTransitKeyRequest
|
|
(*CreateTransitKeyResponse)(nil), // 1: metacrypt.v2.CreateTransitKeyResponse
|
|
(*DeleteTransitKeyRequest)(nil), // 2: metacrypt.v2.DeleteTransitKeyRequest
|
|
(*DeleteTransitKeyResponse)(nil), // 3: metacrypt.v2.DeleteTransitKeyResponse
|
|
(*GetTransitKeyRequest)(nil), // 4: metacrypt.v2.GetTransitKeyRequest
|
|
(*GetTransitKeyResponse)(nil), // 5: metacrypt.v2.GetTransitKeyResponse
|
|
(*ListTransitKeysRequest)(nil), // 6: metacrypt.v2.ListTransitKeysRequest
|
|
(*ListTransitKeysResponse)(nil), // 7: metacrypt.v2.ListTransitKeysResponse
|
|
(*RotateTransitKeyRequest)(nil), // 8: metacrypt.v2.RotateTransitKeyRequest
|
|
(*RotateTransitKeyResponse)(nil), // 9: metacrypt.v2.RotateTransitKeyResponse
|
|
(*UpdateTransitKeyConfigRequest)(nil), // 10: metacrypt.v2.UpdateTransitKeyConfigRequest
|
|
(*UpdateTransitKeyConfigResponse)(nil), // 11: metacrypt.v2.UpdateTransitKeyConfigResponse
|
|
(*TrimTransitKeyRequest)(nil), // 12: metacrypt.v2.TrimTransitKeyRequest
|
|
(*TrimTransitKeyResponse)(nil), // 13: metacrypt.v2.TrimTransitKeyResponse
|
|
(*TransitEncryptRequest)(nil), // 14: metacrypt.v2.TransitEncryptRequest
|
|
(*TransitEncryptResponse)(nil), // 15: metacrypt.v2.TransitEncryptResponse
|
|
(*TransitDecryptRequest)(nil), // 16: metacrypt.v2.TransitDecryptRequest
|
|
(*TransitDecryptResponse)(nil), // 17: metacrypt.v2.TransitDecryptResponse
|
|
(*TransitRewrapRequest)(nil), // 18: metacrypt.v2.TransitRewrapRequest
|
|
(*TransitRewrapResponse)(nil), // 19: metacrypt.v2.TransitRewrapResponse
|
|
(*TransitBatchItem)(nil), // 20: metacrypt.v2.TransitBatchItem
|
|
(*TransitBatchResultItem)(nil), // 21: metacrypt.v2.TransitBatchResultItem
|
|
(*TransitBatchEncryptRequest)(nil), // 22: metacrypt.v2.TransitBatchEncryptRequest
|
|
(*TransitBatchDecryptRequest)(nil), // 23: metacrypt.v2.TransitBatchDecryptRequest
|
|
(*TransitBatchRewrapRequest)(nil), // 24: metacrypt.v2.TransitBatchRewrapRequest
|
|
(*TransitBatchResponse)(nil), // 25: metacrypt.v2.TransitBatchResponse
|
|
(*TransitSignRequest)(nil), // 26: metacrypt.v2.TransitSignRequest
|
|
(*TransitSignResponse)(nil), // 27: metacrypt.v2.TransitSignResponse
|
|
(*TransitVerifyRequest)(nil), // 28: metacrypt.v2.TransitVerifyRequest
|
|
(*TransitVerifyResponse)(nil), // 29: metacrypt.v2.TransitVerifyResponse
|
|
(*TransitHmacRequest)(nil), // 30: metacrypt.v2.TransitHmacRequest
|
|
(*TransitHmacResponse)(nil), // 31: metacrypt.v2.TransitHmacResponse
|
|
(*GetTransitPublicKeyRequest)(nil), // 32: metacrypt.v2.GetTransitPublicKeyRequest
|
|
(*GetTransitPublicKeyResponse)(nil), // 33: metacrypt.v2.GetTransitPublicKeyResponse
|
|
}
|
|
var file_proto_metacrypt_v2_transit_proto_depIdxs = []int32{
|
|
20, // 0: metacrypt.v2.TransitBatchEncryptRequest.items:type_name -> metacrypt.v2.TransitBatchItem
|
|
20, // 1: metacrypt.v2.TransitBatchDecryptRequest.items:type_name -> metacrypt.v2.TransitBatchItem
|
|
20, // 2: metacrypt.v2.TransitBatchRewrapRequest.items:type_name -> metacrypt.v2.TransitBatchItem
|
|
21, // 3: metacrypt.v2.TransitBatchResponse.results:type_name -> metacrypt.v2.TransitBatchResultItem
|
|
0, // 4: metacrypt.v2.TransitService.CreateKey:input_type -> metacrypt.v2.CreateTransitKeyRequest
|
|
2, // 5: metacrypt.v2.TransitService.DeleteKey:input_type -> metacrypt.v2.DeleteTransitKeyRequest
|
|
4, // 6: metacrypt.v2.TransitService.GetKey:input_type -> metacrypt.v2.GetTransitKeyRequest
|
|
6, // 7: metacrypt.v2.TransitService.ListKeys:input_type -> metacrypt.v2.ListTransitKeysRequest
|
|
8, // 8: metacrypt.v2.TransitService.RotateKey:input_type -> metacrypt.v2.RotateTransitKeyRequest
|
|
10, // 9: metacrypt.v2.TransitService.UpdateKeyConfig:input_type -> metacrypt.v2.UpdateTransitKeyConfigRequest
|
|
12, // 10: metacrypt.v2.TransitService.TrimKey:input_type -> metacrypt.v2.TrimTransitKeyRequest
|
|
14, // 11: metacrypt.v2.TransitService.Encrypt:input_type -> metacrypt.v2.TransitEncryptRequest
|
|
16, // 12: metacrypt.v2.TransitService.Decrypt:input_type -> metacrypt.v2.TransitDecryptRequest
|
|
18, // 13: metacrypt.v2.TransitService.Rewrap:input_type -> metacrypt.v2.TransitRewrapRequest
|
|
22, // 14: metacrypt.v2.TransitService.BatchEncrypt:input_type -> metacrypt.v2.TransitBatchEncryptRequest
|
|
23, // 15: metacrypt.v2.TransitService.BatchDecrypt:input_type -> metacrypt.v2.TransitBatchDecryptRequest
|
|
24, // 16: metacrypt.v2.TransitService.BatchRewrap:input_type -> metacrypt.v2.TransitBatchRewrapRequest
|
|
26, // 17: metacrypt.v2.TransitService.Sign:input_type -> metacrypt.v2.TransitSignRequest
|
|
28, // 18: metacrypt.v2.TransitService.Verify:input_type -> metacrypt.v2.TransitVerifyRequest
|
|
30, // 19: metacrypt.v2.TransitService.Hmac:input_type -> metacrypt.v2.TransitHmacRequest
|
|
32, // 20: metacrypt.v2.TransitService.GetPublicKey:input_type -> metacrypt.v2.GetTransitPublicKeyRequest
|
|
1, // 21: metacrypt.v2.TransitService.CreateKey:output_type -> metacrypt.v2.CreateTransitKeyResponse
|
|
3, // 22: metacrypt.v2.TransitService.DeleteKey:output_type -> metacrypt.v2.DeleteTransitKeyResponse
|
|
5, // 23: metacrypt.v2.TransitService.GetKey:output_type -> metacrypt.v2.GetTransitKeyResponse
|
|
7, // 24: metacrypt.v2.TransitService.ListKeys:output_type -> metacrypt.v2.ListTransitKeysResponse
|
|
9, // 25: metacrypt.v2.TransitService.RotateKey:output_type -> metacrypt.v2.RotateTransitKeyResponse
|
|
11, // 26: metacrypt.v2.TransitService.UpdateKeyConfig:output_type -> metacrypt.v2.UpdateTransitKeyConfigResponse
|
|
13, // 27: metacrypt.v2.TransitService.TrimKey:output_type -> metacrypt.v2.TrimTransitKeyResponse
|
|
15, // 28: metacrypt.v2.TransitService.Encrypt:output_type -> metacrypt.v2.TransitEncryptResponse
|
|
17, // 29: metacrypt.v2.TransitService.Decrypt:output_type -> metacrypt.v2.TransitDecryptResponse
|
|
19, // 30: metacrypt.v2.TransitService.Rewrap:output_type -> metacrypt.v2.TransitRewrapResponse
|
|
25, // 31: metacrypt.v2.TransitService.BatchEncrypt:output_type -> metacrypt.v2.TransitBatchResponse
|
|
25, // 32: metacrypt.v2.TransitService.BatchDecrypt:output_type -> metacrypt.v2.TransitBatchResponse
|
|
25, // 33: metacrypt.v2.TransitService.BatchRewrap:output_type -> metacrypt.v2.TransitBatchResponse
|
|
27, // 34: metacrypt.v2.TransitService.Sign:output_type -> metacrypt.v2.TransitSignResponse
|
|
29, // 35: metacrypt.v2.TransitService.Verify:output_type -> metacrypt.v2.TransitVerifyResponse
|
|
31, // 36: metacrypt.v2.TransitService.Hmac:output_type -> metacrypt.v2.TransitHmacResponse
|
|
33, // 37: metacrypt.v2.TransitService.GetPublicKey:output_type -> metacrypt.v2.GetTransitPublicKeyResponse
|
|
21, // [21:38] is the sub-list for method output_type
|
|
4, // [4:21] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_metacrypt_v2_transit_proto_init() }
|
|
func file_proto_metacrypt_v2_transit_proto_init() {
|
|
if File_proto_metacrypt_v2_transit_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v2_transit_proto_rawDesc), len(file_proto_metacrypt_v2_transit_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 34,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_metacrypt_v2_transit_proto_goTypes,
|
|
DependencyIndexes: file_proto_metacrypt_v2_transit_proto_depIdxs,
|
|
MessageInfos: file_proto_metacrypt_v2_transit_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_metacrypt_v2_transit_proto = out.File
|
|
file_proto_metacrypt_v2_transit_proto_goTypes = nil
|
|
file_proto_metacrypt_v2_transit_proto_depIdxs = nil
|
|
}
|