Documentation ¶
Overview ¶
Package ecutil defines tools that help with elliptic curve related computation
Index ¶
- func AlgorithmForCurve(crv elliptic.Curve) (jwa.EllipticCurveAlgorithm, bool)
- func AllocECPointBuffer(v *big.Int, crv elliptic.Curve) []byte
- func AvailableAlgorithms() []jwa.EllipticCurveAlgorithm
- func AvailableCurves() []elliptic.Curve
- func CurveForAlgorithm(alg jwa.EllipticCurveAlgorithm) (elliptic.Curve, bool)
- func IsAvailable(alg jwa.EllipticCurveAlgorithm) bool
- func RegisterCurve(crv elliptic.Curve, alg jwa.EllipticCurveAlgorithm)
- func ReleaseECPointBuffer(buf []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlgorithmForCurve ¶
func AlgorithmForCurve(crv elliptic.Curve) (jwa.EllipticCurveAlgorithm, bool)
func AllocECPointBuffer ¶
AllocECPointBuffer allocates a buffer for the given point in the given curve. This buffer should be released using the ReleaseECPointBuffer function.
func AvailableAlgorithms ¶
func AvailableAlgorithms() []jwa.EllipticCurveAlgorithm
func AvailableCurves ¶
func CurveForAlgorithm ¶
func CurveForAlgorithm(alg jwa.EllipticCurveAlgorithm) (elliptic.Curve, bool)
func IsAvailable ¶
func IsAvailable(alg jwa.EllipticCurveAlgorithm) bool
func RegisterCurve ¶
func RegisterCurve(crv elliptic.Curve, alg jwa.EllipticCurveAlgorithm)
func ReleaseECPointBuffer ¶
func ReleaseECPointBuffer(buf []byte)
ReleaseECPointBuffer releases the []byte buffer allocated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.