Docsity

Introduction to Computer Security - Assignment 3 | CS 461, Assignments of Computer Science

Toggle sidebar
bg1
CS 461: Introduction to Computer Security Spring 2007
Problem Set 3 Due Tuesday, Mar 6
1. Vigenere cipher
OCYIS CIUZK UPHPV NBSAR PIVCK OKWWH KRLPQ KEBES
UUAJY ZRCZW RCKIE OLRMR ALKOU GUSJM FETOK LWJVK
UOGXK ARDPQ QBPSE CPCZY JHZVA VQFAU ZXUWZ KKTTV
HGESJ HYEYG PEUVF GLJQV UCLWH MZSPO JUXIQ WPWFX
ZCRXD SZXZH DYYHF BVFAR PVVXL KEKNC LZHTF INHLO
ZRMCO QCKZG ESPFP XVHFS QGVDO SQBPS ECPCZ YJZVC
ZMAYN SRVSM ZIARZ DHHFL APVQP BZMJU FPAVG VORRI
ZQXEO GKRLG APQHZ YUGIM HZSOO OZHAR FEAGA MBMFE
KCZSP VRFLH TIDCD ODCDO EBSOM CDIPV VXFCG AEZCB
LQQMR SRJLF AKNOU O
(a) List all repeated sequences of length 3 or more and the difference in their positions.
(b) Make a guess for what the period is and build a histogram of letters for the first position in the
cipher.
(c) The decryption of this ciphertext (you do not have to find it) is hard to read because word breaks
are not preserved. How would you fix this problem?
2. RSA Consider an RSA system with p= 11, q = 17.
(a) Find φ(pq).
(b) Let e= 3, find dsuch that ed ≡1 (mod φ(pq)).
(c) Encrypt M= 47.
(d) Find the encryption of: M= 0 and M= 1, M = 186. How does RSA handle these cases?
3. Brute-Force Search
The NIST AES speed test showed that they could encrypt 100 bytes in roughly 3 µs.
(a) How many would it take to search through the entire key space of 2128?
(b) Suppose DES ran at the same speed; how long would it take to search through all of its key space?
(c) Given that DES is actually somewhat slower than AES, why is it considered insecure?
4. Block-Cipher Modes
Consider the following block cipher:
E(K, M ) = (M∗K) (mod 32)
(a) What is the block size of this cipher? What is the effective key space?
(b) Encrypt the message 24 17 26 25 12 using CBC mode with IV = 19 and K= 7.
(c) Add 1 to the third block in the ciphertext and decrypt using CBC mode.
1

Partial preview of the text

Download Introduction to Computer Security - Assignment 3 | CS 461 and more Assignments Computer Science in PDF only on Docsity!

CS 461: Introduction to Computer Security Spring 2007

Problem Set 3 Due Tuesday, Mar 6

  1. Vigenere cipher

OCYIS CIUZK UPHPV NBSAR PIVCK OKWWH KRLPQ KEBES

UUAJY ZRCZW RCKIE OLRMR ALKOU GUSJM FETOK LWJVK

UOGXK ARDPQ QBPSE CPCZY JHZVA VQFAU ZXUWZ KKTTV

HGESJ HYEYG PEUVF GLJQV UCLWH MZSPO JUXIQ WPWFX

ZCRXD SZXZH DYYHF BVFAR PVVXL KEKNC LZHTF INHLO

ZRMCO QCKZG ESPFP XVHFS QGVDO SQBPS ECPCZ YJZVC

ZMAYN SRVSM ZIARZ DHHFL APVQP BZMJU FPAVG VORRI

ZQXEO GKRLG APQHZ YUGIM HZSOO OZHAR FEAGA MBMFE

KCZSP VRFLH TIDCD ODCDO EBSOM CDIPV VXFCG AEZCB

LQQMR SRJLF AKNOU O

(a) List all repeated sequences of length 3 or more and the difference in their positions. (b) Make a guess for what the period is and build a histogram of letters for the first position in the cipher. (c) The decryption of this ciphertext (you do not have to find it) is hard to read because word breaks are not preserved. How would you fix this problem?

  1. RSA Consider an RSA system with p = 11, q = 17.

(a) Find φ(pq). (b) Let e = 3, find d such that ed ≡ 1 (mod φ(pq)). (c) Encrypt M = 47. (d) Find the encryption of: M = 0 and M = 1, M = 186. How does RSA handle these cases?

  1. Brute-Force Search The NIST AES speed test showed that they could encrypt 100 bytes in roughly 3 μs.

(a) How many would it take to search through the entire key space of 2^128? (b) Suppose DES ran at the same speed; how long would it take to search through all of its key space? (c) Given that DES is actually somewhat slower than AES, why is it considered insecure?

  1. Block-Cipher Modes Consider the following block cipher:

E(K, M ) = (M ∗ K) (mod 32)

(a) What is the block size of this cipher? What is the effective key space? (b) Encrypt the message 24 17 26 25 12 using CBC mode with IV = 19 and K = 7. (c) Add 1 to the third block in the ciphertext and decrypt using CBC mode.