Security Engineering

A protocol sends a header (tenant ID, sequence number) that routers must read, then a payload that must stay confidential. The receiver must detect any change to either part. Which construction meets all three needs?

Show the answer

Correct answerB. Encrypt the payload with AEAD and pass the header as associated data

AWhy not this: CBC provides no integrity, so header or payload tampering would go undetected.

BWhy this is right: Associated data stays readable yet is covered by the authentication tag, along with the ciphertext.

CWhy not this: The header would be encrypted, so routers could not read the tenant ID or sequence number.

DWhy not this: An unkeyed hash lets an attacker alter the header and recompute the hash, so tampering is not detected.

AEAD authenticates associated data without encrypting it, so routers can read the header while any change to it or to the ciphertext fails tag verification. Encrypting the header too would hide it from routers; an unkeyed hash can be recomputed by an attacker.