#[unsafe(no_mangle)]pub unsafe extern "C" fn ffi_encrypt_data(
passphrase: *const c_char,
input_ptr: *const u8,
input_len: usize,
out_len: *mut usize,
) -> *mut u8Expand description
Encrypts 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 encrypted bytes on success
- NULL on error (invalid input or panic)