package elliptic
Import Path
github.com/pion/dtls/v3/pkg/crypto/elliptic (on go.dev)
Dependency Relation
imports 5 packages, and imported by 5 packages
Involved Source Files
Package elliptic provides elliptic curve cryptography for DTLS
Package-Level Type Names (total 4)
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) String() string
Curve : expvar.Var
Curve : fmt.Stringer
func Curves() map[Curve]bool
func GenerateKeypair(c Curve) (*Keypair, error)
func github.com/pion/dtls/v3/pkg/crypto/prf.EcdhePSKPreMasterSecret(psk, publicKey, privateKey []byte, curve Curve) ([]byte, error)
func github.com/pion/dtls/v3/pkg/crypto/prf.PreMasterSecret(publicKey, privateKey []byte, curve Curve) ([]byte, error)
func github.com/pion/webrtc/v4.(*SettingEngine).SetDTLSEllipticCurves(ellipticCurves ...Curve)
const P256
const P384
const X25519
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
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
func CurveTypes() map[CurveType]struct{}
const CurveTypeNamedCurve
Keypair is a Curve with a Private/Public Keypair.
Curve Curve
PrivateKey []byte
PublicKey []byte
func GenerateKeypair(c Curve) (*Keypair, error)
Package-Level Functions (total 3)
Curves returns all curves we implement.
CurveTypes returns all known curves.
GenerateKeypair generates a keypair for the given Curve.
Package-Level Constants (total 5)
CurvePointFormat enums.
CurveType enums.
Curve enums.
Curve enums.
Curve enums.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |