Struct skein_hash::Skein1024[][src]

pub struct Skein1024<N: Unsigned + ArrayLength<u8> + NonZero + Default> { /* fields omitted */ }

Trait Implementations

impl<N> BlockInput for Skein1024<N> where
    N: Unsigned + ArrayLength<u8> + NonZero + Default
[src]

type BlockSize = <Threefish1024 as BlockCipher>::BlockSize

Block size

impl<N: Clone + Unsigned + ArrayLength<u8> + NonZero + Default> Clone for Skein1024<N>[src]

fn clone(&self) -> Skein1024<N>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<N> Debug for Skein1024<N> where
    N: Unsigned + ArrayLength<u8> + NonZero + Default
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<N> Default for Skein1024<N> where
    N: Unsigned + ArrayLength<u8> + NonZero + Default
[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<N> FixedOutputDirty for Skein1024<N> where
    N: Unsigned + ArrayLength<u8> + NonZero + Default
[src]

type OutputSize = N

Output size for fixed output digest

fn finalize_into_dirty(
    &mut self,
    output: &mut GenericArray<u8, Self::OutputSize>
)
[src]

Retrieve result into provided buffer and leave hasher in a dirty state. Read more

impl<N> Reset for Skein1024<N> where
    N: Unsigned + ArrayLength<u8> + NonZero + Default
[src]

fn reset(&mut self)[src]

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

impl<N> Update for Skein1024<N> where
    N: Unsigned + ArrayLength<u8> + NonZero + Default
[src]

fn update(&mut self, data: impl AsRef<[u8]>)[src]

Digest input data. Read more

fn chain(self, data: impl AsRef<[u8]>) -> Self[src]

Digest input data in a chained manner.

Auto Trait Implementations

impl<N> Send for Skein1024<N>

impl<N> Sync for Skein1024<N>

impl<N> Unpin for Skein1024<N> where
    <N as ArrayLength<u8>>::ArrayType: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<D> Digest for D where
    D: Update + FixedOutput + Reset + Clone + Default
[src]

type OutputSize = <D as FixedOutput>::OutputSize

Output size for Digest

pub fn new() -> D[src]

Create new hasher instance

pub fn update(&mut self, data: impl AsRef<[u8]>)[src]

Digest data, updating the internal state. Read more

pub fn chain(self, data: impl AsRef<[u8]>) -> D[src]

Digest input data in a chained manner.

pub fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>[src]

Retrieve result and consume hasher instance.

pub fn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>[src]

Retrieve result and reset hasher instance. Read more

pub fn reset(&mut self)[src]

Reset hasher instance to its initial state.

pub fn output_size() -> usize[src]

Get output size of the hasher

pub fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>[src]

Convenience function to compute hash of the data. It will handle hasher creation, data feeding and finalization. Read more

impl<D> FixedOutput for D where
    D: FixedOutputDirty + Reset
[src]

type OutputSize = <D as FixedOutputDirty>::OutputSize

Output size for fixed output digest

pub fn finalize_into(
    self,
    out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
[src]

Write result into provided array and consume the hasher instance.

pub fn finalize_into_reset(
    &mut self,
    out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
[src]

Write result into provided array and reset the hasher instance.

fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>[src]

Retrieve result and consume the hasher instance.

fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>[src]

Retrieve result and reset the hasher instance.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.