| // Copyright 2020 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/hkdf_prf.proto |
| |
| package hkdf_prf_proto |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| common_go_proto "github.com/google/tink/go/proto/common_go_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 HkdfPrfParams struct { |
| Hash common_go_proto.HashType `protobuf:"varint,1,opt,name=hash,proto3,enum=google.crypto.tink.HashType" json:"hash,omitempty"` |
| // Salt, optional in RFC 5869. Using "" is equivalent to zeros of length up to |
| // the block length of the HMac. |
| Salt []byte `protobuf:"bytes,2,opt,name=salt,proto3" json:"salt,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *HkdfPrfParams) Reset() { *m = HkdfPrfParams{} } |
| func (m *HkdfPrfParams) String() string { return proto.CompactTextString(m) } |
| func (*HkdfPrfParams) ProtoMessage() {} |
| func (*HkdfPrfParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c59dfa5362ca5fc0, []int{0} |
| } |
| |
| func (m *HkdfPrfParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_HkdfPrfParams.Unmarshal(m, b) |
| } |
| func (m *HkdfPrfParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_HkdfPrfParams.Marshal(b, m, deterministic) |
| } |
| func (m *HkdfPrfParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_HkdfPrfParams.Merge(m, src) |
| } |
| func (m *HkdfPrfParams) XXX_Size() int { |
| return xxx_messageInfo_HkdfPrfParams.Size(m) |
| } |
| func (m *HkdfPrfParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_HkdfPrfParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_HkdfPrfParams proto.InternalMessageInfo |
| |
| func (m *HkdfPrfParams) GetHash() common_go_proto.HashType { |
| if m != nil { |
| return m.Hash |
| } |
| return common_go_proto.HashType_UNKNOWN_HASH |
| } |
| |
| func (m *HkdfPrfParams) GetSalt() []byte { |
| if m != nil { |
| return m.Salt |
| } |
| return nil |
| } |
| |
| type HkdfPrfKey struct { |
| Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` |
| Params *HkdfPrfParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` |
| KeyValue []byte `protobuf:"bytes,3,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 *HkdfPrfKey) Reset() { *m = HkdfPrfKey{} } |
| func (m *HkdfPrfKey) String() string { return proto.CompactTextString(m) } |
| func (*HkdfPrfKey) ProtoMessage() {} |
| func (*HkdfPrfKey) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c59dfa5362ca5fc0, []int{1} |
| } |
| |
| func (m *HkdfPrfKey) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_HkdfPrfKey.Unmarshal(m, b) |
| } |
| func (m *HkdfPrfKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_HkdfPrfKey.Marshal(b, m, deterministic) |
| } |
| func (m *HkdfPrfKey) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_HkdfPrfKey.Merge(m, src) |
| } |
| func (m *HkdfPrfKey) XXX_Size() int { |
| return xxx_messageInfo_HkdfPrfKey.Size(m) |
| } |
| func (m *HkdfPrfKey) XXX_DiscardUnknown() { |
| xxx_messageInfo_HkdfPrfKey.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_HkdfPrfKey proto.InternalMessageInfo |
| |
| func (m *HkdfPrfKey) GetVersion() uint32 { |
| if m != nil { |
| return m.Version |
| } |
| return 0 |
| } |
| |
| func (m *HkdfPrfKey) GetParams() *HkdfPrfParams { |
| if m != nil { |
| return m.Params |
| } |
| return nil |
| } |
| |
| func (m *HkdfPrfKey) GetKeyValue() []byte { |
| if m != nil { |
| return m.KeyValue |
| } |
| return nil |
| } |
| |
| type HkdfPrfKeyFormat struct { |
| Params *HkdfPrfParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` |
| KeySize uint32 `protobuf:"varint,2,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` |
| Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *HkdfPrfKeyFormat) Reset() { *m = HkdfPrfKeyFormat{} } |
| func (m *HkdfPrfKeyFormat) String() string { return proto.CompactTextString(m) } |
| func (*HkdfPrfKeyFormat) ProtoMessage() {} |
| func (*HkdfPrfKeyFormat) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c59dfa5362ca5fc0, []int{2} |
| } |
| |
| func (m *HkdfPrfKeyFormat) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_HkdfPrfKeyFormat.Unmarshal(m, b) |
| } |
| func (m *HkdfPrfKeyFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_HkdfPrfKeyFormat.Marshal(b, m, deterministic) |
| } |
| func (m *HkdfPrfKeyFormat) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_HkdfPrfKeyFormat.Merge(m, src) |
| } |
| func (m *HkdfPrfKeyFormat) XXX_Size() int { |
| return xxx_messageInfo_HkdfPrfKeyFormat.Size(m) |
| } |
| func (m *HkdfPrfKeyFormat) XXX_DiscardUnknown() { |
| xxx_messageInfo_HkdfPrfKeyFormat.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_HkdfPrfKeyFormat proto.InternalMessageInfo |
| |
| func (m *HkdfPrfKeyFormat) GetParams() *HkdfPrfParams { |
| if m != nil { |
| return m.Params |
| } |
| return nil |
| } |
| |
| func (m *HkdfPrfKeyFormat) GetKeySize() uint32 { |
| if m != nil { |
| return m.KeySize |
| } |
| return 0 |
| } |
| |
| func (m *HkdfPrfKeyFormat) GetVersion() uint32 { |
| if m != nil { |
| return m.Version |
| } |
| return 0 |
| } |
| |
| func init() { |
| proto.RegisterType((*HkdfPrfParams)(nil), "google.crypto.tink.HkdfPrfParams") |
| proto.RegisterType((*HkdfPrfKey)(nil), "google.crypto.tink.HkdfPrfKey") |
| proto.RegisterType((*HkdfPrfKeyFormat)(nil), "google.crypto.tink.HkdfPrfKeyFormat") |
| } |
| |
| func init() { |
| proto.RegisterFile("proto/hkdf_prf.proto", fileDescriptor_c59dfa5362ca5fc0) |
| } |
| |
| var fileDescriptor_c59dfa5362ca5fc0 = []byte{ |
| // 312 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x41, 0x4b, 0x02, 0x41, |
| 0x1c, 0xc5, 0x59, 0x15, 0xad, 0x7f, 0x19, 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