/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Bytes, Crypto, MaybePromise } from "@matter/general"; /** * Matter message privacy: obfuscation of the packet header for privacy-enhanced messages. * @see {@link MatterSpecification.v161.Core} ยง 4.9 */ export declare namespace MessagePrivacy { /** Derive a privacy key from an encryption key: HKDF(key, salt=[], info="PrivacyKey", 16). */ function deriveKey(crypto: Crypto, encryptionKey: Bytes): MaybePromise; /** Build the 13-byte privacy nonce: sessionId (2 bytes, big-endian) then the last 11 bytes of the message MIC. */ function buildNonce(sessionId: number, mic: Bytes): Bytes; /** * Obfuscate or deobfuscate a header region using AES-CTR (as AES-CCM with empty AAD, ciphertext-only). * CTR keystream XOR is symmetric, so the same call serves both directions. */ function obfuscate(crypto: Crypto, privacyKey: Bytes, data: Bytes, nonce: Bytes): Bytes; } //# sourceMappingURL=MessagePrivacy.d.ts.map