pub struct CtOutWrapper<T, OutSize>{ /* private fields */ }Expand description
Wrapper around VariableOutputCore which selects output size at compile time.
Trait Implementations§
Source§impl<T, OutSize> AlgorithmName for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + AlgorithmName,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
impl<T, OutSize> AlgorithmName for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + AlgorithmName,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
Source§impl<T, OutSize> BlockSizeUser for CtOutWrapper<T, OutSize>
impl<T, OutSize> BlockSizeUser for CtOutWrapper<T, OutSize>
Source§type BlockSize = <T as BlockSizeUser>::BlockSize
type BlockSize = <T 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<T, OutSize> BufferKindUser for CtOutWrapper<T, OutSize>
impl<T, OutSize> BufferKindUser for CtOutWrapper<T, OutSize>
Source§type BufferKind = <T as BufferKindUser>::BufferKind
type BufferKind = <T as BufferKindUser>::BufferKind
Block buffer kind over which type operates.
Source§impl<T, OutSize> Clone for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + Clone,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True> + Clone,
impl<T, OutSize> Clone for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + Clone,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True> + Clone,
Source§fn clone(&self) -> CtOutWrapper<T, OutSize>
fn clone(&self) -> CtOutWrapper<T, OutSize>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, OutSize> CollisionResistance for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + CollisionResistance,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
impl<T, OutSize> CollisionResistance for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + CollisionResistance,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
Source§type CollisionResistance = <T as CollisionResistance>::CollisionResistance
type CollisionResistance = <T as CollisionResistance>::CollisionResistance
Collision resistance in bytes. Read more
Source§impl<T, OutSize> CustomizedInit for CtOutWrapper<T, OutSize>where
T: VariableOutputCoreCustomized,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
impl<T, OutSize> CustomizedInit for CtOutWrapper<T, OutSize>where
T: VariableOutputCoreCustomized,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
Source§fn new_customized(customization: &[u8]) -> Self
fn new_customized(customization: &[u8]) -> Self
Create new hasher instance with the given customization string.
Source§impl<T, OutSize> Debug for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + AlgorithmName,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
impl<T, OutSize> Debug for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + AlgorithmName,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
Source§impl<T, OutSize> Default for CtOutWrapper<T, OutSize>
impl<T, OutSize> Default for CtOutWrapper<T, OutSize>
Source§impl<T, OutSize> FixedOutputCore for CtOutWrapper<T, OutSize>
impl<T, OutSize> FixedOutputCore for CtOutWrapper<T, OutSize>
Source§fn finalize_fixed_core(
&mut self,
buffer: &mut Buffer<Self>,
out: &mut Array<u8, Self::OutputSize>,
)
fn finalize_fixed_core( &mut self, buffer: &mut Buffer<Self>, out: &mut Array<u8, Self::OutputSize>, )
Finalize state using remaining data stored in the provided block buffer,
write result into provided array and leave
self in a dirty state.Source§impl<T, OutSize> OutputSizeUser for CtOutWrapper<T, OutSize>
impl<T, OutSize> OutputSizeUser for CtOutWrapper<T, OutSize>
Source§type OutputSize = OutSize
type OutputSize = OutSize
Size of the output in bytes.
Source§fn output_size() -> usize
fn output_size() -> usize
Return output size in bytes.
Source§impl<T, OutSize> Reset for CtOutWrapper<T, OutSize>
impl<T, OutSize> Reset for CtOutWrapper<T, OutSize>
Source§impl<T, OutSize> SerializableState for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + SerializableState,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
impl<T, OutSize> SerializableState for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + SerializableState,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
Source§type SerializedStateSize = <T as SerializableState>::SerializedStateSize
type SerializedStateSize = <T as SerializableState>::SerializedStateSize
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. Read more
Source§impl<T, OutSize> UpdateCore for CtOutWrapper<T, OutSize>
impl<T, OutSize> UpdateCore for CtOutWrapper<T, OutSize>
Source§fn update_blocks(&mut self, blocks: &[Block<Self>])
fn update_blocks(&mut self, blocks: &[Block<Self>])
Update state using the provided data blocks.
impl<T, OutSize> HashMarker for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + HashMarker,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
impl<T, OutSize> MacMarker for CtOutWrapper<T, OutSize>where
T: VariableOutputCore + MacMarker,
OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,
Available on crate feature
mac only.Auto Trait Implementations§
impl<T, OutSize> Freeze for CtOutWrapper<T, OutSize>where
T: Freeze,
impl<T, OutSize> RefUnwindSafe for CtOutWrapper<T, OutSize>where
T: RefUnwindSafe,
OutSize: RefUnwindSafe,
impl<T, OutSize> Send for CtOutWrapper<T, OutSize>
impl<T, OutSize> Sync for CtOutWrapper<T, OutSize>
impl<T, OutSize> Unpin for CtOutWrapper<T, OutSize>
impl<T, OutSize> UnsafeUnpin for CtOutWrapper<T, OutSize>where
T: UnsafeUnpin,
impl<T, OutSize> UnwindSafe for CtOutWrapper<T, OutSize>where
T: UnwindSafe,
OutSize: UnwindSafe,
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