pub type MDB_enc_func = Option<unsafe extern "C" fn(src: *const MDB_val, dst: *mut MDB_val, key: *const MDB_val, encdec: c_int) -> c_int>;Expand description
A callback function used to encrypt/decrypt pages in the env.
Encrypt or decrypt the data in src and store the result in dst using the provided key. The result must be the same number of bytes as the input.
§Arguments
src(direction in) - The input data to be transformed.dst(direction out) - Storage for the result.key(direction in) - An array of three values: key[0] is the encryption key, key[1] is the initialization vector, and key[2] is the authentication data, if any.encdec(direction in) - 1 to encrypt, 0 to decrypt.
§Returns
A non-zero error value on failure and 0 on success.
Aliased Type§
enum MDB_enc_func {
None,
Some(unsafe extern "C" fn(_: *const MDB_val, _: *mut MDB_val, _: *const MDB_val, _: i32) -> i32),
}