Score:3

Is it safe to use AES-CCM only for authentication - i.e. for sending AAD without encrypted data?

cn flag

We are employing an AES-CCM 128-bit stream-cipher with 7-Byte Nonces and 12-Byte Authentication Tags in a communication protocol. Up until this point there was no need to use Additional Authenticated Data (AAD) in this protocol, as all transmitted data - apart from the Nonce - was encrypted.

In the meantime, some new networking-related requirements came up which may require one message-field to be transmitted as AAD instead of within the ciphertext. Some of the transmitted messages would then actually only consist of this one authenticated but plaintext field. There would be no additional ciphertext in these messages. The intendent message-recipient will always have to authenticate the message before actually interpreting it.

Would this be viable/safe to do or does this compromise the security of the system in any way?

Score:3
in flag

The NIST specification of CCM (in full: "Recommendation for Block Cipher Modes of Operation: The CCM Mode for Authentication and Confidentiality"): has an explicit remark about this in section 5.3:

The payload may also be empty, in which case the specification degenerates to an authentication mode on the associated data.

So yeah, it is safe and it doesn't compromise security. This is generally true for any authenticated cipher by the way.

As a sidenote, as with almost any cipher, any adversary can of course see that there is no ciphertext - and since CTR is used, it commonly knows the exact size of each plaintext message.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.