rekeyAt

abstract fun rekeyAt(db: Long, pointer: Long, length: Int): SQLCode(source)

Replaces the database key with a 32-byte key held in native secret memory.

For a non-empty key, pointer must reference a live allocation returned by allocateSecret with a size of exactly 32 bytes, and length must be 32. A length of zero clears encryption and does not dereference pointer.

Since

0.36.0


open fun rekeyAt(db: DatabaseHandle, pointer: Long, length: Int): SQLCode(source)