Skip to content
04Connected Networks StudioPSUT · Networking and Communication
Connected Networks Studio

CR20 · AES · round-by-round avalanche

Hamming distance counts set bits in XOR of two equally sized states. Normalize by the 128-bit state width, not the key length. Compare identical AddRoundKey boundaries in baseline, plaintext-only and key-only runs. Bit numbering here starts at bit 0 of the last byte, so bit 120 is the low bit of the first byte for a 16-byte block. Diffusion generally spreads differences, but the distance need not grow monotonically and one trial cannot prove security. At bit 120 the reference final distances are 58/128=45.3125% (plaintext) and 53/128=41.40625% (key). At round 1 the counts are 20 and 22.

Available on another course website

Full content is maintained in IoT Security and Privacy. Configure its deployment URL in course-hosts.js.

Open owning course →

Return to this course catalogue