blob: cea8886fb9104274628b416177e74b5af9ea3cbd [file] [log] [blame]
// 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/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
)
var EllipticCurveType_name = map[int32]string{
0: "UNKNOWN_CURVE",
2: "NIST_P256",
3: "NIST_P384",
4: "NIST_P521",
}
var EllipticCurveType_value = map[string]int32{
"UNKNOWN_CURVE": 0,
"NIST_P256": 2,
"NIST_P384": 3,
"NIST_P521": 4,
}
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
HashType_SHA256 HashType = 3
HashType_SHA512 HashType = 4
)
var HashType_name = map[int32]string{
0: "UNKNOWN_HASH",
1: "SHA1",
3: "SHA256",
4: "SHA512",
}
var HashType_value = map[string]int32{
"UNKNOWN_HASH": 0,
"SHA1": 1,
"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{
// 311 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x4d, 0x6b, 0xf2, 0x40,
0x14,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