| // 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/tink.proto |
| |
| package tink_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 KeyStatusType int32 |
| |
| const ( |
| KeyStatusType_UNKNOWN_STATUS KeyStatusType = 0 |
| KeyStatusType_ENABLED KeyStatusType = 1 |
| KeyStatusType_DISABLED KeyStatusType = 2 |
| KeyStatusType_DESTROYED KeyStatusType = 3 |
| ) |
| |
| var KeyStatusType_name = map[int32]string{ |
| 0: "UNKNOWN_STATUS", |
| 1: "ENABLED", |
| 2: "DISABLED", |
| 3: "DESTROYED", |
| } |
| |
| var KeyStatusType_value = map[string]int32{ |
| "UNKNOWN_STATUS": 0, |
| "ENABLED": 1, |
| "DISABLED": 2, |
| "DESTROYED": 3, |
| } |
| |
| func (x KeyStatusType) String() string { |
| return proto.EnumName(KeyStatusType_name, int32(x)) |
| } |
| |
| func (KeyStatusType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{0} |
| } |
| |
| // Tink produces and accepts ciphertexts or signatures that consist |
| // of a prefix and a payload. The payload and its format is determined |
| // entirely by the primitive, but the prefix has to be one of the following |
| // 4 types: |
| // - Legacy: prefix is 5 bytes, starts with \x00 and followed by a 4-byte |
| // key id that is computed from the key material. |
| // - Crunchy: prefix is 5 bytes, starts with \x00 and followed by a 4-byte |
| // key id that is generated randomly. |
| // - Tink : prefix is 5 bytes, starts with \x01 and followed by 4-byte |
| // key id that is generated randomly. |
| // - Raw : prefix is 0 byte, i.e., empty. |
| type OutputPrefixType int32 |
| |
| const ( |
| OutputPrefixType_UNKNOWN_PREFIX OutputPrefixType = 0 |
| OutputPrefixType_TINK OutputPrefixType = 1 |
| OutputPrefixType_LEGACY OutputPrefixType = 2 |
| OutputPrefixType_RAW OutputPrefixType = 3 |
| // CRUNCHY is like LEGACY, but with two differences: |
| // - Its key id is generated randomly (like TINK) |
| // - Its signature schemes don't append zero to sign messages |
| OutputPrefixType_CRUNCHY OutputPrefixType = 4 |
| ) |
| |
| var OutputPrefixType_name = map[int32]string{ |
| 0: "UNKNOWN_PREFIX", |
| 1: "TINK", |
| 2: "LEGACY", |
| 3: "RAW", |
| 4: "CRUNCHY", |
| } |
| |
| var OutputPrefixType_value = map[string]int32{ |
| "UNKNOWN_PREFIX": 0, |
| "TINK": 1, |
| "LEGACY": 2, |
| "RAW": 3, |
| "CRUNCHY": 4, |
| } |
| |
| func (x OutputPrefixType) String() string { |
| return proto.EnumName(OutputPrefixType_name, int32(x)) |
| } |
| |
| func (OutputPrefixType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{1} |
| } |
| |
| type KeyData_KeyMaterialType int32 |
| |
| const ( |
| KeyData_UNKNOWN_KEYMATERIAL KeyData_KeyMaterialType = 0 |
| KeyData_SYMMETRIC KeyData_KeyMaterialType = 1 |
| KeyData_ASYMMETRIC_PRIVATE KeyData_KeyMaterialType = 2 |
| KeyData_ASYMMETRIC_PUBLIC KeyData_KeyMaterialType = 3 |
| KeyData_REMOTE KeyData_KeyMaterialType = 4 |
| ) |
| |
| var KeyData_KeyMaterialType_name = map[int32]string{ |
| 0: "UNKNOWN_KEYMATERIAL", |
| 1: "SYMMETRIC", |
| 2: "ASYMMETRIC_PRIVATE", |
| 3: "ASYMMETRIC_PUBLIC", |
| 4: "REMOTE", |
| } |
| |
| var KeyData_KeyMaterialType_value = map[string]int32{ |
| "UNKNOWN_KEYMATERIAL": 0, |
| "SYMMETRIC": 1, |
| "ASYMMETRIC_PRIVATE": 2, |
| "ASYMMETRIC_PUBLIC": 3, |
| "REMOTE": 4, |
| } |
| |
| func (x KeyData_KeyMaterialType) String() string { |
| return proto.EnumName(KeyData_KeyMaterialType_name, int32(x)) |
| } |
| |
| func (KeyData_KeyMaterialType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{1, 0} |
| } |
| |
| type KeyTemplate struct { |
| // Required. |
| TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` |
| // Optional. |
| // If missing, it means the key type doesn't require a *KeyFormat proto. |
| Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| // Optional. |
| // If missing, uses OutputPrefixType.TINK. |
| OutputPrefixType OutputPrefixType `protobuf:"varint,3,opt,name=output_prefix_type,json=outputPrefixType,proto3,enum=google.crypto.tink.OutputPrefixType" json:"output_prefix_type,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *KeyTemplate) Reset() { *m = KeyTemplate{} } |
| func (m *KeyTemplate) String() string { return proto.CompactTextString(m) } |
| func (*KeyTemplate) ProtoMessage() {} |
| func (*KeyTemplate) Descriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{0} |
| } |
| |
| func (m *KeyTemplate) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_KeyTemplate.Unmarshal(m, b) |
| } |
| func (m *KeyTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_KeyTemplate.Marshal(b, m, deterministic) |
| } |
| func (m *KeyTemplate) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_KeyTemplate.Merge(m, src) |
| } |
| func (m *KeyTemplate) XXX_Size() int { |
| return xxx_messageInfo_KeyTemplate.Size(m) |
| } |
| func (m *KeyTemplate) XXX_DiscardUnknown() { |
| xxx_messageInfo_KeyTemplate.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_KeyTemplate proto.InternalMessageInfo |
| |
| func (m *KeyTemplate) GetTypeUrl() string { |
| if m != nil { |
| return m.TypeUrl |
| } |
| return "" |
| } |
| |
| func (m *KeyTemplate) GetValue() []byte { |
| if m != nil { |
| return m.Value |
| } |
| return nil |
| } |
| |
| func (m *KeyTemplate) GetOutputPrefixType() OutputPrefixType { |
| if m != nil { |
| return m.OutputPrefixType |
| } |
| return OutputPrefixType_UNKNOWN_PREFIX |
| } |
| |
| // The actual *Key-proto is wrapped in a KeyData message, which in addition |
| // to this serialized proto contains also type_url identifying the |
| // definition of *Key-proto (as in KeyFormat-message), and some extra metadata |
| // about the type key material. |
| type KeyData struct { |
| // Required. |
| TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` |
| // Required. |
| Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| // Required. |
| KeyMaterialType KeyData_KeyMaterialType `protobuf:"varint,3,opt,name=key_material_type,json=keyMaterialType,proto3,enum=google.crypto.tink.KeyData_KeyMaterialType" json:"key_material_type,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *KeyData) Reset() { *m = KeyData{} } |
| func (m *KeyData) String() string { return proto.CompactTextString(m) } |
| func (*KeyData) ProtoMessage() {} |
| func (*KeyData) Descriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{1} |
| } |
| |
| func (m *KeyData) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_KeyData.Unmarshal(m, b) |
| } |
| func (m *KeyData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_KeyData.Marshal(b, m, deterministic) |
| } |
| func (m *KeyData) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_KeyData.Merge(m, src) |
| } |
| func (m *KeyData) XXX_Size() int { |
| return xxx_messageInfo_KeyData.Size(m) |
| } |
| func (m *KeyData) XXX_DiscardUnknown() { |
| xxx_messageInfo_KeyData.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_KeyData proto.InternalMessageInfo |
| |
| func (m *KeyData) GetTypeUrl() string { |
| if m != nil { |
| return m.TypeUrl |
| } |
| return "" |
| } |
| |
| func (m *KeyData) GetValue() []byte { |
| if m != nil { |
| return m.Value |
| } |
| return nil |
| } |
| |
| func (m *KeyData) GetKeyMaterialType() KeyData_KeyMaterialType { |
| if m != nil { |
| return m.KeyMaterialType |
| } |
| return KeyData_UNKNOWN_KEYMATERIAL |
| } |
| |
| // A Tink user works usually not with single keys, but with keysets, |
| // to enable key rotation. The keys in a keyset can belong to different |
| // implementations/key types, but must all implement the same primitive. |
| // Any given keyset (and any given key) can be used for one primitive only. |
| type Keyset struct { |
| // Identifies key used to generate new crypto data (encrypt, sign). |
| // Required. |
| PrimaryKeyId uint32 `protobuf:"varint,1,opt,name=primary_key_id,json=primaryKeyId,proto3" json:"primary_key_id,omitempty"` |
| // Actual keys in the Keyset. |
| // Required. |
| Key []*Keyset_Key `protobuf:"bytes,2,rep,name=key,proto3" json:"key,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Keyset) Reset() { *m = Keyset{} } |
| func (m *Keyset) String() string { return proto.CompactTextString(m) } |
| func (*Keyset) ProtoMessage() {} |
| func (*Keyset) Descriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{2} |
| } |
| |
| func (m *Keyset) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Keyset.Unmarshal(m, b) |
| } |
| func (m *Keyset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Keyset.Marshal(b, m, deterministic) |
| } |
| func (m *Keyset) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Keyset.Merge(m, src) |
| } |
| func (m *Keyset) XXX_Size() int { |
| return xxx_messageInfo_Keyset.Size(m) |
| } |
| func (m *Keyset) XXX_DiscardUnknown() { |
| xxx_messageInfo_Keyset.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Keyset proto.InternalMessageInfo |
| |
| func (m *Keyset) GetPrimaryKeyId() uint32 { |
| if m != nil { |
| return m.PrimaryKeyId |
| } |
| return 0 |
| } |
| |
| func (m *Keyset) GetKey() []*Keyset_Key { |
| if m != nil { |
| return m.Key |
| } |
| return nil |
| } |
| |
| type Keyset_Key struct { |
| // Contains the actual, instantiation specific key proto. |
| // By convention, each key proto contains a version field. |
| KeyData *KeyData `protobuf:"bytes,1,opt,name=key_data,json=keyData,proto3" json:"key_data,omitempty"` |
| Status KeyStatusType `protobuf:"varint,2,opt,name=status,proto3,enum=google.crypto.tink.KeyStatusType" json:"status,omitempty"` |
| // Identifies a key within a keyset, is a part of metadata |
| // of a ciphertext/signature. |
| KeyId uint32 `protobuf:"varint,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` |
| // Determines the prefix of the ciphertexts/signatures produced by this key. |
| // This value is copied verbatim from the key template. |
| OutputPrefixType OutputPrefixType `protobuf:"varint,4,opt,name=output_prefix_type,json=outputPrefixType,proto3,enum=google.crypto.tink.OutputPrefixType" json:"output_prefix_type,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Keyset_Key) Reset() { *m = Keyset_Key{} } |
| func (m *Keyset_Key) String() string { return proto.CompactTextString(m) } |
| func (*Keyset_Key) ProtoMessage() {} |
| func (*Keyset_Key) Descriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{2, 0} |
| } |
| |
| func (m *Keyset_Key) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Keyset_Key.Unmarshal(m, b) |
| } |
| func (m *Keyset_Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Keyset_Key.Marshal(b, m, deterministic) |
| } |
| func (m *Keyset_Key) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Keyset_Key.Merge(m, src) |
| } |
| func (m *Keyset_Key) XXX_Size() int { |
| return xxx_messageInfo_Keyset_Key.Size(m) |
| } |
| func (m *Keyset_Key) XXX_DiscardUnknown() { |
| xxx_messageInfo_Keyset_Key.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Keyset_Key proto.InternalMessageInfo |
| |
| func (m *Keyset_Key) GetKeyData() *KeyData { |
| if m != nil { |
| return m.KeyData |
| } |
| return nil |
| } |
| |
| func (m *Keyset_Key) GetStatus() KeyStatusType { |
| if m != nil { |
| return m.Status |
| } |
| return KeyStatusType_UNKNOWN_STATUS |
| } |
| |
| func (m *Keyset_Key) GetKeyId() uint32 { |
| if m != nil { |
| return m.KeyId |
| } |
| return 0 |
| } |
| |
| func (m *Keyset_Key) GetOutputPrefixType() OutputPrefixType { |
| if m != nil { |
| return m.OutputPrefixType |
| } |
| return OutputPrefixType_UNKNOWN_PREFIX |
| } |
| |
| // Represents a "safe" Keyset that doesn't contain any actual key material, |
| // thus can be used for logging or monitoring. Most fields are copied from |
| // Keyset. |
| type KeysetInfo struct { |
| // See Keyset.primary_key_id. |
| PrimaryKeyId uint32 `protobuf:"varint,1,opt,name=primary_key_id,json=primaryKeyId,proto3" json:"primary_key_id,omitempty"` |
| // KeyInfos in the KeysetInfo. |
| // Each KeyInfo is corresponding to a Key in the corresponding Keyset. |
| KeyInfo []*KeysetInfo_KeyInfo `protobuf:"bytes,2,rep,name=key_info,json=keyInfo,proto3" json:"key_info,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *KeysetInfo) Reset() { *m = KeysetInfo{} } |
| func (m *KeysetInfo) String() string { return proto.CompactTextString(m) } |
| func (*KeysetInfo) ProtoMessage() {} |
| func (*KeysetInfo) Descriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{3} |
| } |
| |
| func (m *KeysetInfo) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_KeysetInfo.Unmarshal(m, b) |
| } |
| func (m *KeysetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_KeysetInfo.Marshal(b, m, deterministic) |
| } |
| func (m *KeysetInfo) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_KeysetInfo.Merge(m, src) |
| } |
| func (m *KeysetInfo) XXX_Size() int { |
| return xxx_messageInfo_KeysetInfo.Size(m) |
| } |
| func (m *KeysetInfo) XXX_DiscardUnknown() { |
| xxx_messageInfo_KeysetInfo.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_KeysetInfo proto.InternalMessageInfo |
| |
| func (m *KeysetInfo) GetPrimaryKeyId() uint32 { |
| if m != nil { |
| return m.PrimaryKeyId |
| } |
| return 0 |
| } |
| |
| func (m *KeysetInfo) GetKeyInfo() []*KeysetInfo_KeyInfo { |
| if m != nil { |
| return m.KeyInfo |
| } |
| return nil |
| } |
| |
| type KeysetInfo_KeyInfo struct { |
| // the type url of this key, |
| // e.g., type.googleapis.com/google.crypto.tink.HmacKey. |
| TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` |
| // See Keyset.Key.status. |
| Status KeyStatusType `protobuf:"varint,2,opt,name=status,proto3,enum=google.crypto.tink.KeyStatusType" json:"status,omitempty"` |
| // See Keyset.Key.key_id. |
| KeyId uint32 `protobuf:"varint,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` |
| // See Keyset.Key.output_prefix_type. |
| OutputPrefixType OutputPrefixType `protobuf:"varint,4,opt,name=output_prefix_type,json=outputPrefixType,proto3,enum=google.crypto.tink.OutputPrefixType" json:"output_prefix_type,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *KeysetInfo_KeyInfo) Reset() { *m = KeysetInfo_KeyInfo{} } |
| func (m *KeysetInfo_KeyInfo) String() string { return proto.CompactTextString(m) } |
| func (*KeysetInfo_KeyInfo) ProtoMessage() {} |
| func (*KeysetInfo_KeyInfo) Descriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{3, 0} |
| } |
| |
| func (m *KeysetInfo_KeyInfo) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_KeysetInfo_KeyInfo.Unmarshal(m, b) |
| } |
| func (m *KeysetInfo_KeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_KeysetInfo_KeyInfo.Marshal(b, m, deterministic) |
| } |
| func (m *KeysetInfo_KeyInfo) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_KeysetInfo_KeyInfo.Merge(m, src) |
| } |
| func (m *KeysetInfo_KeyInfo) XXX_Size() int { |
| return xxx_messageInfo_KeysetInfo_KeyInfo.Size(m) |
| } |
| func (m *KeysetInfo_KeyInfo) XXX_DiscardUnknown() { |
| xxx_messageInfo_KeysetInfo_KeyInfo.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_KeysetInfo_KeyInfo proto.InternalMessageInfo |
| |
| func (m *KeysetInfo_KeyInfo) GetTypeUrl() string { |
| if m != nil { |
| return m.TypeUrl |
| } |
| return "" |
| } |
| |
| func (m *KeysetInfo_KeyInfo) GetStatus() KeyStatusType { |
| if m != nil { |
| return m.Status |
| } |
| return KeyStatusType_UNKNOWN_STATUS |
| } |
| |
| func (m *KeysetInfo_KeyInfo) GetKeyId() uint32 { |
| if m != nil { |
| return m.KeyId |
| } |
| return 0 |
| } |
| |
| func (m *KeysetInfo_KeyInfo) GetOutputPrefixType() OutputPrefixType { |
| if m != nil { |
| return m.OutputPrefixType |
| } |
| return OutputPrefixType_UNKNOWN_PREFIX |
| } |
| |
| // Represents a keyset that is encrypted with a master key. |
| type EncryptedKeyset struct { |
| // Required. |
| EncryptedKeyset []byte `protobuf:"bytes,2,opt,name=encrypted_keyset,json=encryptedKeyset,proto3" json:"encrypted_keyset,omitempty"` |
| // Optional. |
| KeysetInfo *KeysetInfo `protobuf:"bytes,3,opt,name=keyset_info,json=keysetInfo,proto3" json:"keyset_info,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *EncryptedKeyset) Reset() { *m = EncryptedKeyset{} } |
| func (m *EncryptedKeyset) String() string { return proto.CompactTextString(m) } |
| func (*EncryptedKeyset) ProtoMessage() {} |
| func (*EncryptedKeyset) Descriptor() ([]byte, []int) { |
| return fileDescriptor_a580d178bdd2ec8a, []int{4} |
| } |
| |
| func (m *EncryptedKeyset) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_EncryptedKeyset.Unmarshal(m, b) |
| } |
| func (m *EncryptedKeyset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_EncryptedKeyset.Marshal(b, m, deterministic) |
| } |
| func (m *EncryptedKeyset) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_EncryptedKeyset.Merge(m, src) |
| } |
| func (m *EncryptedKeyset) XXX_Size() int { |
| return xxx_messageInfo_EncryptedKeyset.Size(m) |
| } |
| func (m *EncryptedKeyset) XXX_DiscardUnknown() { |
| xxx_messageInfo_EncryptedKeyset.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_EncryptedKeyset proto.InternalMessageInfo |
| |
| func (m *EncryptedKeyset) GetEncryptedKeyset() []byte { |
| if m != nil { |
| return m.EncryptedKeyset |
| } |
| return nil |
| } |
| |
| func (m *EncryptedKeyset) GetKeysetInfo() *KeysetInfo { |
| if m != nil { |
| return m.KeysetInfo |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterEnum("google.crypto.tink.KeyStatusType", KeyStatusType_name, KeyStatusType_value) |
| proto.RegisterEnum("google.crypto.tink.OutputPrefixType", OutputPrefixType_name, OutputPrefixType_value) |
| proto.RegisterEnum("google.crypto.tink.KeyData_KeyMaterialType", KeyData_KeyMaterialType_name, KeyData_KeyMaterialType_value) |
| proto.RegisterType((*KeyTemplate)(nil), "google.crypto.tink.KeyTemplate") |
| proto.RegisterType((*KeyData)(nil), "google.crypto.tink.KeyData") |
| proto.RegisterType((*Keyset)(nil), "google.crypto.tink.Keyset") |
| proto.RegisterType((*Keyset_Key)(nil), "google.crypto.tink.Keyset.Key") |
| proto.RegisterType((*KeysetInfo)(nil), "google.crypto.tink.KeysetInfo") |
| proto.RegisterType((*KeysetInfo_KeyInfo)(nil), "google.crypto.tink.KeysetInfo.KeyInfo") |
| proto.RegisterType((*EncryptedKeyset)(nil), "google.crypto.tink.EncryptedKeyset") |
| } |
| |
| func init() { proto.RegisterFile("proto/tink.proto", fileDescriptor_a580d178bdd2ec8a) } |
| |
| var fileDescriptor_a580d178bdd2ec8a = []byte{ |
| // 667 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0xcf, 0x6e, 0xd3, 0x4e, |
| 0x10, 0xae, 0xed, 0x34, 0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