package elliptic
import "github.com/pion/dtls/v3/pkg/crypto/elliptic"
Package elliptic provides elliptic curve cryptography for DTLS
Index ¶
- func CurveTypes() map[CurveType]struct{}
- func Curves() map[Curve]bool
- type Curve
- type CurvePointFormat
- type CurveType
- type Keypair
Functions ¶
func CurveTypes ¶
func CurveTypes() map[CurveType]struct{}
CurveTypes returns all known curves
func Curves ¶
Curves returns all curves we implement
Types ¶
type Curve ¶
type Curve uint16
Curve is used to represent the IANA registered curves for TLS
https://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-8
Curve enums
func (Curve) String ¶
type CurvePointFormat ¶
type CurvePointFormat byte
CurvePointFormat is used to represent the IANA registered curve points
https://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-9
const ( CurvePointFormatUncompressed CurvePointFormat = 0 )
CurvePointFormat enums
type CurveType ¶
type CurveType byte
CurveType is used to represent the IANA registered curve types for TLS
https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-10
const ( CurveTypeNamedCurve CurveType = 0x03 )
CurveType enums
type Keypair ¶
Keypair is a Curve with a Private/Public Keypair
func GenerateKeypair ¶
GenerateKeypair generates a keypair for the given Curve
Source Files ¶
- Version
- v3.0.4 (latest)
- Published
- Nov 4, 2024
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 week ago –
Tools for package owners.