gogithub.com/google/tink/go/proto/common_go_proto Index | Files

package common_go_proto

import "github.com/google/tink/go/proto/common_go_proto"

Index

Variables

var (
	EllipticCurveType_name = map[int32]string{
		0: "UNKNOWN_CURVE",
		2: "NIST_P256",
		3: "NIST_P384",
		4: "NIST_P521",
		5: "CURVE25519",
	}
	EllipticCurveType_value = map[string]int32{
		"UNKNOWN_CURVE": 0,
		"NIST_P256":     2,
		"NIST_P384":     3,
		"NIST_P521":     4,
		"CURVE25519":    5,
	}
)

Enum value maps for EllipticCurveType.

var (
	EcPointFormat_name = map[int32]string{
		0: "UNKNOWN_FORMAT",
		1: "UNCOMPRESSED",
		2: "COMPRESSED",
		3: "DO_NOT_USE_CRUNCHY_UNCOMPRESSED",
	}
	EcPointFormat_value = map[string]int32{
		"UNKNOWN_FORMAT":                  0,
		"UNCOMPRESSED":                    1,
		"COMPRESSED":                      2,
		"DO_NOT_USE_CRUNCHY_UNCOMPRESSED": 3,
	}
)

Enum value maps for EcPointFormat.

var (
	HashType_name = map[int32]string{
		0: "UNKNOWN_HASH",
		1: "SHA1",
		2: "SHA384",
		3: "SHA256",
		4: "SHA512",
		5: "SHA224",
	}
	HashType_value = map[string]int32{
		"UNKNOWN_HASH": 0,
		"SHA1":         1,
		"SHA384":       2,
		"SHA256":       3,
		"SHA512":       4,
		"SHA224":       5,
	}
)

Enum value maps for HashType.

var File_third_party_tink_proto_common_proto protoreflect.FileDescriptor

Types

type EcPointFormat

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
)

func (EcPointFormat) Descriptor

func (EcPointFormat) Enum

func (x EcPointFormat) Enum() *EcPointFormat

func (EcPointFormat) EnumDescriptor

func (EcPointFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use EcPointFormat.Descriptor instead.

func (EcPointFormat) Number

func (EcPointFormat) String

func (x EcPointFormat) String() string

func (EcPointFormat) Type

type EllipticCurveType

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
)

func (EllipticCurveType) Descriptor

func (EllipticCurveType) Enum

func (EllipticCurveType) EnumDescriptor

func (EllipticCurveType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EllipticCurveType.Descriptor instead.

func (EllipticCurveType) Number

func (EllipticCurveType) String

func (x EllipticCurveType) String() string

func (EllipticCurveType) Type

type HashType

type HashType int32
const (
	HashType_UNKNOWN_HASH HashType = 0
	HashType_SHA1         HashType = 1 // Using SHA1 for digital signature is deprecated but HMAC-SHA1 is
	// fine.
	HashType_SHA384 HashType = 2
	HashType_SHA256 HashType = 3
	HashType_SHA512 HashType = 4
	HashType_SHA224 HashType = 5
)

func (HashType) Descriptor

func (HashType) Descriptor() protoreflect.EnumDescriptor

func (HashType) Enum

func (x HashType) Enum() *HashType

func (HashType) EnumDescriptor

func (HashType) EnumDescriptor() ([]byte, []int)

Deprecated: Use HashType.Descriptor instead.

func (HashType) Number

func (x HashType) Number() protoreflect.EnumNumber

func (HashType) String

func (x HashType) String() string

func (HashType) Type

Source Files

common.pb.go

Version
v1.7.0 (latest)
Published
Aug 10, 2022
Platform
linux/amd64
Imports
4 packages
Last checked
3 months ago

Tools for package owners.