riot_sys::bindgen

Function sha512

Source
pub unsafe extern "C" fn sha512(
    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 sha512 for one single buffer in a single step.

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