Skip to content

B. Key Concepts

Joshua M Clatney edited this page Jan 7, 2025 · 1 revision
  1. 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.

  1. 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.

  1. 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.

Clone this wiki locally