Struct ed448_verifier::digest::XofDigest
source · pub struct XofDigest<T, OutputSize>where
T: ExtendableOutput,
OutputSize: ArrayLength<u8> + 'static,{ /* private fields */ }
Expand description
Adapter for an extendable output function (XOF) to make it a
Digest
with
a fixed output size.
Implementations§
Trait Implementations§
source§impl<T, OutputSize> Digest for XofDigest<T, OutputSize>
impl<T, OutputSize> Digest for XofDigest<T, OutputSize>
source§fn new_with_prefix(data: impl AsRef<[u8]>) -> Self
fn new_with_prefix(data: impl AsRef<[u8]>) -> Self
Create new hasher instance which has processed the provided data.
source§fn chain_update(self, data: impl AsRef<[u8]>) -> Self
fn chain_update(self, data: impl AsRef<[u8]>) -> Self
Process input data in a chained manner.
source§fn finalize_into(self, out: &mut Output<Self>)
fn finalize_into(self, out: &mut Output<Self>)
Write result into provided array and consume the hasher instance.
source§fn finalize_reset(&mut self) -> Output<Self>
fn finalize_reset(&mut self) -> Output<Self>
Retrieve result and reset hasher instance.
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 instance.
source§fn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher
source§impl DigestVerifier<XofDigest<CoreWrapper<Shake256Core>, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>, Signature> for VerifyingKey
impl DigestVerifier<XofDigest<CoreWrapper<Shake256Core>, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>, Signature> for VerifyingKey
source§fn verify_digest(
&self,
digest: Shake256U64,
signature: &Signature,
) -> Result<(), SignatureError>
fn verify_digest( &self, digest: Shake256U64, signature: &Signature, ) -> Result<(), SignatureError>
Verify the signature against the given [
Digest
] output.source§impl<T, OutputSize> FixedOutput for XofDigest<T, OutputSize>where
T: ExtendableOutput,
OutputSize: ArrayLength<u8> + 'static,
impl<T, OutputSize> FixedOutput for XofDigest<T, OutputSize>where
T: ExtendableOutput,
OutputSize: ArrayLength<u8> + 'static,
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.
§fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and consume the hasher instance.
source§impl<T, OutputSize> FixedOutputReset for XofDigest<T, OutputSize>
impl<T, OutputSize> FixedOutputReset for XofDigest<T, OutputSize>
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.
§fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and reset the hasher state.
source§impl<T, OutputSize> OutputSizeUser for XofDigest<T, OutputSize>where
T: ExtendableOutput,
OutputSize: ArrayLength<u8> + 'static,
impl<T, OutputSize> OutputSizeUser for XofDigest<T, OutputSize>where
T: ExtendableOutput,
OutputSize: ArrayLength<u8> + 'static,
source§type OutputSize = OutputSize
type OutputSize = OutputSize
Size of the output in bytes.
§fn output_size() -> usize
fn output_size() -> usize
Return output size in bytes.
Auto Trait Implementations§
impl<T, OutputSize> Freeze for XofDigest<T, OutputSize>where
T: Freeze,
impl<T, OutputSize> RefUnwindSafe for XofDigest<T, OutputSize>where
T: RefUnwindSafe,
OutputSize: RefUnwindSafe,
impl<T, OutputSize> Send for XofDigest<T, OutputSize>
impl<T, OutputSize> Sync for XofDigest<T, OutputSize>
impl<T, OutputSize> Unpin for XofDigest<T, OutputSize>
impl<T, OutputSize> UnwindSafe for XofDigest<T, OutputSize>where
T: UnwindSafe,
OutputSize: 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