mirror of
https://github.com/rclone/rclone.git
synced 2024-12-12 02:02:02 +01:00
126 lines
4.6 KiB
Go
126 lines
4.6 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: encryption.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
math "math"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type CipherSuite int32
|
|
|
|
const (
|
|
CipherSuite_ENC_UNSPECIFIED CipherSuite = 0
|
|
CipherSuite_ENC_NULL CipherSuite = 1
|
|
CipherSuite_ENC_AESGCM CipherSuite = 2
|
|
CipherSuite_ENC_SECRETBOX CipherSuite = 3
|
|
)
|
|
|
|
var CipherSuite_name = map[int32]string{
|
|
0: "ENC_UNSPECIFIED",
|
|
1: "ENC_NULL",
|
|
2: "ENC_AESGCM",
|
|
3: "ENC_SECRETBOX",
|
|
}
|
|
|
|
var CipherSuite_value = map[string]int32{
|
|
"ENC_UNSPECIFIED": 0,
|
|
"ENC_NULL": 1,
|
|
"ENC_AESGCM": 2,
|
|
"ENC_SECRETBOX": 3,
|
|
}
|
|
|
|
func (x CipherSuite) String() string {
|
|
return proto.EnumName(CipherSuite_name, int32(x))
|
|
}
|
|
|
|
func (CipherSuite) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_8293a649ce9418c6, []int{0}
|
|
}
|
|
|
|
type EncryptionParameters struct {
|
|
CipherSuite CipherSuite `protobuf:"varint,1,opt,name=cipher_suite,json=cipherSuite,proto3,enum=encryption.CipherSuite" json:"cipher_suite,omitempty"`
|
|
BlockSize int64 `protobuf:"varint,2,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EncryptionParameters) Reset() { *m = EncryptionParameters{} }
|
|
func (m *EncryptionParameters) String() string { return proto.CompactTextString(m) }
|
|
func (*EncryptionParameters) ProtoMessage() {}
|
|
func (*EncryptionParameters) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8293a649ce9418c6, []int{0}
|
|
}
|
|
func (m *EncryptionParameters) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EncryptionParameters.Unmarshal(m, b)
|
|
}
|
|
func (m *EncryptionParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EncryptionParameters.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *EncryptionParameters) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EncryptionParameters.Merge(m, src)
|
|
}
|
|
func (m *EncryptionParameters) XXX_Size() int {
|
|
return xxx_messageInfo_EncryptionParameters.Size(m)
|
|
}
|
|
func (m *EncryptionParameters) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EncryptionParameters.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EncryptionParameters proto.InternalMessageInfo
|
|
|
|
func (m *EncryptionParameters) GetCipherSuite() CipherSuite {
|
|
if m != nil {
|
|
return m.CipherSuite
|
|
}
|
|
return CipherSuite_ENC_UNSPECIFIED
|
|
}
|
|
|
|
func (m *EncryptionParameters) GetBlockSize() int64 {
|
|
if m != nil {
|
|
return m.BlockSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("encryption.CipherSuite", CipherSuite_name, CipherSuite_value)
|
|
proto.RegisterType((*EncryptionParameters)(nil), "encryption.EncryptionParameters")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("encryption.proto", fileDescriptor_8293a649ce9418c6) }
|
|
|
|
var fileDescriptor_8293a649ce9418c6 = []byte{
|
|
// 225 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0xcd, 0x4b, 0x2e,
|
|
0xaa, 0x2c, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x42, 0x88,
|
|
0x28, 0x15, 0x72, 0x89, 0xb8, 0xc2, 0x79, 0x01, 0x89, 0x45, 0x89, 0xb9, 0xa9, 0x25, 0xa9, 0x45,
|
|
0xc5, 0x42, 0x56, 0x5c, 0x3c, 0xc9, 0x99, 0x05, 0x19, 0xa9, 0x45, 0xf1, 0xc5, 0xa5, 0x99, 0x25,
|
|
0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x7c, 0x46, 0xe2, 0x7a, 0x48, 0x86, 0x39, 0x83, 0xe5, 0x83,
|
|
0x41, 0xd2, 0x41, 0xdc, 0xc9, 0x08, 0x8e, 0x90, 0x2c, 0x17, 0x57, 0x52, 0x4e, 0x7e, 0x72, 0x76,
|
|
0x7c, 0x71, 0x66, 0x55, 0xaa, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x73, 0x10, 0x27, 0x58, 0x24, 0x38,
|
|
0xb3, 0x2a, 0x55, 0x2b, 0x98, 0x8b, 0x1b, 0x49, 0xab, 0x90, 0x30, 0x17, 0xbf, 0xab, 0x9f, 0x73,
|
|
0x7c, 0xa8, 0x5f, 0x70, 0x80, 0xab, 0xb3, 0xa7, 0x9b, 0xa7, 0xab, 0x8b, 0x00, 0x83, 0x10, 0x0f,
|
|
0x17, 0x07, 0x48, 0xd0, 0x2f, 0xd4, 0xc7, 0x47, 0x80, 0x51, 0x88, 0x8f, 0x8b, 0x0b, 0xc4, 0x73,
|
|
0x74, 0x0d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