-
Notifications
You must be signed in to change notification settings - Fork 2
B. Key Concepts
Joshua M Clatney edited this page Jan 7, 2025
·
1 revision
- Key Generation
Keys are generated using Argon2i, a secure key derivation algorithm. Each key is unique due to the inclusion of a random 16-byte salt.
- Key Expansion
AES uses key expansion to derive round keys from the original key: • Rcon: Adds a constant to each round key. • S-Box: Applies a non-linear substitution. • XOR: Combines transformed words.
- Encryption Rounds
Each round applies the following steps: • SubBytes: Byte substitution using the S-Box. • ShiftRows: Row rotation of the state matrix. • MixColumns: Simplified column transformation (in this implementation). • AddRoundKey: XOR operation with the round key.