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 | |
|---|---|---|
| 1cipher = Blowfish(key) | AChecks the key is at most 56 bytes (448 bits), the longest key Blowfish allows | |
| 2len(key) <= 56 | BSets up a Blowfish cipher with one secret key, so the same key encrypts and decrypts the data | |
| 3Blowfish encrypts data in fixed 64-bit blocks, which is 8 bytes at a time | CBlowfish uses 64-bit blocks, not 128-bit blocks. 128-bit blocks belong to AES. | |
| 4Blowfish is a block cipher that is not patented and is free for anyone to use because it is in the public domain | DA Blowfish key can be at most 448 bits (56 bytes), so an 800-bit key is too long. | |
| 5BLOCK_SIZE = 128 # Blowfish bits | ElicenceFee = 0 | |
| 6key = 'a'*100 # 800-bit Blowfish key | FBLOCK_SIZE = 8 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Blowfish — A fast symmetric block cipher with a variable-length key (up to 448 bits) and 64-bit blocks. It is free for anyone to use, as it is in the public domain.blockBits ← 64maxKeyBits ← 448blockBits ← 64
OUTPUT blockBitsisPublicDomain ← TRUEIF keyBits <= 448 THEN
OUTPUT "Valid Blowfish key"
END IF