/// Callback for an HMAC-SHA256 implementation.
/// This function shall free the private context allocated in
/// hmac_sha256_init_func.
///
/// @param hmac_context private HMAC context pointer
Callback for an HMAC-SHA256 implementation.
This function shall free the private context allocated in
hmac_sha256_init_func.
Callback for an HMAC - SHA256 implementation . This function shall free the private context allocated in hmac_sha256_init_func .
extern "C" fn hmac_sha256_cleanup_func(hmac_context: *mut c_void, _user_data: *mut c_void) {
    debug!("hmac_sha256_cleanup_func");
    // This transfers ownership of the service back to Rust which will drop it.
    let _wrapper: Box<HmacWrapper<Sha256>> =
        unsafe { Box::from_raw(hmac_context as *mut HmacWrapper<Sha256>) };
}
extern " " fn hmac_sha256_cleanup_func ( hmac_context : * mut c_void , _user_data : * mut c_void ) { debug ! ( " " ) ; // This transfers ownership of the service back to Rust which will drop it. let _wrapper : Box < HmacWrapper < Sha256 > > = unsafe { Box :: from_raw ( hmac_context as * mut HmacWrapper < Sha256 > ) } ; }
Callback for an HMAC-SHA256 implementation.
Callback for an HMAC - SHA256 implementation .
hmac_context
*mut c_void
private HMAC context pointer
private HMAC context pointer
_user_data
*mut c_void