Struct digest_hash::Endian[][src]

pub struct Endian<D, Bo> { /* fields omitted */ }

An adapter to provide digest functions with endian-awareness.

Methods

impl<D, Bo> Endian<D, Bo> where
    Bo: ByteOrder
[src]

Returns a string describing the byte order used by this Endian type instance.

This is mainly used for debugging purposes. The user should not rely on any particular output.

impl<D, Bo> Endian<D, Bo> where
    D: Input,
    D: Default,
    Bo: ByteOrder
[src]

Constructs an instance of an endian-aware hasher.

Examples

let hasher = digest_hash::BigEndian::<Sha256>::new();

impl<D, Bo> Endian<D, Bo>
[src]

Consumes self and returns the underlying digest implementation.

Trait Implementations

impl<D: Clone, Bo: Clone> Clone for Endian<D, Bo>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<D, Bo> Debug for Endian<D, Bo> where
    D: Debug,
    Bo: ByteOrder
[src]

Formats the value using the given formatter. Read more

impl<D, Bo> EndianInput for Endian<D, Bo> where
    D: Input,
    Bo: ByteOrder
[src]

The byte order this implementation provides. Read more

Feeds an unsigned 8-bit value into the digest function. Read more

Feeds a signed 8-bit value into the digest function. Read more

Digest an unsigned 8-bit value in a chained manner. Read more

Digest a signed 8-bit value in a chained manner. Read more

impl<D, Bo> Input for Endian<D, Bo> where
    D: Input
[src]

Digest input data. Read more

Digest input data in a chained manner.

impl<D, Bo> BlockInput for Endian<D, Bo> where
    D: BlockInput
[src]

impl<D, Bo> FixedOutput for Endian<D, Bo> where
    D: FixedOutput
[src]

Retrieve result and consume hasher instance.

impl<D, Bo> Reset for Endian<D, Bo> where
    D: Reset
[src]

Reset hasher instance to its initial state and return current state.

impl<D, Bo> Default for Endian<D, Bo> where
    D: Input,
    D: Default,
    Bo: ByteOrder
[src]

Returns the "default value" for a type. Read more

impl<D, Bo> From<D> for Endian<D, Bo> where
    D: Input,
    Bo: ByteOrder
[src]

Performs the conversion.

Auto Trait Implementations

impl<D, Bo> Send for Endian<D, Bo> where
    Bo: Send,
    D: Send

impl<D, Bo> Sync for Endian<D, Bo> where
    Bo: Sync,
    D: Sync