| // 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 |
| ) |
| |
| var HashType_name = map[int32]string{ |
| 0: "UNKNOWN_HASH", |
| 1: "SHA1", |
| 2: "SHA384", |
| 3: "SHA256", |
| 4: "SHA512", |
| } |
| |
| var HashType_value = map[string]int32{ |
| "UNKNOWN_HASH": 0, |
| "SHA1": 1, |
| "SHA384": 2, |
| "SHA256": 3, |
| "SHA512": 4, |
| } |
| |
| 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{ |
| // 325 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x41, 0x6b, 0xfa, 0x40, |
| 0x10, 0xc5, 0x35, 0xfa, 0x17, 0xff, 0x43, 0x95, 0x75, 0xcf, 0x85, 0x1e, 0xbc, 0x49, 0x49, 0x48, |
| 0x6c, 0x4a, 0x7b, 0x8c, 0x31, 0x12, 0x2b, 0x6e, 0x42, 0x36, 0xa9, 0xb4, 0x97, 0x45, 0xb7, 0x12, |
| 0xd3, 0x1a, 0x37, 0xa4, 0x6b, 0xc1, 0xaf, 0xd3, 0x4f, 0x5a, 0x5c, 0x2d, 0xa1, 0x78, 0x9b, 0x1f, |
| 0xcc, 0xbc, 0x37, 0xef, 0x41, 0x5f, 0x6e, 0xb2, 0xf2, 0x8d, 0x15, 0xcb, 0x52, 0x1e, 0x0c, 0x99, |
| 0xed, 0x3e, 0x8c, 0xa2, 0x14, 0x52, 0x18, 0x5c, 0xe4, 0xb9, 0xd8, 0xe9, 0x0a, 0x30, 0x4e, 0x85, |
| 0x48, 0xb7, 0x6b, 0x9d, 0x97, 0x87, 0x42, 0x0a, 0xfd, 0xb8, 0x36, 0xe0, 0xd0, 0xf3, 0xb6, 0xdb, |
| 0xac, 0x90, 0x19, 0x77, 0xf7, 0xe5, 0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