[][src]Module mundane::public::ec

Elliptic Curve-based cryptographic algorithms over NIST P curves.

This module only supports elliptic curve cryptography over NIST's P curves, defined in FIPS 186-3. These are the P-256, P-384, and P-521 curves (P-224 is considered insecure, and thus is not supported). The ECDSA and ECDH algorithms are both defined over P curves, and so are exposed in this module.

Other elliptic curve algorithms on non-P curves live in other modules (e.g., operations on the Edwards 25519 curve live in the ed25519 module).

Modules

ecdsa

The Elliptic Curve Digital Signature Algorithm.

Structs

EcPrivKey

An elliptic curve private key over a P curve.

EcPubKey

An elliptic curve public key over a P curve.

P256

The P-256 curve.

P384

The P-384 curve.

P521

The P-521 curve.

Enums

EcPrivKeyAnyCurve

An elliptic curve private key whose curve is unknown at compile time.

EcPubKeyAnyCurve

An elliptic curve public key whose curve is unknown at compile time.

Traits

PCurve

A NIST P elliptic curve.