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]

[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]

[src]

Constructs an instance of an endian-aware hasher.

Examples

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

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

[src]

Consumes self and returns the underlying digest implementation.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

The byte order this implementation provides. Read more

[src]

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

[src]

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

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

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

[src]

Digest input data. This method can be called repeatedly for use with streaming messages. Read more

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

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

[src]

Retrieve the digest result. This method consumes digest instance.

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

[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]

[src]

Performs the conversion.