Struct XofFixedWrapper

pub struct XofFixedWrapper<T: ExtendableOutput, S: ArraySize> { /* private fields */ }

Wrapper around ExtendableOutput types adding OutputSizeUser with the given size of S.

Trait Implementations

impl<T: ExtendableOutput + BlockSizeUser, S: ArraySize> BlockSizeUser for XofFixedWrapper<T, S>

type BlockSize = <T as BlockSizeUser>::BlockSize;

impl<T: ExtendableOutput + Clone, S: ArraySize> Clone for XofFixedWrapper<T, S>

fn clone(&self) -> Self

impl<T: ExtendableOutput + CollisionResistance, S: ArraySize> CollisionResistance for XofFixedWrapper<T, S>

type CollisionResistance = <T as CollisionResistance>::CollisionResistance;

impl<T: ExtendableOutput + CustomizedInit, S: ArraySize> CustomizedInit for XofFixedWrapper<T, S>

fn new_customized(customization: &[u8]) -> Self

impl<T: ExtendableOutput + Debug, S: ArraySize> Debug for XofFixedWrapper<T, S>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T: ExtendableOutput + Default, S: ArraySize> Default for XofFixedWrapper<T, S>

fn default() -> Self

impl<T: ExtendableOutput + HashMarker, S: ArraySize> HashMarker for XofFixedWrapper<T, S>

impl<T: ExtendableOutput + KeyInit, S: ArraySize> KeyInit for XofFixedWrapper<T, S>

fn new(key: &Key<Self>) -> Self

impl<T: ExtendableOutput + KeySizeUser, S: ArraySize> KeySizeUser for XofFixedWrapper<T, S>

type KeySize = <T as KeySizeUser>::KeySize;

impl<T: ExtendableOutput + MacMarker, S: ArraySize> MacMarker for XofFixedWrapper<T, S>

impl<T: ExtendableOutput + Reset, S: ArraySize> Reset for XofFixedWrapper<T, S>

fn reset(&mut self)

impl<T: ExtendableOutput + SerializableState, S: ArraySize> SerializableState for XofFixedWrapper<T, S>

type SerializedStateSize = <T as SerializableState>::SerializedStateSize;
fn serialize(&self) -> SerializedState<Self>
fn deserialize(serialized_state: &SerializedState<Self>) -> Result<Self, DeserializeStateError>

impl<T: ExtendableOutput + Update, S: ArraySize> FixedOutput for XofFixedWrapper<T, S>

fn finalize_into(self, out: &mut Output<Self>)

impl<T: ExtendableOutput + Update, S: ArraySize> Update for XofFixedWrapper<T, S>

fn update(&mut self, data: &[u8])

impl<T: ExtendableOutput + ZeroizeOnDrop, S: ArraySize> ZeroizeOnDrop for XofFixedWrapper<T, S>

impl<T: ExtendableOutput, S: ArraySize> ExtendableOutput for XofFixedWrapper<T, S>

type Reader = <T as ExtendableOutput>::Reader;
fn finalize_xof(self) -> Self::Reader

impl<T: ExtendableOutput, S: ArraySize> OutputSizeUser for XofFixedWrapper<T, S>

type OutputSize = S;

impl<T: ExtendableOutputReset, S: ArraySize> ExtendableOutputReset for XofFixedWrapper<T, S>

fn finalize_xof_reset(&mut self) -> Self::Reader

impl<T: ExtendableOutputReset, S: ArraySize> FixedOutputReset for XofFixedWrapper<T, S>

fn finalize_into_reset(&mut self, out: &mut Output<Self>)

Auto Trait Implementations

impl<T, S> Freeze for XofFixedWrapper<T, S> where T: Freeze, PhantomData<S>: Freeze,

impl<T, S> RefUnwindSafe for XofFixedWrapper<T, S> where T: RefUnwindSafe, PhantomData<S>: RefUnwindSafe,

impl<T, S> Send for XofFixedWrapper<T, S> where T: Send, PhantomData<S>: Send,

