ecutil

package
Version: v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ecutil defines tools that help with elliptic curve related computation

Index

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

func AllocECPointBuffer(v *big.Int, crv elliptic.Curve) []byte

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 AvailableCurves() []elliptic.Curve

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.

Source Files

Jump to

Keyboard shortcuts

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