AES-128-CCM authenticated encryption for Matter session security.
Matter uses AES-128-CCM with:
- 16-byte key
- 13-byte nonce
- 16-byte tag (128-bit MIC)
Summary
Functions
Decrypt ciphertext with AES-128-CCM.
Returns {:ok, plaintext} on success, :error if authentication fails.
Encrypt plaintext with AES-128-CCM.
Returns {ciphertext, tag} where tag is 16 bytes.