Week 1 - Stream + Block Cypher Flashcards

1
Q

What is a Stream Cypher?

A

A cypher than encrypts/decrypts data on a stream of data

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

How does a stream cipher perform encryption?

A

using bitewise operation (XOR) with the data and a key

e.g

D = 1101101101
K = 1100010101

Ek(D) = 0001111000

use same method to decrypt

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

Why use a stream cipher?

A

generally faster and better suited for applications with continuous data streams.

e.g
- data is transmitted in real-time
- secure communications

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

What is Block cypher?

A

encrypts/decrypts on a block of data before moving onto next block.

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

How does a block cipher perform encryption?

A

For Each block:
1. Split into 2
2. Swap halves
3. Apply XOR operation

e.g

  1. 1 = 0110 2= 0010 key = 0110
  2. 2 = 0010 1 = 0110
  3. 0110 0110
  4. Ek(P) = 0100 0000
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What happens when a message is not a multiple of the key?

A

Padding is added to expand the message length

e.g key is 8 bytes , message is 12 bytes, 4 padding bytes are added

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

Why are block ciphers important?

A

a secure way to encrypt larger data sets by breaking them into manageable, fixed-size blocks.

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