// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.4 // protoc v4.25.6 // source: mfa/mfabox.proto package mfa 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) ) // Unlocker is a message that contains encrypted key which has been used during // encryption of 'Secrets' message in 'EncryptedSecrets' field of MFABox. type Unlocker struct { state protoimpl.MessageState `protogen:"open.v1"` // PublicKeys is 33-byte ECDSA P-256 curve public key which identifies // unlocker who can decrypt 'Secrets'. PublicKey []byte `protobuf:"bytes,1,opt,name=PublicKey,json=publicKey" json:"PublicKey,omitempty"` // EncryptedSecretsKey is a binary encoded encryption key of MFA Secrets, // encrypted by ChaCha20-Poly1305 AEAD algorithm. EncryptedSecretsKey []byte `protobuf:"bytes,2,opt,name=EncryptedSecretsKey,json=encryptedSecretsKey" json:"EncryptedSecretsKey,omitempty"` // Salt for HKDF function to derive key for encryption of 'EncryptedSecreteKey'. Salt []byte `protobuf:"bytes,3,opt,name=Salt,json=salt" json:"Salt,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Unlocker) Reset() { *x = Unlocker{} mi := &file_mfa_mfabox_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Unlocker) String() string { return protoimpl.X.MessageStringOf(x) } func (*Unlocker) ProtoMessage() {} func (x *Unlocker) ProtoReflect() protoreflect.Message { mi := &file_mfa_mfabox_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 Unlocker.ProtoReflect.Descriptor instead. func (*Unlocker) Descriptor() ([]byte, []int) { return file_mfa_mfabox_proto_rawDescGZIP(), []int{0} } func (x *Unlocker) GetPublicKey() []byte { if x != nil { return x.PublicKey } return nil } func (x *Unlocker) GetEncryptedSecretsKey() []byte { if x != nil { return x.EncryptedSecretsKey } return nil } func (x *Unlocker) GetSalt() []byte { if x != nil { return x.Salt } return nil } type MFABox struct { state protoimpl.MessageState `protogen:"open.v1"` // Unlockers are the set of messages contain key that has been used // to encrypt 'Secrets' message in 'EncrytedSecrets' field. Unlockers []*Unlocker `protobuf:"bytes,1,rep,name=Unlockers,json=unlockers" json:"Unlockers,omitempty"` // ECDHPublicKey is 33-byte ECDSA P-256 curve key to derive // unique encryption keys for every unlocker with ECDH algorithm ECDHPublicKey []byte `protobuf:"bytes,2,opt,name=ECDHPublicKey,json=ecdhPublicKey" json:"ECDHPublicKey,omitempty"` // EncryptedSecrets is a binary encoded 'Secrets' message, encrypted by // ChaCha20-Poly1305 AEAD algorithm. EncryptedSecrets []byte `protobuf:"bytes,3,opt,name=EncryptedSecrets,json=encryptedSecrets" json:"EncryptedSecrets,omitempty"` // Salt for HKDF function to derive key for encryption of 'EncryptedSecrets'. Salt []byte `protobuf:"bytes,4,opt,name=Salt,json=salt" json:"Salt,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MFABox) Reset() { *x = MFABox{} mi := &file_mfa_mfabox_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MFABox) String() string { return protoimpl.X.MessageStringOf(x) } func (*MFABox) ProtoMessage() {} func (x *MFABox) ProtoReflect() protoreflect.Message { mi := &file_mfa_mfabox_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 MFABox.ProtoReflect.Descriptor instead. func (*MFABox) Descriptor() ([]byte, []int) { return file_mfa_mfabox_proto_rawDescGZIP(), []int{1} } func (x *MFABox) GetUnlockers() []*Unlocker { if x != nil { return x.Unlockers } return nil } func (x *MFABox) GetECDHPublicKey() []byte { if x != nil { return x.ECDHPublicKey } return nil } func (x *MFABox) GetEncryptedSecrets() []byte { if x != nil { return x.EncryptedSecrets } return nil } func (x *MFABox) GetSalt() []byte { if x != nil { return x.Salt } return nil } // Secrets is a message that contains private data about MFA Device type Secrets struct { state protoimpl.MessageState `protogen:"open.v1"` // MFAURL is a seed for virtual authenticator device. // Format is described in https://github.com/google/google-authenticator/wiki/Key-Uri-Format MFAURL *string `protobuf:"bytes,2,opt,name=MFAURL,json=mfaURL" json:"MFAURL,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Secrets) Reset() { *x = Secrets{} mi := &file_mfa_mfabox_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Secrets) String() string { return protoimpl.X.MessageStringOf(x) } func (*Secrets) ProtoMessage() {} func (x *Secrets) ProtoReflect() protoreflect.Message { mi := &file_mfa_mfabox_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 Secrets.ProtoReflect.Descriptor instead. func (*Secrets) Descriptor() ([]byte, []int) { return file_mfa_mfabox_proto_rawDescGZIP(), []int{2} } func (x *Secrets) GetMFAURL() string { if x != nil && x.MFAURL != nil { return *x.MFAURL } return "" } var File_mfa_mfabox_proto protoreflect.FileDescriptor var file_mfa_mfabox_proto_rawDesc = string([]byte{ 0x0a, 0x10, 0x6d, 0x66, 0x61, 0x2f, 0x6d, 0x66, 0x61, 0x62, 0x6f, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x6d, 0x66, 0x61, 0x22, 0x6e, 0x0a, 0x08, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x13, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x61, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x22, 0x9b, 0x01, 0x0a, 0x06, 0x4d, 0x46, 0x41, 0x42, 0x6f, 0x78, 0x12, 0x2b, 0x0a, 0x09, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x66, 0x61, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x52, 0x09, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x45, 0x43, 0x44, 0x48, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x65, 0x63, 0x64, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x10, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x61, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x22, 0x21, 0x0a, 0x07, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x4d, 0x46, 0x41, 0x55, 0x52, 0x4c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x66, 0x61, 0x55, 0x52, 0x4c, 0x42, 0x06, 0x5a, 0x04, 0x2f, 0x6d, 0x66, 0x61, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07, }) var ( file_mfa_mfabox_proto_rawDescOnce sync.Once file_mfa_mfabox_proto_rawDescData []byte ) func file_mfa_mfabox_proto_rawDescGZIP() []byte { file_mfa_mfabox_proto_rawDescOnce.Do(func() { file_mfa_mfabox_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mfa_mfabox_proto_rawDesc), len(file_mfa_mfabox_proto_rawDesc))) }) return file_mfa_mfabox_proto_rawDescData } var file_mfa_mfabox_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_mfa_mfabox_proto_goTypes = []any{ (*Unlocker)(nil), // 0: mfa.Unlocker (*MFABox)(nil), // 1: mfa.MFABox (*Secrets)(nil), // 2: mfa.Secrets } var file_mfa_mfabox_proto_depIdxs = []int32{ 0, // 0: mfa.MFABox.Unlockers:type_name -> mfa.Unlocker 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_mfa_mfabox_proto_init() } func file_mfa_mfabox_proto_init() { if File_mfa_mfabox_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_mfa_mfabox_proto_rawDesc), len(file_mfa_mfabox_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, GoTypes: file_mfa_mfabox_proto_goTypes, DependencyIndexes: file_mfa_mfabox_proto_depIdxs, MessageInfos: file_mfa_mfabox_proto_msgTypes, }.Build() File_mfa_mfabox_proto = out.File file_mfa_mfabox_proto_goTypes = nil file_mfa_mfabox_proto_depIdxs = nil }