Struct ghash::GHash [−][src]
pub struct GHash(_);
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
impl Clone for GHash
[src]
impl Clone for GHash
[src]fn clone(&self) -> GHash
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl UniversalHash for GHash
[src]
impl UniversalHash for GHash
[src]type BlockSize = U16
Size of the inputs to and outputs from the universal hash function
fn update(&mut self, x: &Block)
[src]
Input a field element X
to be authenticated
fn reset(&mut self)
[src]
Reset internal state
fn finalize(self) -> Tag
[src]
Get GHASH output
pub fn update_padded(&mut self, data: &[u8])
pub fn finalize_reset(&mut self) -> Output<Self>
pub fn verify(
self,
other: &GenericArray<u8, Self::BlockSize>
) -> Result<(), Error>
self,
other: &GenericArray<u8, Self::BlockSize>
) -> Result<(), Error>