Skip to content
  • Cryptographic Analysis · Cryptography

Cryptographic Analysis

LearnViaNotes @learnvianotes· 1 min read

Deep dive into algorithm choices, key sizes, Initialization Vectors, and security rationale.

Cryptographic Choices

Primitive TypeAlgorithm ChoiceRationale & Key SizesMisuse Risks
Asymmetric KeysX25519 (ECDH)256-bit key size. High security, extremely fast key derivation. Native to browser WebCrypto API.Reusing ephemeral keys indefinitely (mitigated by key rotation or Double Ratchet).
Symmetric CipherAES-256-GCM256-bit key. Galois Counter Mode provides AEAD (Authenticated Encryption with Associated Data).IV Reuse: Reusing the same IV with the same key destroys confidentiality and integrity guarantees.
Key DerivationHKDF (SHA-256)Extracts and expands entropy from ECDH shared secrets to produce cryptographically strong symmetric keys.Using raw DH shared secrets as symmetric keys directly without expansion.
Password KEKArgon2id / PBKDF2Memory-hard hashing function to encrypt local key bundles on disk.Using weak iterations or lack of unique salting leading to dictionary lookup attacks.

Critical Alert: The IV Rules

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report