[][src]Struct ecdsa::dev::curve::ExampleCurve

pub struct ExampleCurve;
This is supported on crate feature dev only.

Example NIST P-256-like elliptic curve. Implements only the features needed for testing the implementation.

Trait Implementations

impl Clone for ExampleCurve[src]

impl Curve for ExampleCurve[src]

impl Curve for ExampleCurve[src]

type FieldSize = U32

Size of this curve's field in bytes, i.e. the number of bytes needed to serialize a field element. Read more

impl Debug for ExampleCurve[src]

impl Default for ExampleCurve[src]

impl Eq for ExampleCurve[src]

impl FromDigest<ExampleCurve> for Scalar[src]

impl Ord for ExampleCurve[src]

impl PartialEq<ExampleCurve> for ExampleCurve[src]

impl PartialOrd<ExampleCurve> for ExampleCurve[src]

impl ProjectiveArithmetic for ExampleCurve[src]

type ProjectivePoint = ProjectivePoint

Elliptic curve point in projective coordinates.

impl StructuralEq for ExampleCurve[src]

impl StructuralPartialEq for ExampleCurve[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<C> CheckSignatureBytes for C where
    C: Curve + ProjectiveArithmetic,
    GenericArray<u8, <C as Curve>::FieldSize>: From<<<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar>,
    GenericArray<u8, <C as Curve>::FieldSize>: for<'a> From<&'a <<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar>,
    <<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar: PrimeField,
    <<C as Curve>::FieldSize as Add<<C as Curve>::FieldSize>>::Output: ArrayLength<u8>,
    <<<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar as PrimeField>::Repr == GenericArray<u8, <C as Curve>::FieldSize>, 
[src]

fn check_signature_bytes(
    &GenericArray<u8, <<C as Curve>::FieldSize as Add<<C as Curve>::FieldSize>>::Output>
) -> Result<(), Error>
[src]

When curve arithmetic is available, check that the scalar components of the signature are in range.

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<C> SecretValue for C where
    C: Curve + ProjectiveArithmetic,
    GenericArray<u8, <C as Curve>::FieldSize>: From<<<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar>,
    GenericArray<u8, <C as Curve>::FieldSize>: for<'a> From<&'a <<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar>,
    <<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar: PrimeField,
    <<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar: Zeroize,
    <<<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar as PrimeField>::Repr == GenericArray<u8, <C as Curve>::FieldSize>, 
[src]

type Secret = NonZeroScalar<C>

Inner secret value. Read more

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.