Enum libreauth::hash::HashFunction[][src]

#[repr(C)]pub enum HashFunction {
    Sha1,
    Sha224,
    Sha256,
    Sha384,
    Sha512,
    Sha512Trunc224,
    Sha512Trunc256,
    Sha3_224,
    Sha3_256,
    Sha3_384,
    Sha3_512,
    Keccak224,
    Keccak256,
    Keccak384,
    Keccak512,
}

C interface

The C interface uses an enum of type libreauth_hash_function and the members has been renamed as follows:

Rust C
Sha1 LIBREAUTH_HASH_SHA_1
Sha224 LIBREAUTH_HASH_SHA_224
Sha256 LIBREAUTH_HASH_SHA_256
Sha384 LIBREAUTH_HASH_SHA_384
Sha512 LIBREAUTH_HASH_SHA_512
Sha512Trunc224 LIBREAUTH_HASH_SHA_512_TRUNC_224
Sha512Trunc256 LIBREAUTH_HASH_SHA_512_TRUNC_256
Sha3_224 LIBREAUTH_HASH_SHA_3_224
Sha3_256 LIBREAUTH_HASH_SHA_3_256
Sha3_384 LIBREAUTH_HASH_SHA_3_384
Sha3_512 LIBREAUTH_HASH_SHA_3_512
Keccak224 LIBREAUTH_HASH_KECCAK_224
Keccak256 LIBREAUTH_HASH_KECCAK_256
Keccak384 LIBREAUTH_HASH_KECCAK_384
Keccak512 LIBREAUTH_HASH_KECCAK_512

Variants

Sha1
Sha224
Sha256
Sha384
Sha512
Sha512Trunc224
Sha512Trunc256
Sha3_224
Sha3_256
Sha3_384
Sha3_512
Keccak224
Keccak256
Keccak384
Keccak512

Trait Implementations

impl Clone for HashFunction[src]

impl Copy for HashFunction[src]

impl Display for HashFunction[src]

impl Eq for HashFunction[src]

impl FromStr for HashFunction[src]

type Err = HashFunctionError

The associated error which can be returned from parsing.

impl PartialEq<HashFunction> for HashFunction[src]

impl StructuralEq for HashFunction[src]

impl StructuralPartialEq for HashFunction[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> 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> ToString for T where
    T: Display + ?Sized
[src]

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.