Struct signatory::ecdsa::FixedSignature[][src]

pub struct FixedSignature<C: WeierstrassCurve> { /* fields omitted */ }

ECDSA signatures serialized in a compact, fixed-sized form

Methods

impl<C> FixedSignature<C> where
    C: WeierstrassCurve
[src]

Convert signature into owned byte array

Trait Implementations

impl<'s, C> From<&'s FixedSignature<C>> for Asn1Signature<C> where
    C: WeierstrassCurve
[src]

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

impl<'s, C> From<&'s Asn1Signature<C>> for FixedSignature<C> where
    C: WeierstrassCurve
[src]

Performs the conversion.

impl<C: Clone + WeierstrassCurve> Clone for FixedSignature<C> where
    C::FixedSignatureSize: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C: PartialEq + WeierstrassCurve> PartialEq for FixedSignature<C> where
    C::FixedSignatureSize: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<C: Eq + WeierstrassCurve> Eq for FixedSignature<C> where
    C::FixedSignatureSize: Eq
[src]

impl<C> Signature for FixedSignature<C> where
    C: WeierstrassCurve
[src]

Create an ECDSA signature from its serialized byte representation

Important traits for &'a [u8]

Borrow a signature as a byte slice

Important traits for Vec<u8>

Convert signature into owned byte array

impl<C: WeierstrassCurve> Signature for FixedSignature<C>
[src]

impl<C> AsRef<[u8]> for FixedSignature<C> where
    C: WeierstrassCurve
[src]

Important traits for &'a [u8]

Performs the conversion.

impl<C> Debug for FixedSignature<C> where
    C: WeierstrassCurve
[src]

Formats the value using the given formatter. Read more

impl<C> Decode for FixedSignature<C> where
    C: WeierstrassCurve
[src]

Decode an ASN.1 encoded ECDSA signature from a byte slice with the given encoding (e.g. hex, Base64)

Decode the given string-alike type with the provided Encoding, returning the decoded value or a Error. Read more

Decode the data read from the given io::Read type with the provided Encoding, returning the decoded value or a Error. Read more

Read a file at the given path, decoding the data it contains using the provided Encoding, returning the decoded value or a Error. Read more

impl<C> Encode for FixedSignature<C> where
    C: WeierstrassCurve
[src]

Important traits for Vec<u8>

Encode an ASN.1 encoded ECDSA signature with the given encoding (e.g. hex, Base64)

Encode self to a String using the provided Encoding, returning the encoded value or a Error. Read more

Encode self with the given Encoding, writing the result to the supplied io::Write type, returning the number of bytes written or a Error. Read more

Encode self and write it to a file at the given path, returning the resulting File or a Error. Read more

impl<C> From<GenericArray<u8, C::FixedSignatureSize>> for FixedSignature<C> where
    C: WeierstrassCurve
[src]

Performs the conversion.

Auto Trait Implementations

impl<C> Send for FixedSignature<C> where
    <<C as WeierstrassCurve>::FixedSignatureSize as ArrayLength<u8>>::ArrayType: Send

impl<C> Sync for FixedSignature<C> where
    <<C as WeierstrassCurve>::FixedSignatureSize as ArrayLength<u8>>::ArrayType: Sync