raw
A 256-bit key used as is, with no key derivation (SQLCipher's raw-key form). The recommended choice: SQLCipher runs no PBKDF2 per connection, and a key from a KDF or a key store is already uniform. The salt is read from the file header.
Parameters
key
exactly 32 bytes.
Throws
if key is not 32 bytes long or is all zeros (an uninitialized buffer, never a real key).
A 256-bit key plus the database's 16-byte salt, for files whose salt is not stored in the file header.
Parameters
key
exactly 32 bytes.
salt
exactly 16 bytes.