[][src]Struct ecdsa::asn1_signature::Asn1Signature

pub struct Asn1Signature<C: Curve> where
    MaxSize<C::ScalarSize>: ArrayLength<u8>,
    <C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>, 
{ /* fields omitted */ }

ASN.1 DER-encoded ECDSA signature generic over elliptic curves.

Trait Implementations

impl<'a, C: Curve> From<&'a Asn1Signature<C>> for FixedSignature<C> where
    MaxSize<C::ScalarSize>: ArrayLength<u8>,
    <C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>, 
[src]

impl<'a, C: Curve> From<&'a FixedSignature<C>> for Asn1Signature<C> where
    MaxSize<C::ScalarSize>: ArrayLength<u8>,
    <C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>, 
[src]

fn from(fixed_signature: &FixedSignature<C>) -> Self[src]

Parse r and s values from a fixed-width signature and reserialize them as ASN.1 DER.

impl<C: Curve> Debug for Asn1Signature<C> where
    MaxSize<C::ScalarSize>: ArrayLength<u8>,
    <C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>, 
[src]

impl<'a, C: Curve> TryFrom<&'a [u8]> for Asn1Signature<C> where
    MaxSize<C::ScalarSize>: ArrayLength<u8>,
    <C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>, 
[src]

type Error = Error

The type returned in the event of a conversion error.

impl<C: Curve> AsRef<[u8]> for Asn1Signature<C> where
    MaxSize<C::ScalarSize>: ArrayLength<u8>,
    <C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>, 
[src]

impl<C: Curve> Signature for Asn1Signature<C> where
    MaxSize<C::ScalarSize>: ArrayLength<u8>,
    <C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>, 
[src]

Auto Trait Implementations

impl<C> Unpin for Asn1Signature<C> where
    <<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>>>::Output as ArrayLength<u8>>::ArrayType: Unpin,
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

impl<C> Send for Asn1Signature<C> where
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

impl<C> Sync for Asn1Signature<C> where
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

impl<C> UnwindSafe for Asn1Signature<C> where
    <<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>>>::Output as ArrayLength<u8>>::ArrayType: UnwindSafe,
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

impl<C> RefUnwindSafe for Asn1Signature<C> where
    <<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>>>::Output as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

Blanket Implementations

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

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

type Error = !

The type returned in the event of a conversion error.

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self