[][src]Function logins_ffi::sync15_passwords_state_new_with_hex_key

#[no_mangle]pub unsafe extern "C" fn sync15_passwords_state_new_with_hex_key(
    db_path: FfiStr<'_>,
    encryption_key: *const u8,
    encryption_key_len: u32,
    error: &mut ExternError
) -> u64

Same as sync15_passwords_state_new, but automatically hex-encodes the string.

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 encryption_key pointer, and is thus unsafe.