[−][src]Struct sha2::Sha512Trunc256
The SHA-512 hash algorithm with the SHA-512/256 initial hash value. The result is truncated to 256 bits.
Trait Implementations
impl Debug for Sha512Trunc256
impl Debug for Sha512Trunc256fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for Sha512Trunc256[src]
impl Clone for Sha512Trunc256fn clone(&self) -> Sha512Trunc256[src]
fn clone(&self) -> Sha512Trunc256Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Default for Sha512Trunc256[src]
impl Default for Sha512Trunc256impl Input for Sha512Trunc256[src]
impl Input for Sha512Trunc256fn process(&mut self, msg: &[u8])[src]
fn process(&mut self, msg: &[u8])Digest input data. This method can be called repeatedly for use with streaming messages. Read more
impl FixedOutput for Sha512Trunc256[src]
impl FixedOutput for Sha512Trunc256type OutputSize = U32
fn fixed_result(self) -> GenericArray<u8, Self::OutputSize>[src]
fn fixed_result(self) -> GenericArray<u8, Self::OutputSize>Retrieve the digest result. This method consumes digest instance.
impl BlockInput for Sha512Trunc256[src]
impl BlockInput for Sha512Trunc256Auto Trait Implementations
impl Send for Sha512Trunc256
impl Send for Sha512Trunc256impl Sync for Sha512Trunc256
impl Sync for Sha512Trunc256Blanket Implementations
impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<D> Digest for D where
D: Input + BlockInput + FixedOutput + Default, [src]
impl<D> Digest for D where
D: Input + BlockInput + FixedOutput + Default, fn new() -> Self[src]
fn new() -> SelfCreate new hasher instance
fn input(&mut self, input: &[u8])[src]
fn input(&mut self, input: &[u8])Digest input data. This method can be called repeatedly for use with streaming messages. Read more
fn result(self) -> GenericArray<u8, Self::OutputSize>[src]
fn result(self) -> GenericArray<u8, Self::OutputSize>Retrieve the digest result. This method consumes digest instance.
fn digest(data: &[u8]) -> GenericArray<u8, Self::OutputSize>[src]
fn digest(data: &[u8]) -> GenericArray<u8, Self::OutputSize>Convenience function to compute hash of the data. It will handle hasher creation, data feeding and finalization. Read more
fn digest_str(str: &str) -> GenericArray<u8, Self::OutputSize>[src]
fn digest_str(str: &str) -> GenericArray<u8, Self::OutputSize>Convenience function to compute hash of the string. It's equivalent to digest(input_string.as_bytes()). Read more
impl<T> Same for T[src]
impl<T> Same for Ttype Output = T
Should always be Self