• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017 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/chacha20_poly1305.proto
22
23package chacha20_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 ChaCha20Poly1305KeyFormat struct {
40	state         protoimpl.MessageState
41	sizeCache     protoimpl.SizeCache
42	unknownFields protoimpl.UnknownFields
43}
44
45func (x *ChaCha20Poly1305KeyFormat) Reset() {
46	*x = ChaCha20Poly1305KeyFormat{}
47	if protoimpl.UnsafeEnabled {
48		mi := &file_third_party_tink_proto_chacha20_poly1305_proto_msgTypes[0]
49		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
50		ms.StoreMessageInfo(mi)
51	}
52}
53
54func (x *ChaCha20Poly1305KeyFormat) String() string {
55	return protoimpl.X.MessageStringOf(x)
56}
57
58func (*ChaCha20Poly1305KeyFormat) ProtoMessage() {}
59
60func (x *ChaCha20Poly1305KeyFormat) ProtoReflect() protoreflect.Message {
61	mi := &file_third_party_tink_proto_chacha20_poly1305_proto_msgTypes[0]
62	if protoimpl.UnsafeEnabled && x != nil {
63		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
64		if ms.LoadMessageInfo() == nil {
65			ms.StoreMessageInfo(mi)
66		}
67		return ms
68	}
69	return mi.MessageOf(x)
70}
71
72// Deprecated: Use ChaCha20Poly1305KeyFormat.ProtoReflect.Descriptor instead.
73func (*ChaCha20Poly1305KeyFormat) Descriptor() ([]byte, []int) {
74	return file_third_party_tink_proto_chacha20_poly1305_proto_rawDescGZIP(), []int{0}
75}
76
77// key_type: type.googleapis.com/google.crypto.tink.ChaCha20Poly1305.
78// This key type actually implements ChaCha20Poly1305 as described
79// at https://tools.ietf.org/html/rfc7539#section-2.8.
80type ChaCha20Poly1305Key struct {
81	state         protoimpl.MessageState
82	sizeCache     protoimpl.SizeCache
83	unknownFields protoimpl.UnknownFields
84
85	Version  uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
86	KeyValue []byte `protobuf:"bytes,2,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
87}
88
89func (x *ChaCha20Poly1305Key) Reset() {
90	*x = ChaCha20Poly1305Key{}
91	if protoimpl.UnsafeEnabled {
92		mi := &file_third_party_tink_proto_chacha20_poly1305_proto_msgTypes[1]
93		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
94		ms.StoreMessageInfo(mi)
95	}
96}
97
98func (x *ChaCha20Poly1305Key) String() string {
99	return protoimpl.X.MessageStringOf(x)
100}
101
102func (*ChaCha20Poly1305Key) ProtoMessage() {}
103
104func (x *ChaCha20Poly1305Key) ProtoReflect() protoreflect.Message {
105	mi := &file_third_party_tink_proto_chacha20_poly1305_proto_msgTypes[1]
106	if protoimpl.UnsafeEnabled && x != nil {
107		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108		if ms.LoadMessageInfo() == nil {
109			ms.StoreMessageInfo(mi)
110		}
111		return ms
112	}
113	return mi.MessageOf(x)
114}
115
116// Deprecated: Use ChaCha20Poly1305Key.ProtoReflect.Descriptor instead.
117func (*ChaCha20Poly1305Key) Descriptor() ([]byte, []int) {
118	return file_third_party_tink_proto_chacha20_poly1305_proto_rawDescGZIP(), []int{1}
119}
120
121func (x *ChaCha20Poly1305Key) GetVersion() uint32 {
122	if x != nil {
123		return x.Version
124	}
125	return 0
126}
127
128func (x *ChaCha20Poly1305Key) GetKeyValue() []byte {
129	if x != nil {
130		return x.KeyValue
131	}
132	return nil
133}
134
135var File_third_party_tink_proto_chacha20_poly1305_proto protoreflect.FileDescriptor
136
137var file_third_party_tink_proto_chacha20_poly1305_proto_rawDesc = []byte{
138	0x0a, 0x2e, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69,
139	0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x68, 0x61, 0x63, 0x68, 0x61, 0x32,
140	0x30, 0x5f, 0x70, 0x6f, 0x6c, 0x79, 0x31, 0x33, 0x30, 0x35, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
141	0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e,
142	0x74, 0x69, 0x6e, 0x6b, 0x22, 0x1b, 0x0a, 0x19, 0x43, 0x68, 0x61, 0x43, 0x68, 0x61, 0x32, 0x30,
143	0x50, 0x6f, 0x6c, 0x79, 0x31, 0x33, 0x30, 0x35, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61,
144	0x74, 0x22, 0x4c, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x43, 0x68, 0x61, 0x32, 0x30, 0x50, 0x6f, 0x6c,
145	0x79, 0x31, 0x33, 0x30, 0x35, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
146	0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
147	0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
148	0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42,
149	0x5c, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72,
150	0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50,
151	0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
152	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f,
153	0x74, 0x6f, 0x2f, 0x63, 0x68, 0x61, 0x63, 0x68, 0x61, 0x32, 0x30, 0x5f, 0x70, 0x6f, 0x6c, 0x79,
154	0x31, 0x33, 0x30, 0x35, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70,
155	0x72, 0x6f, 0x74, 0x6f, 0x33,
156}
157
158var (
159	file_third_party_tink_proto_chacha20_poly1305_proto_rawDescOnce sync.Once
160	file_third_party_tink_proto_chacha20_poly1305_proto_rawDescData = file_third_party_tink_proto_chacha20_poly1305_proto_rawDesc
161)
162
163func file_third_party_tink_proto_chacha20_poly1305_proto_rawDescGZIP() []byte {
164	file_third_party_tink_proto_chacha20_poly1305_proto_rawDescOnce.Do(func() {
165		file_third_party_tink_proto_chacha20_poly1305_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_chacha20_poly1305_proto_rawDescData)
166	})
167	return file_third_party_tink_proto_chacha20_poly1305_proto_rawDescData
168}
169
170var file_third_party_tink_proto_chacha20_poly1305_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
171var file_third_party_tink_proto_chacha20_poly1305_proto_goTypes = []interface{}{
172	(*ChaCha20Poly1305KeyFormat)(nil), // 0: google.crypto.tink.ChaCha20Poly1305KeyFormat
173	(*ChaCha20Poly1305Key)(nil),       // 1: google.crypto.tink.ChaCha20Poly1305Key
174}
175var file_third_party_tink_proto_chacha20_poly1305_proto_depIdxs = []int32{
176	0, // [0:0] is the sub-list for method output_type
177	0, // [0:0] is the sub-list for method input_type
178	0, // [0:0] is the sub-list for extension type_name
179	0, // [0:0] is the sub-list for extension extendee
180	0, // [0:0] is the sub-list for field type_name
181}
182
183func init() { file_third_party_tink_proto_chacha20_poly1305_proto_init() }
184func file_third_party_tink_proto_chacha20_poly1305_proto_init() {
185	if File_third_party_tink_proto_chacha20_poly1305_proto != nil {
186		return
187	}
188	if !protoimpl.UnsafeEnabled {
189		file_third_party_tink_proto_chacha20_poly1305_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
190			switch v := v.(*ChaCha20Poly1305KeyFormat); i {
191			case 0:
192				return &v.state
193			case 1:
194				return &v.sizeCache
195			case 2:
196				return &v.unknownFields
197			default:
198				return nil
199			}
200		}
201		file_third_party_tink_proto_chacha20_poly1305_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
202			switch v := v.(*ChaCha20Poly1305Key); i {
203			case 0:
204				return &v.state
205			case 1:
206				return &v.sizeCache
207			case 2:
208				return &v.unknownFields
209			default:
210				return nil
211			}
212		}
213	}
214	type x struct{}
215	out := protoimpl.TypeBuilder{
216		File: protoimpl.DescBuilder{
217			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
218			RawDescriptor: file_third_party_tink_proto_chacha20_poly1305_proto_rawDesc,
219			NumEnums:      0,
220			NumMessages:   2,
221			NumExtensions: 0,
222			NumServices:   0,
223		},
224		GoTypes:           file_third_party_tink_proto_chacha20_poly1305_proto_goTypes,
225		DependencyIndexes: file_third_party_tink_proto_chacha20_poly1305_proto_depIdxs,
226		MessageInfos:      file_third_party_tink_proto_chacha20_poly1305_proto_msgTypes,
227	}.Build()
228	File_third_party_tink_proto_chacha20_poly1305_proto = out.File
229	file_third_party_tink_proto_chacha20_poly1305_proto_rawDesc = nil
230	file_third_party_tink_proto_chacha20_poly1305_proto_goTypes = nil
231	file_third_party_tink_proto_chacha20_poly1305_proto_depIdxs = nil
232}
233