Structs

Sign precomputation state.

Constants

Functions

Checks that the argument, as little-endian integer, is a reduced non-zero element of the scalar field.

Checks that the argument, as little-endian integer, is a reduced element of the base field.

Converts endianness by reversing the input value.

Generates the shared secret according to the ECDH standard.

Calculates the public key from a given private key for use by either ECDSA or ECDH.

Decodes a point according to the three encodings above.

Compressed encoding: “02 || Px” if Py is even and “03 || Px” if Py is odd.

Hybrid encoding: “06 || Px || Py” if Py is even and “07 || Px || Py” if Py is odd (a pretty useless encoding).

Uncompressed encoding: “04 || Px || Py”.

Raw scalar multiplication by the base point of the elliptic curve.

Raw scalar multiplication by any point on the elliptic curve.

Creates an ECDSA signature.

Creates an ECDSA signature, using a two-step procedure.

Second step of creating an ECDSA signature, using a two-step procedure.

Verifies an ECDSA signature.

Type Definitions