@softcose/softchat - v0.1.0
    Preparing search index...

    Class AttachmentEncryptionStream

    Incremental released-client-compatible attachment encryption.

    Write nonce, every update result, and the final tag to a private staged destination. Publish it only after finish succeeds.

    Index
    • get nonce(): Uint8Array

      Fresh 12-byte nonce that must prefix the encrypted output.

      Returns Uint8Array

    • Zeroize state and reject further updates without publishing output.

      Returns void

    • Encrypt the next plaintext chunk and return its ciphertext bytes.

      Parameters

      • plaintext: Uint8Array

      Returns Uint8Array