Type Definition ascon_hash::AsconAHash

source ·
pub type AsconAHash = CoreWrapper<AsconACore>;
Expand description

AsconA hash

use ascon_hash::{AsconAHash, Digest};

let mut hasher = AsconAHash::new();
hasher.update(b"some bytes");
let digest = hasher.finalize();
assert_eq!(&digest[..], b"\x1d\x1a\xc8\x74\x4a\x4a\x05\x81\x33\x7d\x5a\xf2\x78\xc2\x55\x88\xe1\xa3\xdd\x2d\x86\x73\x07\x64\x26\x53\xdc\xa4\x45\xf5\x5c\x2a");