pub struct BashHash<OS: OutputSize> { /* private fields */ }Expand description
bash-hash hasher state generic over output size.
Trait Implementations§
Source§impl<OS: OutputSize> AlgorithmName for BashHash<OS>
impl<OS: OutputSize> AlgorithmName for BashHash<OS>
Source§impl<OS: OutputSize> BlockSizeUser for BashHash<OS>
impl<OS: OutputSize> BlockSizeUser for BashHash<OS>
Source§type BlockSize = <BashHashCore<OS> as BlockSizeUser>::BlockSize
type BlockSize = <BashHashCore<OS> as BlockSizeUser>::BlockSize
Size of the block in bytes.
Source§fn block_size() -> usize
fn block_size() -> usize
Return block size in bytes.
Source§impl<OS: OutputSize> Clone for BashHash<OS>
impl<OS: OutputSize> Clone for BashHash<OS>
Source§impl<OS: OutputSize> CoreProxy for BashHash<OS>
impl<OS: OutputSize> CoreProxy for BashHash<OS>
Source§impl<OS: OutputSize> Debug for BashHash<OS>
impl<OS: OutputSize> Debug for BashHash<OS>
Source§impl<OS: OutputSize> Default for BashHash<OS>
impl<OS: OutputSize> Default for BashHash<OS>
Source§impl<OS: OutputSize> FixedOutput for BashHash<OS>
impl<OS: OutputSize> FixedOutput for BashHash<OS>
Source§fn finalize_into(self, out: &mut Output<Self>)
fn finalize_into(self, out: &mut Output<Self>)
Consume value and write result into provided array.
Source§fn finalize_fixed(self) -> Array<u8, Self::OutputSize>
fn finalize_fixed(self) -> Array<u8, Self::OutputSize>
Retrieve result and consume the hasher instance.
Source§impl<OS: OutputSize> FixedOutputReset for BashHash<OS>
impl<OS: OutputSize> FixedOutputReset for BashHash<OS>
Source§fn finalize_into_reset(&mut self, out: &mut Output<Self>)
fn finalize_into_reset(&mut self, out: &mut Output<Self>)
Write result into provided array and reset the hasher state.
Source§fn finalize_fixed_reset(&mut self) -> Array<u8, Self::OutputSize>
fn finalize_fixed_reset(&mut self) -> Array<u8, Self::OutputSize>
Retrieve result and reset the hasher state.
Source§impl<OS: OutputSize> OutputSizeUser for BashHash<OS>
impl<OS: OutputSize> OutputSizeUser for BashHash<OS>
Source§type OutputSize = <BashHashCore<OS> as OutputSizeUser>::OutputSize
type OutputSize = <BashHashCore<OS> as OutputSizeUser>::OutputSize
Size of the output in bytes.
Source§fn output_size() -> usize
fn output_size() -> usize
Return output size in bytes.
Source§impl<OS: OutputSize> Reset for BashHash<OS>
impl<OS: OutputSize> Reset for BashHash<OS>
Source§impl<OS: OutputSize> SerializableState for BashHash<OS>
impl<OS: OutputSize> SerializableState for BashHash<OS>
Source§type SerializedStateSize = <UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B0> as Add<<OS as OutputSize>::BlockSize>>::Output
type SerializedStateSize = <UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>, B0>, B0> as Add<<OS as OutputSize>::BlockSize>>::Output
Size of serialized internal state.
Source§fn serialize(&self) -> SerializedState<Self>
fn serialize(&self) -> SerializedState<Self>
Serialize and return internal state.
Source§fn deserialize(
serialized_state: &SerializedState<Self>,
) -> Result<Self, DeserializeStateError>
fn deserialize( serialized_state: &SerializedState<Self>, ) -> Result<Self, DeserializeStateError>
Create an object from serialized internal state.
Source§impl<OS: OutputSize> Update for BashHash<OS>
impl<OS: OutputSize> Update for BashHash<OS>
impl<OS: OutputSize> HashMarker for BashHash<OS>
impl<OS: OutputSize> ZeroizeOnDrop for BashHash<OS>
Available on crate feature
zeroize only.Auto Trait Implementations§
impl<OS> Freeze for BashHash<OS>
impl<OS> RefUnwindSafe for BashHash<OS>where
OS: RefUnwindSafe,
<<OS as OutputSize>::BlockSize as ArraySize>::ArrayType<u8>: RefUnwindSafe,
impl<OS> Send for BashHash<OS>where
OS: Send,
impl<OS> Sync for BashHash<OS>where
OS: Sync,
impl<OS> Unpin for BashHash<OS>
impl<OS> UnwindSafe for BashHash<OS>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> Digest for D
impl<D> Digest for D
Source§fn new_with_prefix(data: impl AsRef<[u8]>) -> Dwhere
D: Default,
fn new_with_prefix(data: impl AsRef<[u8]>) -> Dwhere
D: Default,
Create new hasher instance which has processed the provided data.
Source§fn chain_update(self, data: impl AsRef<[u8]>) -> D
fn chain_update(self, data: impl AsRef<[u8]>) -> D
Process input data in a chained manner.
Source§fn finalize(self) -> Array<u8, <D as OutputSizeUser>::OutputSize>
fn finalize(self) -> Array<u8, <D as OutputSizeUser>::OutputSize>
Retrieve result and consume hasher instance.
Source§fn finalize_into(self, out: &mut Array<u8, <D as OutputSizeUser>::OutputSize>)
fn finalize_into(self, out: &mut Array<u8, <D as OutputSizeUser>::OutputSize>)
Write result into provided array and consume the hasher instance.
Source§fn finalize_reset(&mut self) -> Array<u8, <D as OutputSizeUser>::OutputSize>where
D: FixedOutputReset,
fn finalize_reset(&mut self) -> Array<u8, <D as OutputSizeUser>::OutputSize>where
D: FixedOutputReset,
Retrieve result and reset hasher instance.
Source§fn finalize_into_reset(
&mut self,
out: &mut Array<u8, <D as OutputSizeUser>::OutputSize>,
)where
D: FixedOutputReset,
fn finalize_into_reset(
&mut self,
out: &mut Array<u8, <D as OutputSizeUser>::OutputSize>,
)where
D: FixedOutputReset,
Write result into provided array and reset the hasher instance.
Source§fn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher
Source§fn digest(
data: impl AsRef<[u8]>,
) -> Array<u8, <D as OutputSizeUser>::OutputSize>
fn digest( data: impl AsRef<[u8]>, ) -> Array<u8, <D as OutputSizeUser>::OutputSize>
Compute hash of
data.Source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
Source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
Source§impl<D> DynDigest for D
impl<D> DynDigest for D
Source§fn finalize_reset(&mut self) -> Box<[u8]>
fn finalize_reset(&mut self) -> Box<[u8]>
Available on crate feature
alloc only.Retrieve result and reset hasher instance
Source§fn finalize(self: Box<D>) -> Box<[u8]>
fn finalize(self: Box<D>) -> Box<[u8]>
Available on crate feature
alloc only.Retrieve result and consume boxed hasher instance
Source§fn finalize_into(self, buf: &mut [u8]) -> Result<(), InvalidBufferSize>
fn finalize_into(self, buf: &mut [u8]) -> Result<(), InvalidBufferSize>
Write result into provided array and consume the hasher instance. Read more
Source§fn finalize_into_reset(
&mut self,
buf: &mut [u8],
) -> Result<(), InvalidBufferSize>
fn finalize_into_reset( &mut self, buf: &mut [u8], ) -> Result<(), InvalidBufferSize>
Write result into provided array and reset the hasher instance. Read more
Source§fn output_size(&self) -> usize
fn output_size(&self) -> usize
Get output size of the hasher