CryptoCipherBinding import { CryptoCipherBinding } from "destack:crypto/binding"; Cipher binding family. export interface CryptoCipherBinding { encryptCipher(key: CryptoKeyHandle, parameters: &'b readonly CryptoCipherParameters<'a>, payload: &'c readonly [uint8]): Result; decryptCipher(key: CryptoKeyHandle, parameters: &'b readonly CryptoCipherParameters<'a>, payload: &'c readonly [uint8]): Result; openCipher(key: CryptoKeyHandle, direction: CryptoCipherDirection, parameters: &'b readonly CryptoCipherParameters<'a>): Result; updateCipherAdditionalData(cipher: CryptoCipherHandle, additionalData: &'a readonly [uint8]): Result; updateCipher(cipher: CryptoCipherHandle, payload: &'a readonly [uint8]): Result; finishCipher(cipher: CryptoCipherHandle, finalPayload: &'a readonly [uint8]): Result; closeCipher(cipher: CryptoCipherHandle): Result; } language/library/src/crypto/binding/cipher.ds:42:133 Members encryptCipher(key: CryptoKeyHandle, parameters: &'b readonly CryptoCipherParameters<'a>, payload: &'c readonly [uint8]): Result Encrypt one payload in one shot. decryptCipher(key: CryptoKeyHandle, parameters: &'b readonly CryptoCipherParameters<'a>, payload: &'c readonly [uint8]): Result Decrypt one payload in one shot. openCipher(key: CryptoKeyHandle, direction: CryptoCipherDirection, parameters: &'b readonly CryptoCipherParameters<'a>): Result Open one streaming cipher context. updateCipherAdditionalData(cipher: CryptoCipherHandle, additionalData: &'a readonly [uint8]): Result Add authenticated data to one streaming cipher context. updateCipher(cipher: CryptoCipherHandle, payload: &'a readonly [uint8]): Result Update one streaming cipher context with one payload chunk. finishCipher(cipher: CryptoCipherHandle, finalPayload: &'a readonly [uint8]): Result Finalize one streaming cipher context. closeCipher(cipher: CryptoCipherHandle): Result Close one streaming cipher context.