Elliptic curves used in OpenPGP.
PublicKeyAlgorithm does not differentiate between elliptic
curves. Instead, the curve is specified using an OID prepended to
the key material. We provide this type to be able to match on the
NIST curve P-256.
NIST curve P-384.
NIST curve P-521.
D.J. Bernstein's "Twisted" Edwards curve Ed25519.
Elliptic curve Diffie-Hellman using D.J. Bernstein's Curve25519.
Returns the 'bits' of the curve.
For the Kobliz curves this is the size of the underlying finite field. For X25519 it's 128. This information is useless and should not be used to gauge the security of a particular curve. This function exists only because some legacy PGP application like HKP need it.
Parses the given OID.
Returns this curve's OID.
Returns the length of a coordinate in bits.
Error::UnsupportedEllipticCurve if the curve is not
impl PartialOrd<Curve> for Curve[src]
fn partial_cmp(&self, other: &Curve) -> Option<Ordering>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from
source. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
Feeds a slice of this type into the given [
Hasher]. Read more
type Error = Infallible
The type returned in the event of a conversion error.