Package-level declarations
Types
An encrypted version of Login. This is what we return for all the "read" APIs - we never return the cleartext of encrypted fields.
A login stored in the database
A login entry from the user, not linked to any database record. The add/update APIs input these, alongside an encryption key.
These are the errors returned by our public API.
The equivalent of the *mut RustBuffer
type. Required for callbacks taking in an out pointer.
Fields available only while the encryption key is known.
Functions
Check that key is still valid using the output of create_canary
. text
much match the text you initially passed to create_canary()
Create a "canary" string, which can be used to test if the encryption key is still valid for the logins data
Decrypt an encrypted string
to SecureLoginFields
Decrypt an EncryptedLogin
to a Login
Encrypt SecureLoginFields
to an encrypted string
Encrypt a Login
to an EncryptedLogin