The IV length depends on cryptographic primitive used by implementation.
Each cipher used for database encryption has unique ID.
Decrypt the data using provided key and iv.
Encrypt the data using provided key and iv.