[][src]Crate elliptic_curve

General purpose Elliptic Curve Cryptography (ECC) support, including types and traits for representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof.

Minimum Supported Rust Version

Rust 1.41 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

Re-exports

pub use self::error::Error;
pub use self::secret_key::SecretKey;
pub use generic_array;
pub use subtle;
pub use oid;
pub use rand_core;
pub use zeroize;

Modules

consts

Type aliases for many constants.

ecdhfeature="ecdh"

Elliptic Curve Diffie-Hellman (Ephemeral) Support.

error

Error type

ops

Traits for arithmetic operations on elliptic curve field elements

point

Traits for elliptic curve points

scalar

Scalar types

secret_key

Secret keys for elliptic curves (i.e. private scalars)

weierstrassfeature="weierstrass"

Elliptic curves in short Weierstrass form.

Traits

Arithmetic

Elliptic curve with curve arithmetic support

Curve

Elliptic curve.

FromBytes

Try to decode the given bytes into a curve element

Generatefeature="rand"

Randomly generate a value.

Identifierfeature="oid"

Associate an object identifier (OID) with a curve

Type Definitions

ElementBytes

Byte array containing a serialized scalar value (i.e. an integer)