📝§ Cryptography


  • Encryption:

  • Message Authentication Code (MAC)

    • HMAC — Hash-based Message Authentication Code
    • GMAC — Message Authentication Code using Galois/Counter Mode
  • Key Derivation Function (KDF)

    • HKDFHMAC-based Key Derivation Function


  • Length extension attack — an attack on hashing function that allows computing a valid hash for a longer message without knowing the message itself.
  • TLS CBC IV attack — an attack on CBC cipher when ciphertext of the previous block is reused as IV of the next block.
  • Replay attack