[][src]Trait ecdsa::curve::Curve

pub trait Curve: Clone + Debug + Default + Eq + Ord + Send + Sync {
    type ScalarSize: ArrayLength<u8> + Add + Add<U1> + Eq + Ord + Unsigned;
}

Elliptic curve in short Weierstrass form suitable for use with ECDSA

Associated Types

type ScalarSize: ArrayLength<u8> + Add + Add<U1> + Eq + Ord + Unsigned

Size of an integer modulo p (i.e. the curve's order) when serialized as octets (i.e. bytes).

This is also the size of a raw ECDSA private key (as such a key is a scalar), and is equal to half the size of a fixed-width signature.

Loading content...

Implementors

impl Curve for NistP256[src]

type ScalarSize = U32

256-bit (32-byte) private scalar

impl Curve for NistP384[src]

type ScalarSize = U48

384-bit (48-byte) private scalar

impl Curve for Secp256k1[src]

type ScalarSize = U32

256-bit (32-byte) private scalar

Loading content...