Function gnunet_sys::GNUNET_CRYPTO_pow_hash[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_pow_hash(
    salt: *const GNUNET_CRYPTO_PowSalt,
    buf: *const c_void,
    buf_len: usize,
    result: *mut GNUNET_HashCode
)

Calculate the ‘proof-of-work’ hash (an expensive hash).

@param salt salt for the hash. Must be crypto_pwhash_argon2id_SALTBYTES long. @param buf data to hash @param buf_len number of bytes in @a buf @param result where to write the resulting hash