| // Copyright 2018 Google Inc. |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| // |
| //////////////////////////////////////////////////////////////////////////////// |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: third_party/tink/proto/aes_siv.proto |
| |
| package aes_siv_go_proto |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| math "math" |
| ) |
| |
| // 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| type AesSivKeyFormat struct { |
| // Only valid value is: 64. |
| KeySize uint32 `protobuf:"varint,1,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AesSivKeyFormat) Reset() { *m = AesSivKeyFormat{} } |
| func (m *AesSivKeyFormat) String() string { return proto.CompactTextString(m) } |
| func (*AesSivKeyFormat) ProtoMessage() {} |
| func (*AesSivKeyFormat) Descriptor() ([]byte, []int) { |
| return fileDescriptor_43b3629c0a9079e5, []int{0} |
| } |
| |
| func (m *AesSivKeyFormat) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_AesSivKeyFormat.Unmarshal(m, b) |
| } |
| func (m *AesSivKeyFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_AesSivKeyFormat.Marshal(b, m, deterministic) |
| } |
| func (m *AesSivKeyFormat) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AesSivKeyFormat.Merge(m, src) |
| } |
| func (m *AesSivKeyFormat) XXX_Size() int { |
| return xxx_messageInfo_AesSivKeyFormat.Size(m) |
| } |
| func (m *AesSivKeyFormat) XXX_DiscardUnknown() { |
| xxx_messageInfo_AesSivKeyFormat.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AesSivKeyFormat proto.InternalMessageInfo |
| |
| func (m *AesSivKeyFormat) GetKeySize() uint32 { |
| if m != nil { |
| return m.KeySize |
| } |
| return 0 |
| } |
| |
| // key_type: type.googleapis.com/google.crypto.tink.AesSivKey |
| type AesSivKey struct { |
| Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` |
| // First half is AES-CTR key, second is AES-SIV. |
| KeyValue []byte `protobuf:"bytes,2,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AesSivKey) Reset() { *m = AesSivKey{} } |
| func (m *AesSivKey) String() string { return proto.CompactTextString(m) } |
| func (*AesSivKey) ProtoMessage() {} |
| func (*AesSivKey) Descriptor() ([]byte, []int) { |
| return fileDescriptor_43b3629c0a9079e5, []int{1} |
| } |
| |
| func (m *AesSivKey) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_AesSivKey.Unmarshal(m, b) |
| } |
| func (m *AesSivKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_AesSivKey.Marshal(b, m, deterministic) |
| } |
| func (m *AesSivKey) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AesSivKey.Merge(m, src) |
| } |
| func (m *AesSivKey) XXX_Size() int { |
| return xxx_messageInfo_AesSivKey.Size(m) |
| } |
| func (m *AesSivKey) XXX_DiscardUnknown() { |
| xxx_messageInfo_AesSivKey.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AesSivKey proto.InternalMessageInfo |
| |
| func (m *AesSivKey) GetVersion() uint32 { |
| if m != nil { |
| return m.Version |
| } |
| return 0 |
| } |
| |
| func (m *AesSivKey) GetKeyValue() []byte { |
| if m != nil { |
| return m.KeyValue |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*AesSivKeyFormat)(nil), "google.crypto.tink.AesSivKeyFormat") |
| proto.RegisterType((*AesSivKey)(nil), "google.crypto.tink.AesSivKey") |
| } |
| |
| func init() { |
| proto.RegisterFile("proto/aes_siv.proto", fileDescriptor_43b3629c0a9079e5) |
| } |
| |
| var fileDescriptor_43b3629c0a9079e5 = []byte{ |
| // 218 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0xc9, 0xc8, 0x2c, |
| 0x4a, 0x89, 0x2f, 0x48, 0x2c, 0x2a, 0xa9, 0xd4, 0x2f, 0xc9, 0xcc, 0xcb, 0xd6, 0x2f, 0x28, 0xca, |
| 0x2f, 0xc9, 0xd7, 0x4f, 0x4c, 0x2d, 0x8e, 0x2f, 0xce, 0x2c, 0xd3, 0x03, 0xf3, 0x84, 0x84, 0xd2, |
| 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0x92, 0x8b, 0x2a, 0x0b, 0x4a, 0xf2, 0xf5, 0x40, 0xea, 0x94, |
| 0x74, 0xb8, 0xf8, 0x1d, 0x53, 0x8b, 0x83, 0x33, 0xcb, 0xbc, 0x53, 0x2b, 0xdd, 0xf2, 0x8b, 0x72, |
| 0x13, 0x4b, 0x84, 0x24, 0xb9, 0x38, 0xb2, 0x53, 0x2b, 0xe3, 0x8b, 0x33, 0xab, 0x52, 0x25, 0x18, |
| 0x15, 0x18, 0x35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