ecpb

package
v0.0.0-...-a6f3d4c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ECType_name = map[int32]string{
		0: "UNDEFINED",
		1: "P256",
		2: "P384",
		3: "P521",
	}
	ECType_value = map[string]int32{
		"UNDEFINED": 0,
		"P256":      1,
		"P384":      2,
		"P521":      3,
	}
)

Enum value maps for ECType.

Functions

This section is empty.

Types

type EC

type EC struct {

	// Curve.
	Crv ECType `protobuf:"varint,1,opt,name=crv,proto3,enum=auth.ECType" json:"crv,omitempty"`
	X   string `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"`
	Y   string `protobuf:"bytes,3,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

EC Public Key message type. X and Y are big endian integers Base64Url-encoded with no padding.

func (*EC) Descriptor deprecated

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

Deprecated: Use EC.ProtoReflect.Descriptor instead.

func (*EC) GetCrv

func (x *EC) GetCrv() ECType

func (*EC) GetX

func (x *EC) GetX() string

func (*EC) GetY

func (x *EC) GetY() string

func (*EC) ProtoMessage

func (*EC) ProtoMessage()

func (*EC) ProtoReflect

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

func (*EC) Reset

func (x *EC) Reset()

func (*EC) String

func (x *EC) String() string

type ECType

type ECType int32
const (
	ECType_UNDEFINED ECType = 0
	ECType_P256      ECType = 1
	ECType_P384      ECType = 2
	ECType_P521      ECType = 3
)

func (ECType) Descriptor

func (ECType) Descriptor() protoreflect.EnumDescriptor

func (ECType) Enum

func (x ECType) Enum() *ECType

func (ECType) EnumDescriptor deprecated

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

Deprecated: Use ECType.Descriptor instead.

func (ECType) Number

func (x ECType) Number() protoreflect.EnumNumber

func (ECType) String

func (x ECType) String() string

func (ECType) Type

func (ECType) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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