[][src]Enum win_crypto_ng::hash::HashAlgorithmId

pub enum HashAlgorithmId {
    Sha1,
    Sha256,
    Sha384,
    Sha512,
    Md2,
    Md4,
    Md5,
}

Hashing algorithm identifiers

Variants

Sha1

The 160-bit secure hash algorithm.

Standard: FIPS 180-2, FIPS 198.

Sha256

The 256-bit secure hash algorithm.

Standard: FIPS 180-2, FIPS 198.

Sha384

The 384-bit secure hash algorithm.

Standard: FIPS 180-2, FIPS 198.

Sha512

The 512-bit secure hash algorithm.

Standard: FIPS 180-2, FIPS 198.

Md2

The MD2 hash algorithm.

Standard: RFC 1319.

Md4

The MD4 hash algorithm.

Standard: RFC 1320.

Md5

The MD5 hash algorithm.

Standard: RFC 1321.

Implementations

impl HashAlgorithmId[src]

pub fn to_str(self) -> &'static str[src]

Trait Implementations

impl AlgorithmKind for HashAlgorithmId[src]

impl Clone for HashAlgorithmId[src]

impl Copy for HashAlgorithmId[src]

impl Debug for HashAlgorithmId[src]

impl PartialEq<HashAlgorithmId> for HashAlgorithmId[src]

impl PartialOrd<HashAlgorithmId> for HashAlgorithmId[src]

impl StructuralPartialEq for HashAlgorithmId[src]

impl<'a> TryFrom<&'a str> for HashAlgorithmId[src]

type Error = &'a str

The type returned in the event of a conversion error.

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> 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.