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) | β | β | β |
| 1 | 7 (H) | 10 (K) | 7 |
| 2 | 0 (A) | 3 (D) | 0 |
| 3 | 11 (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
State the cryptosystem axiom and why each must be a bijection.
- Hint: Invertible = bijective.
Answer
- Short answer: (so ); exists iff is bijective.
- Why: Lossless β injective avoids ambiguous decryption; surjective ensures every ciphertext decrypts.
How are two cryptosystems composed, and why might composing add little security?
- Hint: Reverse-order + cancellation.
Answer
- Short answer: , , key space .
- Why: Self-inverse cancels β same key even times returns plaintext; layers must be independently hard and non-cancelling.