impl<T, S> Sync for XofFixedWrapper<T, S> where T: Sync, PhantomData<S>: Sync,

impl<T, S> Unpin for XofFixedWrapper<T, S> where T: Unpin, PhantomData<S>: Unpin,

impl<T, S> UnsafeUnpin for XofFixedWrapper<T, S> where T: UnsafeUnpin, PhantomData<S>: UnsafeUnpin,

impl<T, S> UnwindSafe for XofFixedWrapper<T, S> where T: UnwindSafe, PhantomData<S>: UnwindSafe,

Blanket Implementations

impl<D> Digest for XofFixedWrapper<T, S> where D: FixedOutput + Default + Update + HashMarker,

fn new() -> D
fn new_with_prefix(data: impl AsRef<[u8]>) -> D
where
    D: Sized + Default,
fn update(&mut self, data: impl AsRef<[u8]>)
fn chain_update(self, data: impl AsRef<[u8]>) -> D
fn finalize(self) -> Array<u8, <D as OutputSizeUser>::OutputSize>
fn finalize_into(self, out: &mut Array<u8, <D as OutputSizeUser>::OutputSize>)
fn finalize_reset(&mut self) -> 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,
fn reset(&mut self)
where
    D: Reset,
fn output_size() -> usize
fn digest(data: impl AsRef<[u8]>) -> Array<u8, <D as OutputSizeUser>::OutputSize>

impl<D> DynDigest for XofFixedWrapper<T, S> where D: Update + FixedOutputReset + Reset + Clone + 'static,

fn update(&mut self, data: &[u8])
fn finalize_reset(&mut self) -> Box<[u8]>
fn finalize(self: Box<D>) -> Box<[u8]>
fn finalize_into(self, buf: &mut [u8]) -> Result<(), InvalidBufferSize>
fn finalize_into_reset(&mut self, buf: &mut [u8]) -> Result<(), InvalidBufferSize>
fn reset(&mut self)
fn output_size(&self) -> usize
fn box_clone(&self) -> Box<dyn DynDigest>

impl<T> Any for XofFixedWrapper<T, S> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for XofFixedWrapper<T, S> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for XofFixedWrapper<T, S> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for XofFixedWrapper<T, S> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for XofFixedWrapper<T, S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Mac for XofFixedWrapper<T, S> where T: Update + FixedOutput + MacMarker,

fn update(&mut self, data: &[u8])
fn chain_update(self, data: impl AsRef<[u8]>) -> T
fn finalize(self) -> CtOutput<T>
fn finalize_reset(&mut self) -> CtOutput<T>
where
    T: FixedOutputReset,
fn reset(&mut self)
where
    T: Reset,
fn verify(self, tag: &Array<u8, <T as OutputSizeUser>::OutputSize>) -> Result<(), MacError>
fn verify_reset(&mut self, tag: &Array<u8, <T as OutputSizeUser>::OutputSize>) -> Result<(), MacError>
where
    T: FixedOutputReset,
fn verify_slice(self, tag: &[u8]) -> Result<(), MacError>
fn verify_slice_reset(&mut self, tag: &[u8]) -> Result<(), MacError>
where
    T: FixedOutputReset,
fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError>
fn verify_truncated_right(self, tag: &[u8]) -> Result<(), MacError>

impl<T> Same for XofFixedWrapper<T, S>

type Output = T;

impl<T> SmallBlockSizeUser for XofFixedWrapper<T, S> where T: BlockSizeUser, <T as BlockSizeUser>::BlockSize: BlockSizes,

type _BlockSize = <T as BlockSizeUser>::BlockSize;

impl<T> ToOwned for XofFixedWrapper<T, S> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> TryCustomizedInit for XofFixedWrapper<T, S> where T: CustomizedInit,

type Error = never;
fn try_new_customized(customization: &[u8]) -> Result<Self, Self::Error>

impl<T, U> Into<U> for XofFixedWrapper<T, S> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for XofFixedWrapper<T, S> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for XofFixedWrapper<T, S> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>