Stream Ciphers Flashcards
How does a Stream Cipher differ from a Block Cipher?
A block cipher encrypts and decrypts in fixed size chunks, while a stream cipher does this one element at a time (e.g. bytes)
What do we call the random byte generator used in stream ciphers, and how are these used?
They are called keystreams, and we XOR them with the plaintext bytes. To decrypt we require the same keystream sequence.
What are some of the considerations for stream ciphers?
Long period before repetition. Keystream should appear random, keys should be sufficiently long (e.g. 128 bits)
Compare the advantages and disadvantages of stream and block ciphers.
Stream ciphers use less code and are faster. However, block ciphers allow for reuse of keys.
What is RC4?
A variable sized stream cipher, with a period of over 10^100. Only requires 8 to 16 operations per byte, so very fast.
First few bytes of keystream are non-random(depend on how keys are generated)
When is RC4 less reliable?
When used with WEP wireless protocol.