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