Struct tari_crypto::hash::sha3::Sha3 [−][src]
👎 Deprecated:
This wrapper becomes obsolete once tari_crypto updates to digest v0.9, which is dependent on Dalek libraries updating to digest 0.9. When that happens, you can use the underlying Sha3_256 hasher directly and this wrapper will be removed.
A convenience wrapper produce 256 bit hashes from Blake2b
Implementations
impl Sha3
[src]
Trait Implementations
impl Clone for Sha3
[src]
impl Debug for Sha3
[src]
impl Default for Sha3
[src]
impl FixedOutput for Sha3
[src]
type OutputSize = U32
fn fixed_result(self) -> GenericArray<u8, U32>
[src]
impl Input for Sha3
[src]
fn input<B: AsRef<[u8]>>(&mut self, data: B)
[src]
pub fn chain<B>(self, data: B) -> Self where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
impl Reset for Sha3
[src]
Auto Trait Implementations
impl RefUnwindSafe for Sha3
impl Send for Sha3
impl Sync for Sha3
impl Unpin for Sha3
impl UnwindSafe for Sha3
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
[src]
T: InitializableFromZeroed + ?Sized,
impl<D> Digest for D where
D: Input + FixedOutput + Reset + Clone + Default,
[src]
D: Input + FixedOutput + Reset + Clone + Default,
type OutputSize = <D as FixedOutput>::OutputSize
pub fn new() -> D
[src]
pub fn input<B>(&mut self, data: B) where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
pub fn chain<B>(self, data: B) -> D where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
pub fn result(self) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
pub fn result_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
pub fn reset(&mut self)
[src]
pub fn output_size() -> usize
[src]
pub fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
impl<D> DynDigest for D where
D: 'static + Input + FixedOutput + Reset + Clone,
[src]
D: 'static + Input + FixedOutput + Reset + Clone,
pub fn input(&mut self, data: &[u8])
[src]
pub fn result_reset(&mut self) -> Box<[u8], Global>
[src]
pub fn result(self: Box<D, Global>) -> Box<[u8], Global>
[src]
pub fn reset(&mut self)
[src]
pub fn output_size(&self) -> usize
[src]
pub fn box_clone(&self) -> Box<dyn DynDigest + 'static, Global>
[src]
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
pub fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T> InitializableFromZeroed for T where
T: Default,
[src]
T: Default,
pub unsafe fn initialize(place: *mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
pub fn into_bits(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,