xref: /aosp_15_r20/external/tink/go/proto/aes_siv_go_proto/aes_siv.pb.go (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
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/aes_siv.proto
22
23package aes_siv_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 AesSivKeyFormat struct {
40	state         protoimpl.MessageState
41	sizeCache     protoimpl.SizeCache
42	unknownFields protoimpl.UnknownFields
43
44	// Only valid value is: 64.
45	KeySize uint32 `protobuf:"varint,1,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"`
46	Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
47}
48
49func (x *AesSivKeyFormat) Reset() {
50	*x = AesSivKeyFormat{}
51	if protoimpl.UnsafeEnabled {
52		mi := &file_third_party_tink_proto_aes_siv_proto_msgTypes[0]
53		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54		ms.StoreMessageInfo(mi)
55	}
56}
57
58func (x *AesSivKeyFormat) String() string {
59	return protoimpl.X.MessageStringOf(x)
60}
61
62func (*AesSivKeyFormat) ProtoMessage() {}
63
64func (x *AesSivKeyFormat) ProtoReflect() protoreflect.Message {
65	mi := &file_third_party_tink_proto_aes_siv_proto_msgTypes[0]
66	if protoimpl.UnsafeEnabled && x != nil {
67		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68		if ms.LoadMessageInfo() == nil {
69			ms.StoreMessageInfo(mi)
70		}
71		return ms
72	}
73	return mi.MessageOf(x)
74}
75
76// Deprecated: Use AesSivKeyFormat.ProtoReflect.Descriptor instead.
77func (*AesSivKeyFormat) Descriptor() ([]byte, []int) {
78	return file_third_party_tink_proto_aes_siv_proto_rawDescGZIP(), []int{0}
79}
80
81func (x *AesSivKeyFormat) GetKeySize() uint32 {
82	if x != nil {
83		return x.KeySize
84	}
85	return 0
86}
87
88func (x *AesSivKeyFormat) GetVersion() uint32 {
89	if x != nil {
90		return x.Version
91	}
92	return 0
93}
94
95// key_type: type.googleapis.com/google.crypto.tink.AesSivKey
96type AesSivKey struct {
97	state         protoimpl.MessageState
98	sizeCache     protoimpl.SizeCache
99	unknownFields protoimpl.UnknownFields
100
101	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
102	// First half is AES-CTR key, second is AES-SIV.
103	KeyValue []byte `protobuf:"bytes,2,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
104}
105
106func (x *AesSivKey) Reset() {
107	*x = AesSivKey{}
108	if protoimpl.UnsafeEnabled {
109		mi := &file_third_party_tink_proto_aes_siv_proto_msgTypes[1]
110		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111		ms.StoreMessageInfo(mi)
112	}
113}
114
115func (x *AesSivKey) String() string {
116	return protoimpl.X.MessageStringOf(x)
117}
118
119func (*AesSivKey) ProtoMessage() {}
120
121func (x *AesSivKey) ProtoReflect() protoreflect.Message {
122	mi := &file_third_party_tink_proto_aes_siv_proto_msgTypes[1]
123	if protoimpl.UnsafeEnabled && x != nil {
124		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125		if ms.LoadMessageInfo() == nil {
126			ms.StoreMessageInfo(mi)
127		}
128		return ms
129	}
130	return mi.MessageOf(x)
131}
132
133// Deprecated: Use AesSivKey.ProtoReflect.Descriptor instead.
134func (*AesSivKey) Descriptor() ([]byte, []int) {
135	return file_third_party_tink_proto_aes_siv_proto_rawDescGZIP(), []int{1}
136}
137
138func (x *AesSivKey) GetVersion() uint32 {
139	if x != nil {
140		return x.Version
141	}
142	return 0
143}
144
145func (x *AesSivKey) GetKeyValue() []byte {
146	if x != nil {
147		return x.KeyValue
148	}
149	return nil
150}
151
152var File_third_party_tink_proto_aes_siv_proto protoreflect.FileDescriptor
153
154var file_third_party_tink_proto_aes_siv_proto_rawDesc = []byte{
155	0x0a, 0x24, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69,
156	0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x65, 0x73, 0x5f, 0x73, 0x69, 0x76,
157	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
158	0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x22, 0x46, 0x0a, 0x0f, 0x41, 0x65,
159	0x73, 0x53, 0x69, 0x76, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x19, 0x0a,
160	0x08, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
161	0x07, 0x6b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
162	0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
163	0x6f, 0x6e, 0x22, 0x42, 0x0a, 0x09, 0x41, 0x65, 0x73, 0x53, 0x69, 0x76, 0x4b, 0x65, 0x79, 0x12,
164	0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
165	0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79,
166	0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65,
167	0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x52, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
168	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b,
169	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
170	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b,
171	0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x65, 0x73, 0x5f, 0x73, 0x69,
172	0x76, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
173	0x6f, 0x33,
174}
175
176var (
177	file_third_party_tink_proto_aes_siv_proto_rawDescOnce sync.Once
178	file_third_party_tink_proto_aes_siv_proto_rawDescData = file_third_party_tink_proto_aes_siv_proto_rawDesc
179)
180
181func file_third_party_tink_proto_aes_siv_proto_rawDescGZIP() []byte {
182	file_third_party_tink_proto_aes_siv_proto_rawDescOnce.Do(func() {
183		file_third_party_tink_proto_aes_siv_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_aes_siv_proto_rawDescData)
184	})
185	return file_third_party_tink_proto_aes_siv_proto_rawDescData
186}
187
188var file_third_party_tink_proto_aes_siv_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
189var file_third_party_tink_proto_aes_siv_proto_goTypes = []interface{}{
190	(*AesSivKeyFormat)(nil), // 0: google.crypto.tink.AesSivKeyFormat
191	(*AesSivKey)(nil),       // 1: google.crypto.tink.AesSivKey
192}
193var file_third_party_tink_proto_aes_siv_proto_depIdxs = []int32{
194	0, // [0:0] is the sub-list for method output_type
195	0, // [0:0] is the sub-list for method input_type
196	0, // [0:0] is the sub-list for extension type_name
197	0, // [0:0] is the sub-list for extension extendee
198	0, // [0:0] is the sub-list for field type_name
199}
200
201func init() { file_third_party_tink_proto_aes_siv_proto_init() }
202func file_third_party_tink_proto_aes_siv_proto_init() {
203	if File_third_party_tink_proto_aes_siv_proto != nil {
204		return
205	}
206	if !protoimpl.UnsafeEnabled {
207		file_third_party_tink_proto_aes_siv_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
208			switch v := v.(*AesSivKeyFormat); i {
209			case 0:
210				return &v.state
211			case 1:
212				return &v.sizeCache
213			case 2:
214				return &v.unknownFields
215			default:
216				return nil
217			}
218		}
219		file_third_party_tink_proto_aes_siv_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
220			switch v := v.(*AesSivKey); i {
221			case 0:
222				return &v.state
223			case 1:
224				return &v.sizeCache
225			case 2:
226				return &v.unknownFields
227			default:
228				return nil
229			}
230		}
231	}
232	type x struct{}
233	out := protoimpl.TypeBuilder{
234		File: protoimpl.DescBuilder{
235			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
236			RawDescriptor: file_third_party_tink_proto_aes_siv_proto_rawDesc,
237			NumEnums:      0,
238			NumMessages:   2,
239			NumExtensions: 0,
240			NumServices:   0,
241		},
242		GoTypes:           file_third_party_tink_proto_aes_siv_proto_goTypes,
243		DependencyIndexes: file_third_party_tink_proto_aes_siv_proto_depIdxs,
244		MessageInfos:      file_third_party_tink_proto_aes_siv_proto_msgTypes,
245	}.Build()
246	File_third_party_tink_proto_aes_siv_proto = out.File
247	file_third_party_tink_proto_aes_siv_proto_rawDesc = nil
248	file_third_party_tink_proto_aes_siv_proto_goTypes = nil
249	file_third_party_tink_proto_aes_siv_proto_depIdxs = nil
250}
251