moserware / AES-Illustrated

An implementation of the Advanced Encryption Standard (AES) algorithm meant for study to go along with "A Stick Figure Guide to the Advanced Encryption Standard (AES)" blog post at www.moserware.com
http://www.moserware.com/2009/09/stick-figure-guide-to-advanced.html
MIT License
415 stars 41 forks source link

Add or XOR in KeySchedule? #1

Open secworks opened 10 years ago

secworks commented 10 years ago

There seems to be an error in the comment in KeyShedule.cs.

Line 115 and forward: // Adding in the first round constant gives us:

        // | B3 | ⊕ | 01 | => | B2 |

It states that it is an ADD operation. But what the example as well as the real code does is an XOR.