Crate elliptic_curve[−][src]
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.46 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 generic_array; |
pub use rand_core; |
pub use subtle; |
pub use ff; |
pub use group; |
pub use pkcs8; |
pub use zeroize; |
Modules
| consts | Type aliases for many constants. |
| ecdh | ecdhElliptic Curve Diffie-Hellman Support. |
| ops | Traits for arithmetic operations on elliptic curve field elements. |
| sec1 | SEC1 encoding support. |
| util | Arithmetic helper functions designed for efficient LLVM lowering. |
| weierstrass | Elliptic curves in short Weierstrass form. |
Structs
| Error | Elliptic curve errors. |
| JwkEcKey | jwkJSON Web Key (JWK) with a |
| NonZeroScalar | arithmeticNon-zero scalar type. |
| PublicKey | arithmeticElliptic curve public keys. |
| SecretKey | zeroizeElliptic curve secret keys. |
Constants
| ALGORITHM_OID | pkcs8Algorithm |
Traits
| AlgorithmParameters | pkcs8Associate an |
| Curve | Elliptic curve. |
| Field | This trait represents an element of a field. |
| Group | This trait represents an element of a cryptographic group. |
| JwkParameters | jwkElliptic curve parameters used by JSON Web Keys. |
| ProjectiveArithmetic | arithmeticElliptic curve with projective arithmetic implementation. |
Type Definitions
| AffinePoint | arithmeticAffine point type for a given curve with a |
| FieldBytes | Byte representation of a base/scalar field element of a given curve. |
| ProjectivePoint | arithmeticProjective point type for a given curve with a |
| Result | Result type. |
| Scalar | arithmeticScalar field element for a particular elliptic curve. |
| ScalarBits | arithmeticBit representation of a scalar field element of a given curve. |