Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1send(shared_key) | AThe secret key is passed to the receiver first, before any encrypted data is sent. | |
| 2decrypt(ciphertext, shared_key) | Bsender_key = receiver_key | |
| 3Both the sender and the receiver need the same key before the message is sent | CThe key is sent after the data. The receiver cannot decrypt the message until they already have the key. | |
| 4Many users need many shared keys: every pair of users needs its own key | DThis assumes one key per user. In symmetric encryption each pair of users needs its own shared key, so many more keys are needed. | |
| 5send(ciphertext); send(key) | Ekeys ← n * (n - 1) / 2 | |
| 6keys ← users | FOnly gives back the original plaintext if the receiver uses the same key the sender used to encrypt. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
shared secret key — In symmetric encryption, the receiver can only decrypt if they hold the same key as the sender, so the key must be shared before any data is sent.sharedKey ← GenerateKey()
SEND sharedKey TO Bob
SEND Encrypt(message, sharedKey) TO BobIF hasKey = TRUE THEN
plain ← Decrypt(cipher, key)
ENDIFIF receiverKey <> senderKey THEN
OUTPUT "Cannot decrypt"
ENDIFusers ← 4
keys ← users * (users - 1) / 2
OUTPUT keyskey ← ReceiveKey()
cipher ← ReceiveData()
plain ← Decrypt(cipher, key)