Cryptosystem

Context: FIT1058_MOC Β· the formal model of secure communication Β· decryption is the inverse of encryption Β· layered via Function Composition

Quick Revision

  • 🎯 Objective: a key-indexed family of invertible functions βž” encrypt with , decrypt with .
  • πŸ“¦ Core Components: five-tuple βž” each a bijection βž” cascade via composition.
  • ⚑ Key Constraint: every must be bijective (lossless), or decryption is ambiguous.

πŸ“ Core

1. The Model

  • Definition βž” five-tuple : message/ciphertext/key spaces, , .
  • Curried βž” fixing gives , .

2. The Axiom

  • Inverse βž” for every key , , i.e. .
  • Bijection βž” each must be bijective so exists (Injection, Surjection, Bijection).
  • Lossless βž” injective (distinct plaintexts β†’ distinct ciphertexts), surjective onto .

3. Cascading

  • Composition βž” , (socks-and-shoes reverse).
  • Key space βž” ; composition of valid cryptosystems is valid.

Key identities:

When It Flips: security comes from hardness, not secrecy of method; cascading independently-hard layers is harder to break, but poorly chosen layers can cancel β€” more layers β‰  guaranteed stronger.

πŸ“Š Exam Execution Trace

Manual Execution Trace

Caesar shift on , β€œHAL” :

Step / State
0 (Init)β€”β€”β€”
17 (H)10 (K)7
20 (A)3 (D)0
311 (L)14 (O)11

⚠️ Common Mistakes

  • πŸ’‘ Self-inverse cancels βž” a cipher with composed with the same key an even number of times returns the plaintext β€” repeating one key adds no security.

🧠 Active Recall