Type Definition ascon_hash::AsconAXOF

source ·
pub type AsconAXOF = CoreWrapper<AsconAXOFCore>;
Expand description

AsconAXOF

use ascon_hash::{AsconAXOF, ExtendableOutput, Update, XofReader};

let mut xof = AsconAXOF::default();
xof.update(b"some bytes");
let mut reader = xof.finalize_xof();
let mut dst = [0u8; 5];
reader.read(&mut dst);
assert_eq!(&dst, b"\xb8\xd6\xbd\xf0\xa7");