Definition
Deterministic authenticated encryption (DAE) is authenticated encryption §5.16 without a nonce §5.18 or randomness: it hides a message and detects any change to it, and its ciphertext is a fixed function of the key, the associated data (bytes authenticated but not hidden) and the plaintext. Equality leakage is what this reveals: equal inputs give equal ciphertexts, so an observer sees when the same plaintext and associated data are encrypted twice under one key. DAE promises to reveal nothing else except length; nonce-based encryption with unique nonces also hides equality.
Where it fits
Main entry: Synthetic initialization vector (SIV) and misuse resistance (§19.1.11).
The standard construction is SIV (synthetic initialization vector) mode, described in the SIV entry. It computes a pseudorandom function §15.1 of the associated data and the plaintext and uses that value both as the tag and as the starting value of the encryption. Rogaway and Shrimpton defined DAE in 2006 [435] for key wrapping §19.1.12, the encryption of one key under another. Their security definition forbids the attacker to request the encryption of the same input twice, since a repeated input trivially repeats its ciphertext. For distinct inputs, the ciphertexts must look like random strings of the right length, and no ciphertext the attacker makes up may decrypt.
Equality leakage, worked out. A door controller sends one of two 4-byte commands, OPEN or SHUT, under one key with fixed associated data; equal lengths mean that length reveals nothing. An observer sees five ciphertexts , where equal names mean equal bytes. Without the key, the observer learns that two different commands were sent, one 3 times and the other 2 times, and when each recurred. If the attacker can also make the controller send OPEN, for example by pressing the door button, and sees come out, all five are read: three OPEN and two SHUT. With nonce-based encryption and unique nonces, the five ciphertexts would all differ.
Equality leakage costs nothing when inputs never repeat. If every plaintext is a fresh random key, as in key wrapping, a repeat has negligible probability and DAE reveals only length. Putting a counter or a nonce into the associated data also makes every input distinct; SIV used this way is nonce-based encryption with nonce-misuse resistance: if the nonce does repeat, authenticity holds and only exact repeats show. Deterministic encryption without such a design can leak more: ECB (electronic codebook) mode encrypts each block of the message separately with a block cipher §15.3 under the same key, so it reveals which blocks are equal, within and across messages.
Limits and common mistakes
Determinism is not replay protection. A recorded ciphertext decrypts correctly every time it is sent again, and a replayed command looks exactly like a genuine repeat, so a receiver that must refuse old messages needs a counter or another freshness check §1.26. Message lengths and timing also remain visible to traffic analysis §5.47.
Questions answered
Can deterministic encryption hide whether the same message was sent twice?
No. Deterministic encryption computes the ciphertext as a fixed function of the key, the plaintext and any associated data (bytes authenticated but not hidden), so the same message sent twice under the same key and associated data gives the same ciphertext twice, and anyone watching sees the repeat. The security definition of deterministic authenticated encryption allows this equality leakage explicitly: it promises only that nothing beyond equality of whole inputs and length is revealed.
To hide repeats, some input must differ every time: put a counter or a nonce, a value used once per key, into the associated data, or use nonce-based encryption with unique nonces. Where the attacker can also have a guessed message encrypted under the same key and associated data, the leak lets the attacker confirm the guess by comparing ciphertexts.
Related entries: Confidentiality (§1.8), Replay attack (§1.26), Key wrapping versus ordinary encryption (§19.1.12). Further reading: [153, 435].