Stream Ciphers Flashcards

1
Q

How does a Stream Cipher differ from a Block Cipher?

A

A block cipher encrypts and decrypts in fixed size chunks, while a stream cipher does this one element at a time (e.g. bytes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do we call the random byte generator used in stream ciphers, and how are these used?

A

They are called keystreams, and we XOR them with the plaintext bytes. To decrypt we require the same keystream sequence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some of the considerations for stream ciphers?

A

Long period before repetition. Keystream should appear random, keys should be sufficiently long (e.g. 128 bits)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Compare the advantages and disadvantages of stream and block ciphers.

A

Stream ciphers use less code and are faster. However, block ciphers allow for reuse of keys.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is RC4?

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When is RC4 less reliable?

A

When used with WEP wireless protocol.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly