Week 2 Part 1 Flashcards
Explain what perfect secrecy is? and what’s another name for it?
Information-Theoretic Secrecy
- No matter how powerful the attacker can be, secrecy holds!
- Perfect Secrecy is achievable but very expensive and not practical
- The ciphertext does not reveal any new information about the message
What is one of the simplest ciphers that gives you perfect secrecy?
One-Time Pad (Vernam) Cipher.
What are the pros and cons of the one-time pad (vernam) cipher?
Pros:
- ciphertext reveals no information about the plaintext (perfect secrecy)
Cons:
-key has to be as long as the plaintext and truly random
- Insecure against two-time pad (if same key used twice)
How can you prove that the one time pad (vernam) cipher is secure?
Bayess theorem
Encryption and Decryption of onetime pad vernam cipher?
- Encryption: Enck(m) = m ⊕ k
- Decryption: m = Deck(c) = c ⊕ k
(you just XOR)
What are the limitations of perfect secrecy?
- The key has to be truly random
- We must have |K| ≥ |M|
- Each key can only be used once
What is computational secrecy?
- allow a very small (negligible) probability of security failure
- protect against “efficient” adversaries (not unrestrictedly powerful)
What do modern ciphers use to overcome a two-time pad attack?
Nonce (- A non-repeating value for a given key)
What is a pseudo-random generator?
PRG is an efficient deterministic algorithm that expands random n-bit strings into random-looking (pseudo-random) p(n)-bit strings
What is one way to obtain a Pseudo-random generator?
Linear Feedback Shift Register (LFSR)
How does a Linear Feedback Shift Register (LFSR) work?
- xoring different bits and the last bit looks random without the other bits
For an l - bit LFSR, what is the maximal period we can hope for?
2^l -1 (2 to the power of l minus 1)
Assuming we start from the state 0100, what is the state after 3 ticks?
0010
After some ticks, an LFSR’s previous state will re-occur ⇒ the same bit stream (output) will repeat, when does 0010 start repeating?
After the 5th tick
What are the limitations for LFSR?
- If the coefficient of the LFSR are known, by knowing 1st n-bits of the output, one can recover the starting state
- if the coefficient of the LFSR are not known, by knowing 1st 2n bits of the output, one can recover the starting state and the coefficients using (Linear Algebra powerful against linear functions)