StreamingAeadCipher

class StreamingAeadCipher(streamingAead: StreamingAead, dispatcher: ERROR CLASS: Symbol not found for CoroutineDispatcher = Dispatchers.Default) : Cipher

Optional Cipher backed by Tink StreamingAead for large payloads (REQ-HRD-03).

Compatible with the KryptoStore envelope when used from EncryptedProtoSerializer / EncryptedPreferencesSerializer: the envelope still wraps the StreamingAead ciphertext.

Prefer the default TinkCipher / platform Cipher for small settings blobs.

Constructors

Link copied to clipboard
constructor(streamingAead: StreamingAead, dispatcher: ERROR CLASS: Symbol not found for CoroutineDispatcher = Dispatchers.Default)

Functions

Link copied to clipboard
open suspend override fun decrypt(message: ByteArray, associatedData: ByteArray? = null): ByteArray
Link copied to clipboard
open suspend override fun encrypt(message: ByteArray, associatedData: ByteArray? = null): ByteArray