PrfCryptoSession

In-memory, zeroizable session that encapsulates a PRF-derived AES key.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
suspend fun decrypt(ciphertext: PrfCiphertext): ByteArray
Link copied to clipboard
suspend fun decryptToString(ciphertext: PrfCiphertext): String
Link copied to clipboard
suspend fun encrypt(plaintext: ByteArray, associatedData: ByteArray? = null): PrfCiphertext
Link copied to clipboard
suspend fun encryptString(plaintext: String, associatedData: ByteArray? = null): PrfCiphertext