jwt_ecdsa_go_proto

package
v0.0.0-...-d6de17e Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JwtEcdsaAlgorithm_name = map[int32]string{
		0: "ES_UNKNOWN",
		1: "ES256",
		2: "ES384",
		3: "ES512",
	}
	JwtEcdsaAlgorithm_value = map[string]int32{
		"ES_UNKNOWN": 0,
		"ES256":      1,
		"ES384":      2,
		"ES512":      3,
	}
)

Enum value maps for JwtEcdsaAlgorithm.

View Source
var File_third_party_tink_proto_jwt_ecdsa_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type JwtEcdsaAlgorithm

type JwtEcdsaAlgorithm int32

See https://datatracker.ietf.org/doc/html/rfc7518#section-3.4

const (
	JwtEcdsaAlgorithm_ES_UNKNOWN JwtEcdsaAlgorithm = 0
	JwtEcdsaAlgorithm_ES256      JwtEcdsaAlgorithm = 1 // ECDSA using P-256 and SHA-256
	JwtEcdsaAlgorithm_ES384      JwtEcdsaAlgorithm = 2 // ECDSA using P-384 and SHA-384
	JwtEcdsaAlgorithm_ES512      JwtEcdsaAlgorithm = 3 // ECDSA using P-521 and SHA-512
)

func (JwtEcdsaAlgorithm) Descriptor

func (JwtEcdsaAlgorithm) Enum

func (JwtEcdsaAlgorithm) EnumDescriptor deprecated

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

Deprecated: Use JwtEcdsaAlgorithm.Descriptor instead.

func (JwtEcdsaAlgorithm) Number

func (JwtEcdsaAlgorithm) String

func (x JwtEcdsaAlgorithm) String() string

func (JwtEcdsaAlgorithm) Type

type JwtEcdsaKeyFormat

type JwtEcdsaKeyFormat struct {
	Version   uint32            `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Algorithm JwtEcdsaAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=google.crypto.tink.JwtEcdsaAlgorithm" json:"algorithm,omitempty"`
	// contains filtered or unexported fields
}

func (*JwtEcdsaKeyFormat) Descriptor deprecated

func (*JwtEcdsaKeyFormat) Descriptor() ([]byte, []int)

Deprecated: Use JwtEcdsaKeyFormat.ProtoReflect.Descriptor instead.

func (*JwtEcdsaKeyFormat) GetAlgorithm

func (x *JwtEcdsaKeyFormat) GetAlgorithm() JwtEcdsaAlgorithm

func (*JwtEcdsaKeyFormat) GetVersion

func (x *JwtEcdsaKeyFormat) GetVersion() uint32

func (*JwtEcdsaKeyFormat) ProtoMessage

func (*JwtEcdsaKeyFormat) ProtoMessage()

func (*JwtEcdsaKeyFormat) ProtoReflect

func (x *JwtEcdsaKeyFormat) ProtoReflect() protoreflect.Message

func (*JwtEcdsaKeyFormat) Reset

func (x *JwtEcdsaKeyFormat) Reset()

func (*JwtEcdsaKeyFormat) String

func (x *JwtEcdsaKeyFormat) String() string

type JwtEcdsaPrivateKey

type JwtEcdsaPrivateKey struct {
	Version   uint32             `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	PublicKey *JwtEcdsaPublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Unsigned big integer in bigendian representation.
	KeyValue []byte `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	// contains filtered or unexported fields
}

key_type: type.googleapis.com/google.crypto.tink.JwtEcdsaPrivateKey

func (*JwtEcdsaPrivateKey) Descriptor deprecated

func (*JwtEcdsaPrivateKey) Descriptor() ([]byte, []int)

Deprecated: Use JwtEcdsaPrivateKey.ProtoReflect.Descriptor instead.

func (*JwtEcdsaPrivateKey) GetKeyValue

func (x *JwtEcdsaPrivateKey) GetKeyValue() []byte

func (*JwtEcdsaPrivateKey) GetPublicKey

func (x *JwtEcdsaPrivateKey) GetPublicKey() *JwtEcdsaPublicKey

