Week 2 - Symmetric Encryption Flashcards

1
Q

What is 0 XOR 0?

A

0

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

What is 1 XOR 0?

A

1

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

What is 1 XOR 1?

A

0

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

What are the main 2 problems with one time pads?

A

The key must be the same length as the plaintext
Must not reuse the key

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

What are the 2 key aspects that make AES secure?

A

Shuffling of rows and columns ensures a small change to input means a large change to the output
Requires a least one non-linear operation

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

When a block cipher is used in electronic cookbook mode, what happens?

A

Each block is encrypted individually
Encrypted blocks are assembled in the same order as the plain text blocks

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

When a block cipher is used in cipher block chaining mode, what happens?

A

each block is XOR’d with the previous block
The first block is XOR’d with a random initialisation vector

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

What is probabilistic encryption?

A

The encryption uses a random element to make every encryption different

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

What is the advantage of probabilistic encryption?

A

You can encrypt the same message with the same key and get a different ciphertext

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

When a block cipher is used in counter mode, what happens?

A

The counter (which number block it is, starts at 0) of the current block is added to the iv.
That number is then run through the cipher.
The output of the cipher is then XOR’d with the plaintext.

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

Why do we need padding?

A

Block ciphers can only work on blocks of a fixed sized. Therefore if a block would be smaller than that size, padding needs to be added to the end of it.

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

How do we add padding to a block and why do we do it this way?

A

if 1 byte of padding needed write 01, if 2 write 0202, if 3 write 030303 etc. This is so the receiver can tell the difference between the message and the padding.

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