2023-04-13 Exam 1B
2023-04-13 Exam 1B
1. (1%) The output of the encryption function is fed back to the shift register in
Output Feedback mode, whereas in ___________ the ciphertext unit is fed back to
the shift register.
A) Cipher Block Chaining mode B) Electronic Codebook mode
C) Cipher Feedback mode D) Counter mode
2. (1%) The __________ method is ideal for a short amount of data and is the
appropriate mode to use if you want to transmit a DES or AES key securely.
A) cipher feedback mode B) counter mode
C) output feedback mode D) electronic codebook mode
4. (1%) The XTS-AES mode is based on the concept of a tweakable block cipher..
A) True B) False
5. (1%) The plaintext of a sector or data unit is organized into blocks of 128 bits. For
encryption and decryption, each block is treated independently. The only
exception occurs when the last block has less than 128 bits. In that case, the last
two blocks are encrypted/decrypted using a ___________ technique instead of
padding.
9. (1%) Verifying that users are who they say they are and that each input arriving at
the system came from a trusted source is _________.
A) authenticity B) credibility
C) accountability D) integrity
10. (1%) Data appended to, or a cryptographic transformation of, a data unit that
allows a recipient of the data unit to prove the source and integrity of the data unit
and protect against forgery is a(n) ___________.
A) security audit trail B) digital signature
C) encipherment D) authentication exchange
TEST (𝑛)
1. Find integers 𝑘, 𝑞 with 𝑘 > 0, 𝑞 odd, so that 𝑛 − 1 = 2𝑘 𝑞;
2. Select a random integer 𝑎, 1 < 𝑎 < 𝑛 − 1;
3. if 𝑎𝑞 mod 𝑛 = 1 then return ”inconclusive”;
4. for 𝑗 = 1 to 𝑘 − 1 do
𝑗𝑞
5. if 𝑎 2 mod 𝑛 = 𝑛 − 1 then return ”inconclusive”;
6. return ”composite”;
12. (10%) Given 5 as a primitive root of 23, construct a table of discrete logarithms,
and use it to solve the congruence equation:
7𝑥 10 + 1 ≡ 0 (mod 23)
5 8
13. (10%) For the Hill algorithm, let 𝐀 = ( ). Please find 𝐀−1 mod 26.
17 3
14. (10%) The figure below is a round of DES. Find the (A) and (B).