CipherDescriptorCallbacks

Regroups all the callbacks of the ksqlite_cipher_descriptor interface. All the functions are invoked from JNI.

Functions

Link copied to clipboard
abstract fun allocateCipher(db: JniPointer, index: Int): Cipher?
Link copied to clipboard
abstract fun cloneCipher(cipherTo: Cipher, cipherFrom: Cipher)
Link copied to clipboard
abstract fun decryptPage(cipher: Cipher, page: Int, data: JniPointer, dataLength: Int, reserved: Int, hmacCheck: Int): Int
Link copied to clipboard
abstract fun encryptPage(cipher: Cipher, page: Int, data: JniPointer, dataLength: Int, reserved: Int): Int
Link copied to clipboard
abstract fun freeCipher(cipher: Cipher)
Link copied to clipboard
abstract fun generateKey(cipher: Cipher, userPassword: ByteArray, rekey: Int, cipherSalt: Long)
Link copied to clipboard
abstract fun getLegacy(cipher: Cipher): Int
Link copied to clipboard
abstract fun getPageSize(cipher: Cipher): Int
Link copied to clipboard
abstract fun getReserved(cipher: Cipher): Int
Link copied to clipboard
abstract fun getSalt(cipher: Cipher): JniPointer