pub struct GHash(_);
Expand description
GHASH: universal hash over GF(2^128) used by AES-GCM.
GHASH is a universal hash function used for message authentication in the AES-GCM authenticated encryption cipher.
Trait Implementations§
source§impl NewUniversalHash for GHash
impl NewUniversalHash for GHash
source§impl UniversalHash for GHash
impl UniversalHash for GHash
§type BlockSize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>
type BlockSize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>
Size of the inputs to and outputs from the universal hash function
source§fn update_padded(&mut self, data: &[u8])
fn update_padded(&mut self, data: &[u8])
Input data into the universal hash function. If the length of the
data is not a multiple of the block size, the remaining data is
padded with zeroes up to the
BlockSize
. Read moresource§fn finalize_reset(&mut self) -> Output<Self>
fn finalize_reset(&mut self) -> Output<Self>
Obtain the
Output
of a UniversalHash
computation and reset it back
to its initial state.Auto Trait Implementations§
impl RefUnwindSafe for GHash
impl Send for GHash
impl Sync for GHash
impl Unpin for GHash
impl UnwindSafe for GHash
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