AttachmentDecryptionStream

Incremental authenticated decryption for a private staged destination.

Bytes returned by update remain unauthenticated. Delete the staged file unless finish succeeds, then atomically move it into its final location.

Types

Link copied to clipboard
object Companion

Start from authenticated released-client enc metadata and nonce prefix.

Functions

Link copied to clipboard
fun cancel(): ERROR CLASS: Unresolved name: cancel

Zeroize state and reject further updates.

Link copied to clipboard
open override fun close()

Cancel unfinished work and release the native stream.

Link copied to clipboard
fun finish(authenticationTag: ByteArray): AttachmentTransformFinal

Authenticate the complete stream and return final hashes.

Link copied to clipboard
fun update(ciphertext: ByteArray): ByteArray

Decrypt the next ciphertext chunk into unauthenticated staged bytes.