loadOrCreateKey

open suspend override fun loadOrCreateKey(): StorageEncryptionKey

The key for storage that has no key bound yet: a new database, or a database from before record encryption that is about to be encrypted. Returns the provider's only key, or creates and persists key ID 1 if the provider has none. Throws StorageEncryptionException.KeyUnavailable if the provider holds several keys (its namespace belongs to a database in or after a storage key rotation) or no key can be provided.