[][src]Function logins_ffi::sync15_passwords_rekey_database_with_hex_key

#[no_mangle]pub unsafe extern "C" fn sync15_passwords_rekey_database_with_hex_key(
    handle: u64,
    new_encryption_key: *const u8,
    new_encryption_key_len: u32,
    error: &mut ExternError
)

Same as sync15_passwords_rekey_database, but accepts a byte array encryption key.

If a key_len of 0 is provided, then the database will not be encrypted.

Note: lowercase hex characters are used (e.g. it encodes using the character set 0-9a-f and NOT 0-9A-F).

Safety

Dereferences the new_encryption_key pointer, and is thus unsafe.