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

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

Elliptic curve in short Weierstrass form

Associated Types

type ScalarSize: Add<Self::ScalarSize> + Add<UInt<UTerm, B1>> + Eq + Ord + 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[src]

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[src]

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[src]

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

256-bit (32-byte) private scalar

Loading content...