Repository navigation
Conversation
…atrix and round keys Students type their own message and key (16 bytes each) and walk through real AES-128: round 0's XOR with the key, then SubBytes (the 16×16 S-box table with the byte's row and column lit up), ShiftRows (each row's slide drawn), MixColumns (the fixed matrix times the column, with the products worked out) and AddRoundKey (the XOR shown bit by bit). Clicking any byte shows how it was made. The ciphertext after round 10 updates as they type. The AES engine is checked against the FIPS-197 examples (appendix B round 1 and both ciphertexts). The lesson comes right after "Block ciphers and AES".
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a lesson right after "Block ciphers and AES" that shows the real cipher instead of the 16-bit toy.
What students can do
Checks
src/engine/aes.tsis tested against FIPS-197 (S-box values, appendix B round 1 SubBytes and MixColumns, and both example ciphertexts).pnpm check, type-check, lint and build pass.At phone width the S-box table is too small to read, like the other pictures on small screens.