Factory

Creates and configures instances of Cipher on demand.

Properties

Link copied to clipboard
abstract val saltSize: Long

Size, in bytes, of this cipher's salt, or 0 if it does not need one.

Functions

Link copied to clipboard
abstract fun clone(source: Cipher, target: Cipher)

Copies the state of source into target, called when SQLite needs a second, independently-keyed cipher instance derived from the same key, typically when opening another connection to the same database.

Link copied to clipboard

Creates a new Cipher instance. Called the first time a connection actually derives a key with this cipher, not merely when it is selected through ksqlite.kapi.cipher.CipherConfiguration.setCipher.

Link copied to clipboard

Registers every parameter this cipher accepts. A sentinel entry is appended automatically after the ones registered here.