pub unsafe extern "C" fn sha256(
data: *const c_char,
length: u32,
hash: *mut capi_checksum256
)
Expand description
Hashes data
using sha256
and stores result in memory pointed to by hash.
@brief Hashes data
using sha256
and stores result in memory pointed to by hash.
@param data - Data you want to hash @param length - Data length @param hash - Hash pointer
Example:
@code checksum calc_hash; sha256( data, length, &calc_hash ); eos_assert( calc_hash == hash, “invalid hash” ); @endcode