Modern Stream Ciphers Flashcards
Lecture 4 (7 cards)
How does a flip-flop operate?
A flip-flop is a bit that is constantly changing value e.g. 1 or 0, and the output is only updated when the clock signals it to do so.
What is a Linear-feedback Shift Register (LFSR)?
A linear-feedback shift register is a register of bits whose positions shift to the right when the clock pulses.
It is usually comprised of flip-flops, where the last bit represents the output.
What advantages of using LFSRs are there?
- Fast and efficient
- Simple design architecture
- Can generate long sequences with few resources
What are some limitations of LFSRs?
- They are linear, so future bits can be predicted with enough output data
- Vulnerable to attacks like the Berlekamp-Massey algorithm
How can you make LFSRs more secure?
Combine multiple LFSRs together in a non-linear way
What is ChaCha20?
ChaCha20 is a stream cipher which is very lightweight and uses only add, xor and rotate operations.
How does ChaCha20 work?
ChaCha performs 20 rounds, where it alternates column and diagonal rounds. Each of these rounds are 4 quarter rounds.