Type Definition ascon_hash::AsconXOF

source ·
pub type AsconXOF = CoreWrapper<AsconXOFCore>;
Expand description

AsconXOF

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

let mut xof = AsconXOF::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"\xc2\x19\x72\xfd\xe9");