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
sourceimpl UniversalHash for GHash
impl UniversalHash for GHash
sourcefn update_with_backend(
&mut self,
f: impl UhfClosure<BlockSize = Self::BlockSize>
)
fn update_with_backend(
&mut self,
f: impl UhfClosure<BlockSize = Self::BlockSize>
)
Update hash function state using the provided rank-2 closure.
fn update(&mut self, blocks: &[GenericArray<u8, Self::BlockSize>])
fn update(&mut self, blocks: &[GenericArray<u8, Self::BlockSize>])
Update hash function state with the provided block.
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 more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more