| // 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/common.proto |
| |
| package common_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 EllipticCurveType int32 |
| |
| const ( |
| EllipticCurveType_UNKNOWN_CURVE EllipticCurveType = 0 |
| EllipticCurveType_NIST_P256 EllipticCurveType = 2 |
| EllipticCurveType_NIST_P384 EllipticCurveType = 3 |
| EllipticCurveType_NIST_P521 EllipticCurveType = 4 |
| EllipticCurveType_CURVE25519 EllipticCurveType = 5 |
| ) |
| |
| var EllipticCurveType_name = map[int32]string{ |
| 0: "UNKNOWN_CURVE", |
| 2: "NIST_P256", |
| 3: "NIST_P384", |
| 4: "NIST_P521", |
| 5: "CURVE25519", |
| } |
| |
| var EllipticCurveType_value = map[string]int32{ |
| "UNKNOWN_CURVE": 0, |
| "NIST_P256": 2, |
| "NIST_P384": 3, |
| "NIST_P521": 4, |
| "CURVE25519": 5, |
| } |
| |
| func (x EllipticCurveType) String() string { |
| return proto.EnumName(EllipticCurveType_name, int32(x)) |
| } |
| |
| func (EllipticCurveType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_51c37496ff2054f5, []int{0} |
| } |
| |
| type EcPointFormat int32 |
| |
| const ( |
| EcPointFormat_UNKNOWN_FORMAT EcPointFormat = 0 |
| EcPointFormat_UNCOMPRESSED EcPointFormat = 1 |
| EcPointFormat_COMPRESSED EcPointFormat = 2 |
| // Like UNCOMPRESSED but without the \x04 prefix. Crunchy uses this format. |
| // DO NOT USE unless you are a Crunchy user moving to Tink. |
| EcPointFormat_DO_NOT_USE_CRUNCHY_UNCOMPRESSED EcPointFormat = 3 |
| ) |
| |
| var EcPointFormat_name = map[int32]string{ |
| 0: "UNKNOWN_FORMAT", |
| 1: "UNCOMPRESSED", |
| 2: "COMPRESSED", |
| 3: "DO_NOT_USE_CRUNCHY_UNCOMPRESSED", |
| } |
| |
| var EcPointFormat_value = map[string]int32{ |
| "UNKNOWN_FORMAT": 0, |
| "UNCOMPRESSED": 1, |
| "COMPRESSED": 2, |
| "DO_NOT_USE_CRUNCHY_UNCOMPRESSED": 3, |
| } |
| |
| func (x EcPointFormat) String() string { |
| return proto.EnumName(EcPointFormat_name, int32(x)) |
| } |
| |
| func (EcPointFormat) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_51c37496ff2054f5, []int{1} |
| } |
| |
| type HashType int32 |
| |
| const ( |
| HashType_UNKNOWN_HASH HashType = 0 |
| HashType_SHA1 HashType = 1 |
| // fine. |
| HashType_SHA384 HashType = 2 |
| HashType_SHA256 HashType = 3 |
| HashType_SHA512 HashType = 4 |
| HashType_SHA224 HashType = 5 |
| ) |
| |
| var HashType_name = map[int32]string{ |
| 0: "UNKNOWN_HASH", |
| 1: "SHA1", |
| 2: "SHA384", |
| 3: "SHA256", |
| 4: "SHA512", |
| 5: "SHA224", |
| } |
| |
| var HashType_value = map[string]int32{ |
| "UNKNOWN_HASH": 0, |
| "SHA1": 1, |
| "SHA384": 2, |
| "SHA256": 3, |
| "SHA512": 4, |
| "SHA224": 5, |
| } |
| |
| func (x HashType) String() string { |
| return proto.EnumName(HashType_name, int32(x)) |
| } |
| |
| func (HashType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_51c37496ff2054f5, []int{2} |
| } |
| |
| func init() { |
| proto.RegisterEnum("google.crypto.tink.EllipticCurveType", EllipticCurveType_name, EllipticCurveType_value) |
| proto.RegisterEnum("google.crypto.tink.EcPointFormat", EcPointFormat_name, EcPointFormat_value) |
| proto.RegisterEnum("google.crypto.tink.HashType", HashType_name, HashType_value) |
| } |
| |
| func init() { |
| proto.RegisterFile("proto/common.proto", fileDescriptor_51c37496ff2054f5) |
| } |
| |
| var fileDescriptor_51c37496ff2054f5 = []byte{ |
| // 321 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xdf, 0x6b, 0xfa, 0x30, |
| 0x14, 0xc5, 0xfd, 0x8d, 0xdf, 0xcb, 0x57, 0x89, 0x79, 0x1e, 0xec, 0xc1, 0x37, 0x19, 0x2d, 0xad, |
| 0x76, 0x6c, 0x8f, 0x5d, 0xad, 0x74, 0x0c, 0xd3, 0xd2, 0xb4, 0x8e, 0xed, 0x25, 0x68, 0x26, 0xb5, |
| 0x9b, 0x35, 0x25, 0x8b, 0x03, 0xff, 0xfb, 0x61, 0x54, 0xca, 0xf0, 0x29, 0xf7, 0x13, 0xee, 0xbd, |
| 0x27, 0xe7, 0x04, 0x86, 0x6a, 0x93, 0xcb, 0x0f, 0x56, 0x2e, 0xa5, 0x3a, 0x98, 0x2a, 0xdf, 0x7d, |
| 0x99, 0xa5, 0x14, 0x4a, 0x98, 0x5c, 0x14, 0x85, 0xd8, 0x19, 0x1a, 0x30, 0xce, 0x84, 0xc8, 0xb6, |
| 0x6b, 0x83, 0xcb, 0x43, 0xa9, 0x84, 0x71, 0x6c, 0x1b, 0x71, 0x18, 0xf8, 0xdb, 0x6d, 0x5e, 0xaa, |
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