Struct ghash::GHash [−][src]
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 Debug for GHash
[src]
impl NewUniversalHash for GHash
[src]
type KeySize = U16
Size of the key for the universal hash function.
fn new(h: &Key) -> Self
[src]
Initialize GHASH with the given H
field element
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])
[src]
pub fn finalize_reset(&mut self) -> Output<Self>
[src]
pub fn verify(
self,
other: &GenericArray<u8, Self::BlockSize>
) -> Result<(), Error>
[src]
self,
other: &GenericArray<u8, Self::BlockSize>
) -> Result<(), Error>
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,