pub trait Curve {
    // Required methods
    fn as_curve(&self) -> NamedCurve;
    fn key_bits(&self) -> u32;
}
Expand description

Represents a named elliptic curve.

Required Methods§

source

fn as_curve(&self) -> NamedCurve

Returns a type-erased NamedCurve enum (in contrast to a concrete unit structs, e.g. NistP256).

source

fn key_bits(&self) -> u32

Size of the field in bits that the curve is defined over.

NOTE: These are NOT bits of security.

Implementors§