pub struct LengthPadding(/* private fields */);Expand description
SHA-2 length padding.
The preimage is padded by appending a single 1 bit, followed by as many bits as needed to pad to a multiple of 512 - 64 = 448 bits, followed by the bit length of the preimage encoded as an unsigned big-endian 64 bit integer. This results in a Merkle-Damgard compliant padding into blocks of 512 bits.
Trait Implementations§
Source§impl Debug for LengthPadding
impl Debug for LengthPadding
Auto Trait Implementations§
impl Freeze for LengthPadding
impl RefUnwindSafe for LengthPadding
impl Send for LengthPadding
impl Sync for LengthPadding
impl Unpin for LengthPadding
impl UnwindSafe for LengthPadding
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