Aes

AES-256, also known as Rijndael, is a symmetric-key block cipher specified in the Advanced Encryption Standard (AES). It uses a 256-bit key for encryption and decryption, and operates on a fixed block size of 128 bits. AES-256 is widely recognized for its high level of security.

Properties

Link copied to clipboard
open override val ivLength: UInt

The IV length depends on cryptographic primitive used by implementation.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val uuid: UUID

Each cipher used for database encryption has unique ID.

Functions

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

Decrypt the data using provided key and iv.

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

Encrypt the data using provided key and iv.