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

pub trait Curve: Clone + Eq + Ord + Default + Send + Sync + Debug {
    type ScalarSize: Eq + Ord + Add<Self::ScalarSize> + Add<UInt<UTerm, B1>> + ArrayLength<u8> + Unsigned;
}

Elliptic curve in short Weierstrass form

Associated Types

type ScalarSize: Eq + Ord + Add<Self::ScalarSize> + Add<UInt<UTerm, B1>> + ArrayLength<u8> + Unsigned

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

Loading content...

Implementors

impl Curve for NistP256

type ScalarSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>

256-bit (32-byte) private scalar

impl Curve for NistP384

type ScalarSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>

384-bit (48-byte) private scalar

impl Curve for Secp256k1

type ScalarSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>

256-bit (32-byte) private scalar

Loading content...