Struct Sha384
pub struct Sha384 {
pub(crate) core: CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>,
pub(crate) buffer: BlockBuffer<<CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as BlockSizeUser>::BlockSize, <CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as BufferKindUser>::BufferKind>,
}Expand description
SHA-384 hasher.
Fields§
§core: CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>§buffer: BlockBuffer<<CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as BlockSizeUser>::BlockSize, <CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as BufferKindUser>::BufferKind>Trait Implementations§
§impl CoreProxy for Sha384
impl CoreProxy for Sha384
§type Core = CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>
type Core = CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>
Core block-level type.
Source§impl DigestString for Sha384
impl DigestString for Sha384
Source§const ENCODING: DigestEncoding = DigestEncoding::Hex
const ENCODING: DigestEncoding = DigestEncoding::Hex
The format used for string representation of the digest.
§impl FixedOutput for Sha384
impl FixedOutput for Sha384
§fn finalize_into(
self,
out: &mut Array<u8, <Sha384 as OutputSizeUser>::OutputSize>,
)
fn finalize_into( self, out: &mut Array<u8, <Sha384 as OutputSizeUser>::OutputSize>, )
Consume value and write result into provided array.
§fn finalize_fixed(self) -> Array<u8, Self::OutputSize>
fn finalize_fixed(self) -> Array<u8, Self::OutputSize>
Retrieve result and consume the hasher instance.
§impl FixedOutputReset for Sha384
impl FixedOutputReset for Sha384
§fn finalize_into_reset(
&mut self,
out: &mut Array<u8, <Sha384 as OutputSizeUser>::OutputSize>,
)
fn finalize_into_reset( &mut self, out: &mut Array<u8, <Sha384 as OutputSizeUser>::OutputSize>, )
Write result into provided array and reset the hasher state.
§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.
impl HashMarker for Sha384
§impl SerializableState for Sha384
impl SerializableState for Sha384
§type SerializedStateSize = <<CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as SerializableState>::SerializedStateSize as Add<<<CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as BlockSizeUser>::BlockSize as Add<<<CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as BufferKindUser>::BufferKind as Sealed>::Overhead>>::Output>>::Output
type SerializedStateSize = <<CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as SerializableState>::SerializedStateSize as Add<<<CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as BlockSizeUser>::BlockSize as Add<<<CtOutWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> as BufferKindUser>::BufferKind as Sealed>::Overhead>>::Output>>::Output
Size of serialized internal state.
Auto Trait Implementations§
impl Freeze for Sha384
impl RefUnwindSafe for Sha384
impl Send for Sha384
impl Sync for Sha384
impl Unpin for Sha384
impl UnsafeUnpin for Sha384
impl UnwindSafe for Sha384
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,
§impl<D> Digest for Dwhere
D: FixedOutput + Default + Update + HashMarker,
impl<D> Digest for Dwhere
D: FixedOutput + Default + Update + HashMarker,
§fn new_with_prefix(data: impl AsRef<[u8]>) -> D
fn new_with_prefix(data: impl AsRef<[u8]>) -> D
Create new hasher instance which has processed the provided data.
§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.
§fn finalize(self) -> Array<u8, <D as OutputSizeUser>::OutputSize>
fn finalize(self) -> Array<u8, <D as OutputSizeUser>::OutputSize>
Retrieve result and consume hasher instance.
§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.
§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.
§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.
§fn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher
§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
§impl<D> DynDigest for Dwhere
D: Update + FixedOutputReset + Reset + Clone + 'static,
impl<D> DynDigest for Dwhere
D: Update + FixedOutputReset + Reset + Clone + 'static,
§fn finalize_reset(&mut self) -> Box<[u8]>
fn finalize_reset(&mut self) -> Box<[u8]>
Retrieve result and reset hasher instance
§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
§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
§fn output_size(&self) -> usize
fn output_size(&self) -> usize
Get output size of the hasher
impl<T> DynDigestWithOid for Twhere
T: DynDigest + DynAssociatedOid,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SmallBlockSizeUser for Twhere
T: BlockSizeUser,
<T as BlockSizeUser>::BlockSize: BlockSizes,
impl<T> SmallBlockSizeUser for Twhere
T: BlockSizeUser,
<T as BlockSizeUser>::BlockSize: BlockSizes,
§type _BlockSize = <T as BlockSizeUser>::BlockSize
type _BlockSize = <T as BlockSizeUser>::BlockSize
Helper associated type equal to
<Self as BlockSizeUser>::BlockSize.