AttachmentCrypto

Bounded compatibility crypto for released-client attachment values.

Functions

Link copied to clipboard
fun decrypt(encrypted: ByteArray, key: ByteArray): ByteArray

Authenticate and decrypt one bounded released-client value.

Link copied to clipboard
fun encrypt(plaintext: ByteArray, key: ByteArray): ByteArray

Encrypt as nonce12 || ciphertext || tag16; large files use staged adapters.