pub struct XofFixedWrapper<T: ExtendableOutput, S: ArraySize> { /* private fields */ }Expand description
Wrapper around ExtendableOutput types adding OutputSizeUser with the given size of S.
Trait Implementations§
Source§impl<T: ExtendableOutput + BlockSizeUser, S: ArraySize> BlockSizeUser for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + BlockSizeUser, S: ArraySize> BlockSizeUser for XofFixedWrapper<T, S>
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: ExtendableOutput + Clone, S: ArraySize> Clone for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + Clone, S: ArraySize> Clone for XofFixedWrapper<T, S>
Source§impl<T: ExtendableOutput + CollisionResistance, S: ArraySize> CollisionResistance for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + CollisionResistance, S: ArraySize> CollisionResistance for XofFixedWrapper<T, S>
Source§type CollisionResistance = <T as CollisionResistance>::CollisionResistance
type CollisionResistance = <T as CollisionResistance>::CollisionResistance
Collision resistance in bytes. Read more
Source§impl<T: ExtendableOutput + CustomizedInit, S: ArraySize> CustomizedInit for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + CustomizedInit, S: ArraySize> CustomizedInit for XofFixedWrapper<T, S>
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: ExtendableOutput + Debug, S: ArraySize> Debug for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + Debug, S: ArraySize> Debug for XofFixedWrapper<T, S>
Source§impl<T: ExtendableOutput + Default, S: ArraySize> Default for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + Default, S: ArraySize> Default for XofFixedWrapper<T, S>
Source§impl<T: ExtendableOutput, S: ArraySize> ExtendableOutput for XofFixedWrapper<T, S>
impl<T: ExtendableOutput, S: ArraySize> ExtendableOutput for XofFixedWrapper<T, S>
Source§type Reader = <T as ExtendableOutput>::Reader
type Reader = <T as ExtendableOutput>::Reader
Reader
Source§fn finalize_xof(self) -> Self::Reader
fn finalize_xof(self) -> Self::Reader
Retrieve XOF reader and consume hasher instance.
Source§fn finalize_xof_into(self, out: &mut [u8])
fn finalize_xof_into(self, out: &mut [u8])
Finalize XOF and write result into
out.Source§impl<T: ExtendableOutputReset, S: ArraySize> ExtendableOutputReset for XofFixedWrapper<T, S>
impl<T: ExtendableOutputReset, S: ArraySize> ExtendableOutputReset for XofFixedWrapper<T, S>
Source§fn finalize_xof_reset(&mut self) -> Self::Reader
fn finalize_xof_reset(&mut self) -> Self::Reader
Retrieve XOF reader and reset hasher instance state.
Source§fn finalize_xof_reset_into(&mut self, out: &mut [u8])
fn finalize_xof_reset_into(&mut self, out: &mut [u8])
Finalize XOF, write result into
out, and reset the hasher state.Source§impl<T: ExtendableOutput + Update, S: ArraySize> FixedOutput for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + Update, S: ArraySize> FixedOutput for XofFixedWrapper<T, S>
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) -> Output<Self>
fn finalize_fixed(self) -> Output<Self>
Retrieve result and consume the hasher instance.
Source§impl<T: ExtendableOutputReset, S: ArraySize> FixedOutputReset for XofFixedWrapper<T, S>
impl<T: ExtendableOutputReset, S: ArraySize> FixedOutputReset for XofFixedWrapper<T, S>
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) -> Output<Self>
fn finalize_fixed_reset(&mut self) -> Output<Self>
Retrieve result and reset the hasher state.
Source§impl<T: ExtendableOutput + KeyInit, S: ArraySize> KeyInit for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + KeyInit, S: ArraySize> KeyInit for XofFixedWrapper<T, S>
Source§fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
Create new value from variable size key. Read more
Source§impl<T: ExtendableOutput + KeySizeUser, S: ArraySize> KeySizeUser for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + KeySizeUser, S: ArraySize> KeySizeUser for XofFixedWrapper<T, S>
Source§impl<T: ExtendableOutput, S: ArraySize> OutputSizeUser for XofFixedWrapper<T, S>
impl<T: ExtendableOutput, S: ArraySize> OutputSizeUser for XofFixedWrapper<T, S>
Source§type OutputSize = S
type OutputSize = S
Size of the output in bytes.
Source§fn output_size() -> usize
fn output_size() -> usize
Return output size in bytes.
Source§impl<T: ExtendableOutput + Reset, S: ArraySize> Reset for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + Reset, S: ArraySize> Reset for XofFixedWrapper<T, S>
Source§impl<T: ExtendableOutput + SerializableState, S: ArraySize> SerializableState for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + SerializableState, S: ArraySize> SerializableState for XofFixedWrapper<T, S>
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: ExtendableOutput + Update, S: ArraySize> Update for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + Update, S: ArraySize> Update for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + HashMarker, S: ArraySize> HashMarker for XofFixedWrapper<T, S>
impl<T: ExtendableOutput + MacMarker, S: ArraySize> MacMarker for XofFixedWrapper<T, S>
Available on crate feature
mac only.impl<T: ExtendableOutput + ZeroizeOnDrop, S: ArraySize> ZeroizeOnDrop for XofFixedWrapper<T, S>
Available on crate feature
zeroize only.Auto Trait Implementations§
impl<T, S> Freeze for XofFixedWrapper<T, S>where
T: Freeze,
impl<T, S> RefUnwindSafe for XofFixedWrapper<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for XofFixedWrapper<T, S>
impl<T, S> Sync for XofFixedWrapper<T, S>
impl<T, S> Unpin for XofFixedWrapper<T, S>
impl<T, S> UnsafeUnpin for XofFixedWrapper<T, S>where
T: UnsafeUnpin,
impl<T, S> UnwindSafe for XofFixedWrapper<T, S>where
T: UnwindSafe,
S: 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
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<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
Source§impl<T> Mac for T
impl<T> Mac for T
Source§fn update(&mut self, data: &[u8])
fn update(&mut self, data: &[u8])
Available on crate feature
mac only.Update state using the provided data.
Source§fn chain_update(self, data: impl AsRef<[u8]>) -> T
fn chain_update(self, data: impl AsRef<[u8]>) -> T
Available on crate feature
mac only.Process input data in a chained manner.
Source§fn finalize_reset(&mut self) -> CtOutput<T>where
T: FixedOutputReset,
fn finalize_reset(&mut self) -> CtOutput<T>where
T: FixedOutputReset,
Available on crate feature
mac only.Source§fn reset(&mut self)where
T: Reset,
fn reset(&mut self)where
T: Reset,
Available on crate feature
mac only.Reset MAC instance to its initial state.
Source§fn verify(
self,
tag: &Array<u8, <T as OutputSizeUser>::OutputSize>,
) -> Result<(), MacError>
fn verify( self, tag: &Array<u8, <T as OutputSizeUser>::OutputSize>, ) -> Result<(), MacError>
Available on crate feature
mac only.Check if tag/code value is correct for the processed input. Read more
Source§fn verify_reset(
&mut self,
tag: &Array<u8, <T as OutputSizeUser>::OutputSize>,
) -> Result<(), MacError>where
T: FixedOutputReset,
fn verify_reset(
&mut self,
tag: &Array<u8, <T as OutputSizeUser>::OutputSize>,
) -> Result<(), MacError>where
T: FixedOutputReset,
Available on crate feature
mac only.Source§fn verify_slice(self, tag: &[u8]) -> Result<(), MacError>
fn verify_slice(self, tag: &[u8]) -> Result<(), MacError>
Available on crate feature
mac only.Check truncated tag correctness using all bytes
of calculated tag. Read more
Source§fn verify_slice_reset(&mut self, tag: &[u8]) -> Result<(), MacError>where
T: FixedOutputReset,
fn verify_slice_reset(&mut self, tag: &[u8]) -> Result<(), MacError>where
T: FixedOutputReset,
Available on crate feature
mac only.Source§impl<T> SmallBlockSizeUser for T
impl<T> SmallBlockSizeUser for T
Source§type _BlockSize = <T as BlockSizeUser>::BlockSize
type _BlockSize = <T as BlockSizeUser>::BlockSize
Available on crate feature
block-api only.Helper associated type equal to
<Self as BlockSizeUser>::BlockSize.