[][src]Enum tink_proto::EcdsaSignatureEncoding

#[repr(i32)]pub enum EcdsaSignatureEncoding {
    UnknownEncoding,
    IeeeP1363,
    Der,
}

Variants

UnknownEncoding
IeeeP1363

The signature's format is r || s, where r and s are zero-padded and have the same size in bytes as the order of the curve. For example, for NIST P-256 curve, r and s are zero-padded to 32 bytes.

Der

The signature is encoded using ASN.1 (https://tools.ietf.org/html/rfc5480#appendix-A): ECDSA-Sig-Value :: = SEQUENCE { r INTEGER, s INTEGER }

Implementations

impl EcdsaSignatureEncoding[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of EcdsaSignatureEncoding.

pub fn from_i32(value: i32) -> Option<EcdsaSignatureEncoding>[src]

Converts an i32 to a EcdsaSignatureEncoding, or None if value is not a valid variant.

Trait Implementations

impl Clone for EcdsaSignatureEncoding[src]

impl Copy for EcdsaSignatureEncoding[src]

impl Debug for EcdsaSignatureEncoding[src]

impl Default for EcdsaSignatureEncoding[src]

impl Eq for EcdsaSignatureEncoding[src]

impl From<EcdsaSignatureEncoding> for i32[src]

impl Hash for EcdsaSignatureEncoding[src]

impl Ord for EcdsaSignatureEncoding[src]

impl PartialEq<EcdsaSignatureEncoding> for EcdsaSignatureEncoding[src]

impl PartialOrd<EcdsaSignatureEncoding> for EcdsaSignatureEncoding[src]

impl StructuralEq for EcdsaSignatureEncoding[src]

impl StructuralPartialEq for EcdsaSignatureEncoding[src]

Auto Trait Implementations

impl RefUnwindSafe for EcdsaSignatureEncoding

impl Send for EcdsaSignatureEncoding

impl Sync for EcdsaSignatureEncoding

impl Unpin for EcdsaSignatureEncoding

impl UnwindSafe for EcdsaSignatureEncoding

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.