Skip to content

Subverted Cipher

Algorithm substitution · AES-CTR that leaks its own key · unique ciphertexts

Swap a real AES-CTR encryptor for one that still decrypts correctly and passes every check you can run with your own key, watch the holder of a second key read your key out of the ciphertexts, then try the same trick on a scheme with nothing left to choose.

A teaching demo, not production crypto. The AES, HMAC-SHA-256 and AES-GCM are real (WebCrypto, plus a FIPS 197 AES block written out so the IV can be enciphered and deciphered in the open), and every subversion key lives only in this page's memory for this session. The user-side checks in exhibits 1 and 2 illustrate undetectability; the proof is the paper's and rests on F being a PRF.