Function riot_sys::sha256

source ·
pub unsafe extern "C" fn sha256(
    data: *const c_void,
    len: size_t,
    digest: *mut c_void
)
Expand description

@brief A wrapper function to simplify the generation of a hash, this is useful for generating sha256 for one buffer

@param[in] data pointer to the buffer to generate hash from @param[in] len length of the buffer @param[out] digest Pointer to an array for the result, length must be SHA256_DIGEST_LENGTH