• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2018 Google Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15////////////////////////////////////////////////////////////////////////////////
16
17// Code generated by protoc-gen-go. DO NOT EDIT.
18// versions:
19// 	protoc-gen-go v1.28.1
20// 	protoc        v3.21.12
21// source: third_party/tink/proto/xchacha20_poly1305.proto
22
23package xchacha20_poly1305_go_proto
24
25import (
26	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
27	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
28	reflect "reflect"
29	sync "sync"
30)
31
32const (
33	// Verify that this generated code is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35	// Verify that runtime/protoimpl is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37)
38
39type XChaCha20Poly1305KeyFormat struct {
40	state         protoimpl.MessageState
41	sizeCache     protoimpl.SizeCache
42	unknownFields protoimpl.UnknownFields
43
44	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
45}
46
47func (x *XChaCha20Poly1305KeyFormat) Reset() {
48	*x = XChaCha20Poly1305KeyFormat{}
49	if protoimpl.UnsafeEnabled {
50		mi := &file_third_party_tink_proto_xchacha20_poly1305_proto_msgTypes[0]
51		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52		ms.StoreMessageInfo(mi)
53	}
54}
55
56func (x *XChaCha20Poly1305KeyFormat) String() string {
57	return protoimpl.X.MessageStringOf(x)
58}
59
60func (*XChaCha20Poly1305KeyFormat) ProtoMessage() {}
61
62func (x *XChaCha20Poly1305KeyFormat) ProtoReflect() protoreflect.Message {
63	mi := &file_third_party_tink_proto_xchacha20_poly1305_proto_msgTypes[0]
64	if protoimpl.UnsafeEnabled && x != nil {
65		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
66		if ms.LoadMessageInfo() == nil {
67			ms.StoreMessageInfo(mi)
68		}
69		return ms
70	}
71	return mi.MessageOf(x)
72}
73
74// Deprecated: Use XChaCha20Poly1305KeyFormat.ProtoReflect.Descriptor instead.
75func (*XChaCha20Poly1305KeyFormat) Descriptor() ([]byte, []int) {
76	return file_third_party_tink_proto_xchacha20_poly1305_proto_rawDescGZIP(), []int{0}
77}
78
79func (x *XChaCha20Poly1305KeyFormat) GetVersion() uint32 {
80	if x != nil {
81		return x.Version
82	}
83	return 0
84}
85
86// key_type: type.googleapis.com/google.crypto.tink.XChaCha20Poly1305Key
87type XChaCha20Poly1305Key struct {
88	state         protoimpl.MessageState
89	sizeCache     protoimpl.SizeCache
90	unknownFields protoimpl.UnknownFields
91
92	Version  uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
93	KeyValue []byte `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
94}
95
96func (x *XChaCha20Poly1305Key) Reset() {
97	*x = XChaCha20Poly1305Key{}
98	if protoimpl.UnsafeEnabled {
99		mi := &file_third_party_tink_proto_xchacha20_poly1305_proto_msgTypes[1]
100		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
101		ms.StoreMessageInfo(mi)
102	}
103}
104
105func (x *XChaCha20Poly1305Key) String() string {
106	return protoimpl.X.MessageStringOf(x)
107}
108
109func (*XChaCha20Poly1305Key) ProtoMessage() {}
110
111func (x *XChaCha20Poly1305Key) ProtoReflect() protoreflect.Message {
112	mi := &file_third_party_tink_proto_xchacha20_poly1305_proto_msgTypes[1]
113	if protoimpl.UnsafeEnabled && x != nil {
114		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
115		if ms.LoadMessageInfo() == nil {
116			ms.StoreMessageInfo(mi)
117		}
118		return ms
119	}
120	return mi.MessageOf(x)
121}
122
123// Deprecated: Use XChaCha20Poly1305Key.ProtoReflect.Descriptor instead.
124func (*XChaCha20Poly1305Key) Descriptor() ([]byte, []int) {
125	return file_third_party_tink_proto_xchacha20_poly1305_proto_rawDescGZIP(), []int{1}
126}
127
128func (x *XChaCha20Poly1305Key) GetVersion() uint32 {
129	if x != nil {
130		return x.Version
131	}
132	return 0
133}
134
135func (x *XChaCha20Poly1305Key) GetKeyValue() []byte {
136	if x != nil {
137		return x.KeyValue
138	}
139	return nil
140}
141
142var File_third_party_tink_proto_xchacha20_poly1305_proto protoreflect.FileDescriptor
143
144var file_third_party_tink_proto_xchacha20_poly1305_proto_rawDesc = []byte{
145	0x0a, 0x2f, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69,
146	0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x78, 0x63, 0x68, 0x61, 0x63, 0x68, 0x61,
147	0x32, 0x30, 0x5f, 0x70, 0x6f, 0x6c, 0x79, 0x31, 0x33, 0x30, 0x35, 0x2e, 0x70, 0x72, 0x6f, 0x74,
148	0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f,
149	0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x22, 0x36, 0x0a, 0x1a, 0x58, 0x43, 0x68, 0x61, 0x43, 0x68, 0x61,
150	0x32, 0x30, 0x50, 0x6f, 0x6c, 0x79, 0x31, 0x33, 0x30, 0x35, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72,
151	0x6d, 0x61, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01,
152	0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x4d, 0x0a,
153	0x14, 0x58, 0x43, 0x68, 0x61, 0x43, 0x68, 0x61, 0x32, 0x30, 0x50, 0x6f, 0x6c, 0x79, 0x31, 0x33,
154	0x30, 0x35, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
155	0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
156	0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01,
157	0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x5d, 0x0a, 0x1c,
158	0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74,
159	0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b,
160	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
161	0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
162	0x78, 0x63, 0x68, 0x61, 0x63, 0x68, 0x61, 0x32, 0x30, 0x5f, 0x70, 0x6f, 0x6c, 0x79, 0x31, 0x33,
163	0x30, 0x35, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f,
164	0x74, 0x6f, 0x33,
165}
166
167var (
168	file_third_party_tink_proto_xchacha20_poly1305_proto_rawDescOnce sync.Once
169	file_third_party_tink_proto_xchacha20_poly1305_proto_rawDescData = file_third_party_tink_proto_xchacha20_poly1305_proto_rawDesc
170)
171
172func file_third_party_tink_proto_xchacha20_poly1305_proto_rawDescGZIP() []byte {
173	file_third_party_tink_proto_xchacha20_poly1305_proto_rawDescOnce.Do(func() {
174		file_third_party_tink_proto_xchacha20_poly1305_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_xchacha20_poly1305_proto_rawDescData)
175	})
176	return file_third_party_tink_proto_xchacha20_poly1305_proto_rawDescData
177}
178
179var file_third_party_tink_proto_xchacha20_poly1305_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
180var file_third_party_tink_proto_xchacha20_poly1305_proto_goTypes = []interface{}{
181	(*XChaCha20Poly1305KeyFormat)(nil), // 0: google.crypto.tink.XChaCha20Poly1305KeyFormat
182	(*XChaCha20Poly1305Key)(nil),       // 1: google.crypto.tink.XChaCha20Poly1305Key
183}
184var file_third_party_tink_proto_xchacha20_poly1305_proto_depIdxs = []int32{
185	0, // [0:0] is the sub-list for method output_type
186	0, // [0:0] is the sub-list for method input_type
187	0, // [0:0] is the sub-list for extension type_name
188	0, // [0:0] is the sub-list for extension extendee
189	0, // [0:0] is the sub-list for field type_name
190}
191
192func init() { file_third_party_tink_proto_xchacha20_poly1305_proto_init() }
193func file_third_party_tink_proto_xchacha20_poly1305_proto_init() {
194	if File_third_party_tink_proto_xchacha20_poly1305_proto != nil {
195		return
196	}
197	if !protoimpl.UnsafeEnabled {
198		file_third_party_tink_proto_xchacha20_poly1305_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
199			switch v := v.(*XChaCha20Poly1305KeyFormat); 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		file_third_party_tink_proto_xchacha20_poly1305_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
211			switch v := v.(*XChaCha20Poly1305Key); i {
212			case 0:
213				return &v.state
214			case 1:
215				return &v.sizeCache
216			case 2:
217				return &v.unknownFields
218			default:
219				return nil
220			}
221		}
222	}
223	type x struct{}
224	out := protoimpl.TypeBuilder{
225		File: protoimpl.DescBuilder{
226			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
227			RawDescriptor: file_third_party_tink_proto_xchacha20_poly1305_proto_rawDesc,
228			NumEnums:      0,
229			NumMessages:   2,
230			NumExtensions: 0,
231			NumServices:   0,
232		},
233		GoTypes:           file_third_party_tink_proto_xchacha20_poly1305_proto_goTypes,
234		DependencyIndexes: file_third_party_tink_proto_xchacha20_poly1305_proto_depIdxs,
235		MessageInfos:      file_third_party_tink_proto_xchacha20_poly1305_proto_msgTypes,
236	}.Build()
237	File_third_party_tink_proto_xchacha20_poly1305_proto = out.File
238	file_third_party_tink_proto_xchacha20_poly1305_proto_rawDesc = nil
239	file_third_party_tink_proto_xchacha20_poly1305_proto_goTypes = nil
240	file_third_party_tink_proto_xchacha20_poly1305_proto_depIdxs = nil
241}
242