#[unsafe(no_mangle)]pub unsafe extern "C" fn ffi_decrypt_data(
passphrase: *const c_char,
input_ptr: *const u8,
input_len: usize,
out_len: *mut usize,
) -> *mut u8Expand description
Decrypts data using the given passphrase.
§Safety
passphrasemust be a valid null-terminated C stringinput_ptrmust point to valid memory of at leastinput_lenbytesout_lenmust be a valid pointer to write the output length
§Returns
- Non-null pointer to decrypted bytes on success
- NULL on error (invalid input, incorrect passphrase, or panic)