curves

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown Curves = iota
	X25519         = Curves(tls.X25519)
	P256           = Curves(tls.CurveP256)
	P384           = Curves(tls.CurveP384)
	P521           = Curves(tls.CurveP521)
)

Variables

This section is empty.

Functions

func Check

func Check(curves uint16) bool

func ListString

func ListString() []string

func ViperDecoderHook

func ViperDecoderHook() libmap.DecodeHookFuncType

Types

type Curves

type Curves uint16

func List

func List() []Curves

func Parse

func Parse(s string) Curves

func ParseInt

func ParseInt(d int) Curves

func (Curves) Check

func (v Curves) Check() bool

func (Curves) Code

func (v Curves) Code() string

func (Curves) CurveID

func (v Curves) CurveID() tls.CurveID

func (Curves) Int

func (v Curves) Int() int

func (Curves) Int32

func (v Curves) Int32() int32

func (Curves) Int64

func (v Curves) Int64() int64

func (Curves) MarshalCBOR

func (v Curves) MarshalCBOR() ([]byte, error)

func (Curves) MarshalJSON

func (v Curves) MarshalJSON() ([]byte, error)

func (Curves) MarshalTOML

func (v Curves) MarshalTOML() ([]byte, error)

func (Curves) MarshalText

func (v Curves) MarshalText() ([]byte, error)

func (Curves) MarshalYAML

func (v Curves) MarshalYAML() (interface{}, error)

func (Curves) String

func (v Curves) String() string

func (Curves) TLS

func (v Curves) TLS() tls.CurveID

func (Curves) Uint

func (v Curves) Uint() uint

func (Curves) Uint16

func (v Curves) Uint16() uint16

func (Curves) Uint32

func (v Curves) Uint32() uint32

func (Curves) Uint64

func (v Curves) Uint64() uint64

func (*Curves) UnmarshalCBOR

func (v *Curves) UnmarshalCBOR(bytes []byte) error

func (*Curves) UnmarshalJSON

func (v *Curves) UnmarshalJSON(bytes []byte) error

func (*Curves) UnmarshalTOML

func (v *Curves) UnmarshalTOML(i interface{}) error

func (*Curves) UnmarshalText

func (v *Curves) UnmarshalText(bytes []byte) error

func (*Curves) UnmarshalYAML

func (v *Curves) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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