[][src]Enum picky::signature::SignatureHashType

pub enum SignatureHashType {
    RsaSha1,
    RsaSha224,
    RsaSha256,
    RsaSha384,
    RsaSha512,
}

Variants

RsaSha1
RsaSha224
RsaSha256
RsaSha384
RsaSha512

Methods

impl SignatureHashType[src]

pub fn from_algorithm_identifier(
    algorithm_identifier: &AlgorithmIdentifier
) -> Result<Self, SignatureError>
[src]

pub fn hash(self, msg: &[u8]) -> Vec<u8>[src]

pub fn sign(
    self,
    msg: &[u8],
    private_key: &PrivateKey
) -> Result<Vec<u8>, SignatureError>
[src]

pub fn verify(
    self,
    public_key: &PublicKey,
    msg: &[u8],
    signature: &[u8]
) -> Result<(), SignatureError>
[src]

Trait Implementations

impl Clone for SignatureHashType[src]

impl Copy for SignatureHashType[src]

impl Debug for SignatureHashType[src]

impl<'de> Deserialize<'de> for SignatureHashType[src]

impl Eq for SignatureHashType[src]

impl From<SignatureHashType> for AlgorithmIdentifier[src]

impl Hash for SignatureHashType[src]

impl PartialEq<SignatureHashType> for SignatureHashType[src]

impl Serialize for SignatureHashType[src]

impl StructuralEq for SignatureHashType[src]

impl StructuralPartialEq for SignatureHashType[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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,