| // 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/ed25519.proto |
| |
| package ed25519_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 |
| |
| // key_type: type.googleapis.com/google.crypto.tink.Ed25519PublicKey |
| type Ed25519PublicKey struct { |
| // Required. |
| Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` |
| // The public key is 32 bytes, encoded according to |
| // https://tools.ietf.org/html/rfc8032#section-5.1.2. |
| // Required. |
| 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 *Ed25519PublicKey) Reset() { *m = Ed25519PublicKey{} } |
| func (m *Ed25519PublicKey) String() string { return proto.CompactTextString(m) } |
| func (*Ed25519PublicKey) ProtoMessage() {} |
| func (*Ed25519PublicKey) Descriptor() ([]byte, []int) { |
| return fileDescriptor_677c38422e9f421e, []int{0} |
| } |
| |
| func (m *Ed25519PublicKey) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Ed25519PublicKey.Unmarshal(m, b) |
| } |
| func (m *Ed25519PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Ed25519PublicKey.Marshal(b, m, deterministic) |
| } |
| func (m *Ed25519PublicKey) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Ed25519PublicKey.Merge(m, src) |
| } |
| func (m *Ed25519PublicKey) XXX_Size() int { |
| return xxx_messageInfo_Ed25519PublicKey.Size(m) |
| } |
| func (m *Ed25519PublicKey) XXX_DiscardUnknown() { |
| xxx_messageInfo_Ed25519PublicKey.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Ed25519PublicKey proto.InternalMessageInfo |
| |
| func (m *Ed25519PublicKey) GetVersion() uint32 { |
| if m != nil { |
| return m.Version |
| } |
| return 0 |
| } |
| |
| func (m *Ed25519PublicKey) GetKeyValue() []byte { |
| if m != nil { |
| return m.KeyValue |
| } |
| return nil |
| } |
| |
| // key_type: type.googleapis.com/google.crypto.tink.Ed25519PrivateKey |
| type Ed25519PrivateKey struct { |
| // Required. |
| Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` |
| // The private key is 32 bytes of cryptographically secure random data. |
| // See https://tools.ietf.org/html/rfc8032#section-5.1.5. |
| // Required. |
| KeyValue []byte `protobuf:"bytes,2,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` |
| // The corresponding public key. |
| PublicKey *Ed25519PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Ed25519PrivateKey) Reset() { *m = Ed25519PrivateKey{} } |
| func (m *Ed25519PrivateKey) String() string { return proto.CompactTextString(m) } |
| func (*Ed25519PrivateKey) ProtoMessage() {} |
| func (*Ed25519PrivateKey) Descriptor() ([]byte, []int) { |
| return fileDescriptor_677c38422e9f421e, []int{1} |
| } |
| |
| func (m *Ed25519PrivateKey) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Ed25519PrivateKey.Unmarshal(m, b) |
| } |
| func (m *Ed25519PrivateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Ed25519PrivateKey.Marshal(b, m, deterministic) |
| } |
| func (m *Ed25519PrivateKey) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Ed25519PrivateKey.Merge(m, src) |
| } |
| func (m *Ed25519PrivateKey) XXX_Size() int { |
| return xxx_messageInfo_Ed25519PrivateKey.Size(m) |
| } |
| func (m *Ed25519PrivateKey) XXX_DiscardUnknown() { |
| xxx_messageInfo_Ed25519PrivateKey.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Ed25519PrivateKey proto.InternalMessageInfo |
| |
| func (m *Ed25519PrivateKey) GetVersion() uint32 { |
| if m != nil { |
| return m.Version |
| } |
| return 0 |
| } |
| |
| func (m *Ed25519PrivateKey) GetKeyValue() []byte { |
| if m != nil { |
| return m.KeyValue |
| } |
| return nil |
| } |
| |
| func (m *Ed25519PrivateKey) GetPublicKey() *Ed25519PublicKey { |
| if m != nil { |
| return m.PublicKey |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*Ed25519PublicKey)(nil), "google.crypto.tink.Ed25519PublicKey") |
| proto.RegisterType((*Ed25519PrivateKey)(nil), "google.crypto.tink.Ed25519PrivateKey") |
| } |
| |
| func init() { |
| proto.RegisterFile("proto/ed25519.proto", fileDescriptor_677c38422e9f421e) |
| } |
| |
| var fileDescriptor_677c38422e9f421e = []byte{ |
| // 237 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0xc9,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49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xa2, 0x0c, 0x4b, 0xf0, 0xc5, 0xa7, 0xe7, 0xc7, 0x83, |
| 0x05, 0x16, 0x31, 0xb1, 0x85, 0x78, 0xfa, 0x79, 0x07, 0x38, 0x25, 0xb1, 0x81, 0xf9, 0xc6, 0x80, |
| 0x00, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x23, 0x1d, 0x66, 0x79, 0x01, 0x00, 0x00, |
| } |