[−][src]Struct ecdsa::fixed_signature::FixedSignature
Fixed-sized (a.k.a. "raw") ECDSA signatures generic over elliptic curves.
These signatures are serialized as fixed-sized big endian scalar values with no additional framing.
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]
MaxSize<C::ScalarSize>: ArrayLength<u8>,
<C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>,
fn from(asn1_signature: &Asn1Signature<C>) -> FixedSignature<C>
[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]
MaxSize<C::ScalarSize>: ArrayLength<u8>,
<C::ScalarSize as Add>::Output: ArrayLength<u8> + Add<MaxOverhead>,
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> From<GenericArray<u8, <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output>> for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
fn from(bytes: GenericArray<u8, Size<C::ScalarSize>>) -> Self
[src]
impl<C: Curve> Debug for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
impl<C: PartialEq + Curve> PartialEq<FixedSignature<C>> for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
C::ScalarSize: PartialEq,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
C::ScalarSize: PartialEq,
fn eq(&self, other: &FixedSignature<C>) -> bool
[src]
fn ne(&self, other: &FixedSignature<C>) -> bool
[src]
impl<C: Eq + Curve> Eq for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
C::ScalarSize: Eq,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
C::ScalarSize: Eq,
impl<'a, C: Curve> TryFrom<&'a [u8]> for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(bytes: &'a [u8]) -> Result<Self, Error>
[src]
impl<C: Curve> StructuralPartialEq for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
impl<C: Curve> StructuralEq for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
impl<C: Curve> AsRef<[u8]> for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
impl<C: Clone + Curve> Clone for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
C::ScalarSize: Clone,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
C::ScalarSize: Clone,
fn clone(&self) -> FixedSignature<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Curve> Signature for FixedSignature<C> where
Size<C::ScalarSize>: ArrayLength<u8>,
[src]
Size<C::ScalarSize>: ArrayLength<u8>,
Auto Trait Implementations
impl<C> Unpin for FixedSignature<C> where
<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as ArrayLength<u8>>::ArrayType: Unpin,
<C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>,
<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as ArrayLength<u8>>::ArrayType: Unpin,
<C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>,
impl<C> Send for FixedSignature<C> where
<C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>,
<C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>,
impl<C> Sync for FixedSignature<C> where
<C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>,
<C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>,
impl<C> UnwindSafe for FixedSignature<C> where
<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as ArrayLength<u8>>::ArrayType: UnwindSafe,
<C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>,
<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as ArrayLength<u8>>::ArrayType: UnwindSafe,
<C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>,
impl<C> RefUnwindSafe for FixedSignature<C> where
<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>,
<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::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]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,