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 ¶ added in v1.1.4
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 ¶ added in v1.1.4
func AvailableAlgorithms() []jwa.EllipticCurveAlgorithm
func AvailableCurves ¶ added in v1.1.4
func CurveForAlgorithm ¶ added in v1.1.4
func CurveForAlgorithm(alg jwa.EllipticCurveAlgorithm) (elliptic.Curve, bool)
func IsAvailable ¶ added in v1.1.4
func IsAvailable(alg jwa.EllipticCurveAlgorithm) bool
func RegisterCurve ¶ added in v1.1.4
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.