common_go_proto

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 51

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
var File_third_party_tink_proto_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

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 added in v1.7.0

func (EcPointFormat) Enum added in v1.7.0

func (x EcPointFormat) Enum() *EcPointFormat

func (EcPointFormat) EnumDescriptor deprecated

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

Deprecated: Use EcPointFormat.Descriptor instead.

func (EcPointFormat) Number added in v1.7.0

func (EcPointFormat) String

func (x EcPointFormat) String() string

func (EcPointFormat) Type added in v1.7.0

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 added in v1.7.0

func (EllipticCurveType) Enum added in v1.7.0

func (EllipticCurveType) EnumDescriptor deprecated

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

Deprecated: Use EllipticCurveType.Descriptor instead.

func (EllipticCurveType) Number added in v1.7.0

func (EllipticCurveType) String

func (x EllipticCurveType) String() string

func (EllipticCurveType) Type added in v1.7.0

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 added in v1.7.0

func (HashType) Descriptor() protoreflect.EnumDescriptor

func (HashType) Enum added in v1.7.0

func (x HashType) Enum() *HashType

func (HashType) EnumDescriptor deprecated

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

Deprecated: Use HashType.Descriptor instead.

func (HashType) Number added in v1.7.0

func (x HashType) Number() protoreflect.EnumNumber

func (HashType) String

func (x HashType) String() string

func (HashType) Type added in v1.7.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL