/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Bytes } from "#util/Bytes.js"; import type { Crypto } from "./Crypto.js"; /** * A symmetric cipher for encrypting and decrypting data. */ export interface Cipher { encrypt(data: Bytes): Bytes; decrypt(data: Bytes): Bytes; } /** * AES-128-CCM cipher using the platform's {@link Crypto} implementation. * * Storage format: `[13-byte nonce][ciphertext + 16-byte auth tag]`. */ export declare class AesCipher implements Cipher { #private; constructor(crypto: Crypto, key: Bytes); encrypt(data: Bytes): Bytes; decrypt(data: Bytes): Bytes; } //# sourceMappingURL=Cipher.d.ts.map