One-Way Function
Context: FIT1058_MOC · easy to compute, hard to invert · modular-exp-with-fixed-base and its inverse, the Discrete Logarithm · used for password storage and key exchange
Quick Revision
- 🎯 Objective: easy to compute, hard to invert “usually” ➔ candidate: .
- 📦 Core Components: easy forward (Modular Exponentiation) ➔ hard inverse (Discrete Log).
- ⚡ Key Constraint: believed to exist, none proven; security rests on assumed hardness.
📝 Core
1. One-Wayness
- Definition ➔ easy to compute, hard to invert “usually”.
- Status ➔ believed to exist; none proven (proving one would settle a major open problem).
- Candidate ➔ modular exponentiation with fixed base : .
2. The Hard Inverse
- Discrete Logarithm ➔ given , find with ().
- Primitive-root base ➔ powers cover all of ⟹ largest search space.
- Hardness ➔ no known fast algorithm, comparable to factorisation.
3. Application
- Password storage ➔ store ; accept if .
- Not encryption ➔ no key, no intended recipient recovering .
Key identities:
⚖️ Core Decision Matrix
| Direction | Problem | Difficulty |
|---|---|---|
| forward | easy () | |
| inverse | discrete log | believed hard |
| base choice | primitive root | maximises search |
| modulus | large prime | largest |
When It Flips: the asymmetry (cheap forward, infeasible backward) is the whole point — protecting information that must stay quickly verifiable. Password hashing is keyless (no recipient recovers ), unlike a Cryptosystem.
📊 Exam Execution Trace
Applied Exercise
Problem: Solve the discrete log . Derivation Proof / Hand-Calculation Walkthrough:
Final Extracted Output: forward is one squaring chain; inverting needs a table search giving — infeasible for a large prime.
⚠️ Common Mistakes
- 💡 Belief, not proof ➔ security rests on the assumed hardness of Discrete Log/factorisation; a fast algorithm would break these schemes.
🧠 Active Recall
What makes a function one-way, and why is modular exponentiation with a primitive-root base a candidate?
- Hint: Easy/hard asymmetry.
Answer
- Short answer: Easy forward, hard inverse; easy but discrete log believed hard.
- Why: Primitive root ➔ powers cover all of , maximising the search space.
How do one-way functions make password storage safer, and why is it not encryption?
- Hint: Store the hash, not the password.
Answer
- Short answer: Store ; verify ; stealing needs inverting (infeasible).
- Why: No key/recipient ➔ is a fixed non-invertible transform, not a reversible cipher.