CipherProvider

Properties

Link copied to clipboard
abstract val ivLength: UInt

The IV length depends on cryptographic primitive used by implementation.

Link copied to clipboard
abstract val uuid: UUID

Each cipher used for database encryption has unique ID.

Functions

Link copied to clipboard
abstract fun decrypt(key: ByteArray, iv: ByteArray, data: ByteArray): ByteArray

Decrypt the data using provided key and iv.

Link copied to clipboard
abstract fun encrypt(key: ByteArray, iv: ByteArray, data: ByteArray): ByteArray

Encrypt the data using provided key and iv.