Struct crypto::ghash::Ghash [-] [+] [src]

pub struct Ghash {
    // some fields omitted
}

A structure representing the state of a GHASH computation

Methods

impl Ghash

fn new(h: &[u8]) -> Ghash

Creates a new GHASH state, with h as the key

fn input_a(self, a: &[u8]) -> Ghash

Feeds data for GHASH's A input

fn input_c(self, c: &[u8]) -> GhashWithC

Feeds data for GHASH's C input

fn result(self) -> [u8; 16]

Retrieve the digest result

Trait Implementations

impl Mac for Ghash

fn input(&mut self, data: &[u8])

fn reset(&mut self)

fn result(&mut self) -> MacResult

fn raw_result(&mut self, output: &mut [u8])

fn output_bytes(&self) -> usize

Derived Implementations

impl Copy for Ghash