func (*JwtEcdsaPrivateKey) GetVersion

func (x *JwtEcdsaPrivateKey) GetVersion() uint32

func (*JwtEcdsaPrivateKey) ProtoMessage

func (*JwtEcdsaPrivateKey) ProtoMessage()

func (*JwtEcdsaPrivateKey) ProtoReflect

func (x *JwtEcdsaPrivateKey) ProtoReflect() protoreflect.Message

func (*JwtEcdsaPrivateKey) Reset

func (x *JwtEcdsaPrivateKey) Reset()

func (*JwtEcdsaPrivateKey) String

func (x *JwtEcdsaPrivateKey) String() string

type JwtEcdsaPublicKey

type JwtEcdsaPublicKey struct {
	Version   uint32            `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Algorithm JwtEcdsaAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=google.crypto.tink.JwtEcdsaAlgorithm" json:"algorithm,omitempty"`
	// Affine coordinates of the public key in big-endian representation. The
	// public key is a point (x, y) on the curve defined by algorithm.
	X         []byte                       `protobuf:"bytes,3,opt,name=x,proto3" json:"x,omitempty"`
	Y         []byte                       `protobuf:"bytes,4,opt,name=y,proto3" json:"y,omitempty"`
	CustomKid *JwtEcdsaPublicKey_CustomKid `protobuf:"bytes,5,opt,name=custom_kid,json=customKid,proto3" json:"custom_kid,omitempty"`
	// contains filtered or unexported fields
}

key_type: type.googleapis.com/google.crypto.tink.JwtEcdsaPublicKey

func (*JwtEcdsaPublicKey) Descriptor deprecated

func (*JwtEcdsaPublicKey) Descriptor() ([]byte, []int)

Deprecated: Use JwtEcdsaPublicKey.ProtoReflect.Descriptor instead.

func (*JwtEcdsaPublicKey) GetAlgorithm

func (x *JwtEcdsaPublicKey) GetAlgorithm() JwtEcdsaAlgorithm

func (*JwtEcdsaPublicKey) GetCustomKid

func (*JwtEcdsaPublicKey) GetVersion

func (x *JwtEcdsaPublicKey) GetVersion() uint32

func (*JwtEcdsaPublicKey) GetX

func (x *JwtEcdsaPublicKey) GetX() []byte

func (*JwtEcdsaPublicKey) GetY

func (x *JwtEcdsaPublicKey) GetY() []byte

func (*JwtEcdsaPublicKey) ProtoMessage

func (*JwtEcdsaPublicKey) ProtoMessage()

func (*JwtEcdsaPublicKey) ProtoReflect

func (x *JwtEcdsaPublicKey) ProtoReflect() protoreflect.Message

func (*JwtEcdsaPublicKey) Reset

func (x *JwtEcdsaPublicKey) Reset()

func (*JwtEcdsaPublicKey) String

func (x *JwtEcdsaPublicKey) String() string

type JwtEcdsaPublicKey_CustomKid

type JwtEcdsaPublicKey_CustomKid struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Optional, custom kid header value to be used with "RAW" keys. "TINK" keys with this value set will be rejected.

func (*JwtEcdsaPublicKey_CustomKid) Descriptor deprecated

func (*JwtEcdsaPublicKey_CustomKid) Descriptor() ([]byte, []int)

Deprecated: Use JwtEcdsaPublicKey_CustomKid.ProtoReflect.Descriptor instead.

func (*JwtEcdsaPublicKey_CustomKid) GetValue

func (x *JwtEcdsaPublicKey_CustomKid) GetValue() string

func (*JwtEcdsaPublicKey_CustomKid) ProtoMessage

func (*JwtEcdsaPublicKey_CustomKid) ProtoMessage()

func (*JwtEcdsaPublicKey_CustomKid) ProtoReflect

func (*JwtEcdsaPublicKey_CustomKid) Reset

func (x *JwtEcdsaPublicKey_CustomKid) Reset()

func (*JwtEcdsaPublicKey_CustomKid) String

func (x *JwtEcdsaPublicKey_CustomKid) String() string

Jump to

Keyboard shortcuts

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