- Symmetric vs. asymmetric → RSA → hashes.
- Objectives.
- Symmetric: one shared key, fast, key distribution problem. Asymmetric: key pair, slower, solves key exchange and enables signatures.
🎯 How this can come up · 1 question
Compared with symmetric encryption, asymmetric encryption is:
Correct: Slower but solves key distribution.
- Comparison table, continued.
- Asymmetric crypto gives confidentiality, authentication, or both; separate keys for encryption and decryption.
- Two keys: the public key (shared) and the private key (secret).
Asked in a real exam
🎯 How this can come up · 1 question
Which statement about an asymmetric key pair is correct?
Major 181.
- General idea: C = f(K_public, P); P = g(K_private, C).
- Trapdoor one-way function: easy to compute, infeasible to invert without the trapdoor (the private key).
🎯 How this can come up · 1 question
The core idea behind public-key cryptography is the:
Correct: Trapdoor one-way function.
- RSA (Rivest, Shamir, Adleman), the most common public-key algorithm, based on factoring large primes.
- RSA encryption: C = Mᵉ mod n (public key e, n).
- RSA decryption: M = Cᵈ mod n (private key d).
- Encryption and decryption together.
- Key generation steps.
🎯 How this can come up · 2 questions
With p = 5, q = 11, φ(n) equals:
(5 − 1)(11 − 1) = 40.
With p = 5, q = 11 and e = 7, the private exponent d is:
7 × 23 = 161 = 4 × 40 + 1.
- RSA procedure figure.
- Extended Euclid to find d with e·d mod φ(n) = 1. Example p = 5, q = 11, e = 7 → n = 55, φ = 40, d = 23.
- RSA application.
- Example 1: p = 7, q = 11 → n = 77, φ = 60, e = 13, d = 37.
- Example 2: p = 3, q = 11 → n = 33, φ = 20, e = 7, d = 3.
🎯 How this can come up · 1 question
RSA with p = 3, q = 11, e = 7. Find n, φ(n), d, and encrypt M = 2.
n = 33, φ(n) = 20, d = 3 (7 × 3 = 21 ≡ 1 mod 20). C = 2⁷ mod 33 = 128 mod 33 = 29. Check: 29³ mod 33 = 2.
- Homework: find the key pair for given factors.
- Encryption vs. signature.
- Encryption vs. signature, continued.
- Encrypt with the public key, decrypt with the private key. Sign with the private key, verify with the public key.
Asked in a real exam
🎯 How this can come up · 1 question
A digital signature is created by encrypting the message digest with:
Major 181.
- Signature example: p = 7, q = 13, n = 91, φ = 72, e = 5, d = 29.
- RSA security rests on how hard it is to factor n; key sizes keep growing (2048+ bits).
- A hash maps any input to a fixed-length digest; one-way (you can’t get the plaintext back).
- Uses: storing passwords, integrity checks, signatures.
Asked in a real exam
🎯 How this can come up · 1 question
How is hashing different from encryption? Give two differences. (Final 221 B)
Hashing is one-way (no key, cannot be reversed) while encryption is reversible with a key; a hash always has a fixed-length output, while ciphertext length depends on the input.
- Hash (no key, integrity only) vs. MAC (shared key: integrity + authenticity).
- Collision attack: two different messages with the same hash.
- SHA (NSA, NIST standard). SHA-1: 160-bit digest. SHA-2: 224–512. SHA-3: 224, 256, 384, 512 with a different internal structure (Keccak).
Asked in a real exam
🎯 How this can come up · 1 question
SHA-1 produces a digest of:
Correct: 160 bits.
- MD (Message Digest) family: 128-bit hashes. MD4 is older and LESS secure than MD5.
Asked in a real exam
🎯 How this can come up · 1 question
MD5 produces a hash of:
Correct: 128 bits.
- Try hashing text online.
- Hash = integrity. MAC = integrity + authentication (shared key). Signature = integrity + authentication + non-repudiation (private key).
🎯 How this can come up · 1 question
Which provides non-repudiation?
Correct: A digital signature.
- Comparison continued.
- Summary.
- End.
No slides match this filter.