github.com/trustbloc/kms-go@v1.1.2/crypto/tinkcrypto/primitive/proto/aes_cbc_go_proto/aes_cbc.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.14.0
     5  // source: proto/aes_cbc.proto
     6  
     7  package aes_cbc_go_proto
     8  
     9  import (
    10  	reflect "reflect"
    11  	sync "sync"
    12  
    13  	proto "github.com/golang/protobuf/proto"
    14  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    16  )
    17  
    18  const (
    19  	// Verify that this generated code is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    23  )
    24  
    25  // This is a compile-time assertion that a sufficiently up-to-date version
    26  // of the legacy proto package is being used.
    27  const _ = proto.ProtoPackageIsVersion4
    28  
    29  type AesCbcKeyFormat struct {
    30  	state         protoimpl.MessageState
    31  	sizeCache     protoimpl.SizeCache
    32  	unknownFields protoimpl.UnknownFields
    33  
    34  	KeySize uint32 `protobuf:"varint,1,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"`
    35  }
    36  
    37  func (x *AesCbcKeyFormat) Reset() {
    38  	*x = AesCbcKeyFormat{}
    39  	if protoimpl.UnsafeEnabled {
    40  		mi := &file_proto_aes_cbc_proto_msgTypes[0]
    41  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    42  		ms.StoreMessageInfo(mi)
    43  	}
    44  }
    45  
    46  func (x *AesCbcKeyFormat) String() string {
    47  	return protoimpl.X.MessageStringOf(x)
    48  }
    49  
    50  func (*AesCbcKeyFormat) ProtoMessage() {}
    51  
    52  func (x *AesCbcKeyFormat) ProtoReflect() protoreflect.Message {
    53  	mi := &file_proto_aes_cbc_proto_msgTypes[0]
    54  	if protoimpl.UnsafeEnabled && x != nil {
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		if ms.LoadMessageInfo() == nil {
    57  			ms.StoreMessageInfo(mi)
    58  		}
    59  		return ms
    60  	}
    61  	return mi.MessageOf(x)
    62  }
    63  
    64  // Deprecated: Use AesCbcKeyFormat.ProtoReflect.Descriptor instead.
    65  func (*AesCbcKeyFormat) Descriptor() ([]byte, []int) {
    66  	return file_proto_aes_cbc_proto_rawDescGZIP(), []int{0}
    67  }
    68  
    69  func (x *AesCbcKeyFormat) GetKeySize() uint32 {
    70  	if x != nil {
    71  		return x.KeySize
    72  	}
    73  	return 0
    74  }
    75  
    76  type AesCbcKey struct {
    77  	state         protoimpl.MessageState
    78  	sizeCache     protoimpl.SizeCache
    79  	unknownFields protoimpl.UnknownFields
    80  
    81  	Version  uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
    82  	KeyValue []byte `protobuf:"bytes,2,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
    83  }
    84  
    85  func (x *AesCbcKey) Reset() {
    86  	*x = AesCbcKey{}
    87  	if protoimpl.UnsafeEnabled {
    88  		mi := &file_proto_aes_cbc_proto_msgTypes[1]
    89  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    90  		ms.StoreMessageInfo(mi)
    91  	}
    92  }
    93  
    94  func (x *AesCbcKey) String() string {
    95  	return protoimpl.X.MessageStringOf(x)
    96  }
    97  
    98  func (*AesCbcKey) ProtoMessage() {}
    99  
   100  func (x *AesCbcKey) ProtoReflect() protoreflect.Message {
   101  	mi := &file_proto_aes_cbc_proto_msgTypes[1]
   102  	if protoimpl.UnsafeEnabled && x != nil {
   103  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   104  		if ms.LoadMessageInfo() == nil {
   105  			ms.StoreMessageInfo(mi)
   106  		}
   107  		return ms
   108  	}
   109  	return mi.MessageOf(x)
   110  }
   111  
   112  // Deprecated: Use AesCbcKey.ProtoReflect.Descriptor instead.
   113  func (*AesCbcKey) Descriptor() ([]byte, []int) {
   114  	return file_proto_aes_cbc_proto_rawDescGZIP(), []int{1}
   115  }
   116  
   117  func (x *AesCbcKey) GetVersion() uint32 {
   118  	if x != nil {
   119  		return x.Version
   120  	}
   121  	return 0
   122  }
   123  
   124  func (x *AesCbcKey) GetKeyValue() []byte {
   125  	if x != nil {
   126  		return x.KeyValue
   127  	}
   128  	return nil
   129  }
   130  
   131  var File_proto_aes_cbc_proto protoreflect.FileDescriptor
   132  
   133  var file_proto_aes_cbc_proto_rawDesc = []byte{
   134  	0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x65, 0x73, 0x5f, 0x63, 0x62, 0x63, 0x2e,
   135  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72,
   136  	0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x22, 0x2c, 0x0a, 0x0f, 0x41, 0x65, 0x73,
   137  	0x43, 0x62, 0x63, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08,
   138  	0x6b, 0x65, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07,
   139  	0x6b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x42, 0x0a, 0x09, 0x41, 0x65, 0x73, 0x43, 0x62,
   140  	0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
   141  	0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b,
   142  	0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
   143  	0x0c, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x82, 0x01, 0x0a, 0x1c,
   144  	0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74,
   145  	0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x60,
   146  	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72,
   147  	0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x72, 0x69, 0x65, 0x73, 0x2d, 0x66, 0x72, 0x61,
   148  	0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x72,
   149  	0x79, 0x70, 0x74, 0x6f, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f,
   150  	0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
   151  	0x61, 0x65, 0x73, 0x5f, 0x63, 0x62, 0x63, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   152  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   153  }
   154  
   155  var (
   156  	file_proto_aes_cbc_proto_rawDescOnce sync.Once
   157  	file_proto_aes_cbc_proto_rawDescData = file_proto_aes_cbc_proto_rawDesc
   158  )
   159  
   160  func file_proto_aes_cbc_proto_rawDescGZIP() []byte {
   161  	file_proto_aes_cbc_proto_rawDescOnce.Do(func() {
   162  		file_proto_aes_cbc_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_aes_cbc_proto_rawDescData)
   163  	})
   164  	return file_proto_aes_cbc_proto_rawDescData
   165  }
   166  
   167  var file_proto_aes_cbc_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   168  var file_proto_aes_cbc_proto_goTypes = []interface{}{
   169  	(*AesCbcKeyFormat)(nil), // 0: google.crypto.tink.AesCbcKeyFormat
   170  	(*AesCbcKey)(nil),       // 1: google.crypto.tink.AesCbcKey
   171  }
   172  var file_proto_aes_cbc_proto_depIdxs = []int32{
   173  	0, // [0:0] is the sub-list for method output_type
   174  	0, // [0:0] is the sub-list for method input_type
   175  	0, // [0:0] is the sub-list for extension type_name
   176  	0, // [0:0] is the sub-list for extension extendee
   177  	0, // [0:0] is the sub-list for field type_name
   178  }
   179  
   180  func init() { file_proto_aes_cbc_proto_init() }
   181  func file_proto_aes_cbc_proto_init() {
   182  	if File_proto_aes_cbc_proto != nil {
   183  		return
   184  	}
   185  	if !protoimpl.UnsafeEnabled {
   186  		file_proto_aes_cbc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   187  			switch v := v.(*AesCbcKeyFormat); i {
   188  			case 0:
   189  				return &v.state
   190  			case 1:
   191  				return &v.sizeCache
   192  			case 2:
   193  				return &v.unknownFields
   194  			default:
   195  				return nil
   196  			}
   197  		}
   198  		file_proto_aes_cbc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   199  			switch v := v.(*AesCbcKey); i {
   200  			case 0:
   201  				return &v.state
   202  			case 1:
   203  				return &v.sizeCache
   204  			case 2:
   205  				return &v.unknownFields
   206  			default:
   207  				return nil
   208  			}
   209  		}
   210  	}
   211  	type x struct{}
   212  	out := protoimpl.TypeBuilder{
   213  		File: protoimpl.DescBuilder{
   214  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   215  			RawDescriptor: file_proto_aes_cbc_proto_rawDesc,
   216  			NumEnums:      0,
   217  			NumMessages:   2,
   218  			NumExtensions: 0,
   219  			NumServices:   0,
   220  		},
   221  		GoTypes:           file_proto_aes_cbc_proto_goTypes,
   222  		DependencyIndexes: file_proto_aes_cbc_proto_depIdxs,
   223  		MessageInfos:      file_proto_aes_cbc_proto_msgTypes,
   224  	}.Build()
   225  	File_proto_aes_cbc_proto = out.File
   226  	file_proto_aes_cbc_proto_rawDesc = nil
   227  	file_proto_aes_cbc_proto_goTypes = nil
   228  	file_proto_aes_cbc_proto_depIdxs = nil
   229  }