Expand description
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.51 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 crypto_bigint as bigint;pub use self;pub use rand_core;pub use subtle;pub use self;pub use zeroize;
Modules§
- consts
- ecdh
- Elliptic Curve Diffie-Hellman Support.
- ops
- Traits for arithmetic operations on elliptic curve field elements.
- sec1
- SEC1 encoding support.
- weierstrass
- Elliptic curves in short Weierstrass form.
Structs§
- Error
- Elliptic curve errors.
- NonZero
Scalar - Non-zero scalar type.
- Public
Key - Elliptic curve public keys.
- Scalar
Bytes - Scalar bytes: wrapper for
FieldByteswhich guarantees that the the inner byte value is within range of theCurve::ORDER. - Secret
Key - Elliptic curve secret keys.
Traits§
- Affine
Arithmetic - Elliptic curve with affine arithmetic implementation.
- Curve
- Elliptic curve.
- Field
- This trait represents an element of a field.
- Group
- This trait represents an element of a cryptographic group.
- Projective
Arithmetic - Elliptic curve with projective arithmetic implementation.
- Scalar
Arithmetic - Scalar arithmetic.
Type Aliases§
- Affine
Point - Affine point type for a given curve with a
ProjectiveArithmeticimplementation. - Field
Bytes - Byte representation of a base/scalar field element of a given curve.
- Field
Size - Size of field elements of this elliptic curve.
- Projective
Point - Projective point type for a given curve with a
ProjectiveArithmeticimplementation. - Result
- Result type.
- Scalar
- Scalar field element for a particular elliptic curve.