generateKey

abstract fun generateKey(userPassword: ByteArray, rekey: Int, cipherSalt: Buffer?)(source)

Derives an encryption key from userPassword.

This function itself must not throw. If key derivation fails, record the failure and throw it from the next call to encryptPage or decryptPage instead.