[−][src]Function iota_crypto::hash_with_mode
pub fn hash_with_mode(
mode: HashMode,
trits: &[i8],
out: &mut [i8]
) -> Result<(), Error>
Allows you to hash trits
into out
using the mode
of your choosing
use iota_crypto::{self, HashMode}; let input = [0; 243]; let mut out = [0; 243]; iota_crypto::hash_with_mode(HashMode::Kerl, &input, &mut out);