[][src]Struct ghash::GHash

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 Debug for GHash[src]

impl NewUniversalHash for GHash[src]

type KeySize = U16

Size of the key for the universal hash function.

pub 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

pub fn update(&mut self, x: &Block)[src]

Input a field element X to be authenticated

pub fn reset(&mut self)[src]

Reset internal state

pub fn finalize(self) -> Tag[src]

Get GHASH output

Auto Trait Implementations

impl Send for GHash[src]

impl Sync for GHash[src]

impl Unpin for GHash[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.