Pcornel
Security · Symmetric Cryptography

AES

Cheat sheet · https://pcornel.dk/topic.php?topic=4684

Back to the Topic

Answer

AES (Advanced Encryption Standard) is the standard symmetric block cipher with 128-bit blocks and 128, 192 or 256-bit keys. It has hardware acceleration (AES-NI) and is used in TLS, IPsec, BitLocker and Wi-Fi.

Remember

  • AES uses 128-bit blocks with 128, 192 or 256-bit keys.
  • Use GCM or another AEAD mode.
  • AES-NI makes it fast on modern CPUs.

First checks

  • openssl speed -evp aes-128-gcm — AES performance
  • grep -c aes /proc/cpuinfo — AES-NI
  • Mode used (GCM/CTR/CBC) — configuration

Commands

openssl enc

Verify in this order

plaintext blocks + key → AES rounds → ciphertext

Where it usually breaks

First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4684

Confirmation

Confirm action

Continue?