extern "C" fn sha512_digest_update_func(
    digest_context: *mut c_void,
    data: *const u8,
    data_len: usize,
    _user_data: *mut c_void,
) -> c_int {
    debug!("sha512_digest_update_func");
    let wrapper: &mut DigestWrapper = unsafe { mem::transmute(digest_context as usize) };
    let array = unsafe { slice::from_raw_parts_mut(data as *mut _, data_len) };
    wrapper.ctxt.update(array);
    0
}
/// Callback for a SHA512 message digest implementation.
/// This function shall update the digest context with the provided data.
///
/// @param digest_context private digest context pointer
/// @param data pointer to the data
/// @param data_len length of the data
/// @return 0 on success, negative on failure
Callback for a SHA512 message digest implementation.
This function shall update the digest context with the provided data.
Callback for a SHA512 message digest implementation . This function shall update the digest context with the provided data .
extern "C" fn sha512_digest_update_func(
    digest_context: *mut c_void,
    data: *const u8,
    data_len: usize,
    _user_data: *mut c_void,
) -> c_int {
    debug!("sha512_digest_update_func");
    let wrapper: &mut DigestWrapper = unsafe { mem::transmute(digest_context as usize) };
    let array = unsafe { slice::from_raw_parts_mut(data as *mut _, data_len) };
    wrapper.ctxt.update(array);
    0
}
extern " " fn sha512_digest_update_func ( digest_context : * mut c_void , data : * const u8 , data_len : usize , _user_data : * mut c_void , ) -> c_int { debug ! ( " " ) ; let wrapper : & mut DigestWrapper = unsafe { mem :: transmute ( digest_context as usize ) } ; let array = unsafe { slice :: from_raw_parts_mut ( data as * mut _ , data_len ) } ; wrapper . ctxt . update ( array ) ; 0 }
Callback for a SHA512 message digest implementation.
Callback for a SHA512 message digest implementation .
digest_context
*mut c_void
data
*const u8
data_len
usize
_user_data
*mut c_void
0 on success, negative on failure
0 on success negative on failure
digest_context
*mut c_void
private digest context pointer
private digest context pointer
data
*const u8
pointer to the data
pointer to the data
data_len
usize
length of the data
length of the data
_user_data
*mut c_void