Docsity

CSC 570-001 Homework 7: Security Protocols and Algorithms - Prof. Rudra Dutta, Assignments of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
Homework 7 – CSC 570-001, Fall, 2004
Issued 11/4/04, due 11/11/04
All questions have equal weightage.
1. Alice needs to send long messages to Bob. They would like to provide source authentication,
non-repudiation, and confidentiality of message content. Draw a diagram to show how Alice
should generate the final message to send out. Assume that all they know about each other is
the other party’s public key, denoted as PKA for Alice and PKB for Bob. Make sure all
mechanisms you use are necessary. Otherwise, you will lose at least half of the points.
2. Suppose Alice needs to send many long messages to Bob during a short period of time.
Assume that all they know about each other is the other party’s public key, denoted as PKA for
Alice and PKB for Bob. Again they would like to provide source authentication, non-
repudiation, and confidentiality of message content. What should they do to be more efficient
than repeating the scenario in (1). Describe your solution concisely, and then draw diagrams
to illustrate your protocol(s). You will lose points for each mechanism you miss or add
unnecessarily.
3. Assume that there is a base station and a relatively large number of wireless nodes. The base
station is in direct communication range with all the wireless nodes. The base station needs to
broadcast a message with its current clock value to all the wireless nodes so that they can
synchronize their clocks with the base station. Further assume the delay caused by the
wireless communication can be ignored.
(a) What is the essential security requirement in this scenario?
(b) How do you meet this security requirement?
4. It is tempting to try to develop a variation on Diffie-Hellman that could be used as a digital
signature. Here is one that is simpler than RSA.
Public elements:
p: prime number.
g: generator
Private key : x, x < p-1.
Public key: y= g x mod p.
To sign a message M, compute h = H(M), where H(.) is a cryptographically strong hash
function. Assume that h and p-1 are prime to each other. (If not, append the hash to the
message and recalculate the hash. Continue this process until a hash is generated that is
relatively prime to p-1.) Then calculate Z to satisfy Z*h= x mod p-1. The signature pf the
message is s = gZ. To verify a signature, a user verifies that sh =y. (Should hold for good
signature because sh = ( gZ)h = gx = y.)
(a) Show that this scheme works. That is show the verification process produces equality if
the signature is valid.
(b) Show that the scheme is unacceptable by describing a simple technique for forging a
user’s signature on an arbitrary message.
5. Suppose that Alice and Bob share a secret key K. Alice would like to send a secret message m
to Bob but the only cryptographic functions she can compute are MAC functions (hash
functions), i.e. encryption algorithms are not allowed.
(a) Show how Alice could encrypt the message m by using only MAC functions.
(b) Show how Alice can also add integrity, i.e., no active attacker can modify the encrypted
message in transit.
6. Give two prime numbers p=3 and q=7. Compute the public key and private key pair by
applying the RSA algorithm. And use what you get, to encrypt message “HELLO” and
decrypt the cyptertext, using the RSA algorithm.
7. Review question. In Kerberos version 4, In the phase that client is try to obtain service-
granting ticket from TGS(ticket granting server), client sends a piece of information to TGS:
C‡TGS: IDv|| Tickettgs|| AuthenticatorC
Tickettgs = EKtgs[KC,tgs || IDC ||ADC||IDtgs||TS2||Lifetime2]
AuthenticatorC = EKC,tgs[IDC || ADC || TS3]
pf2

Partial preview of the text

Download CSC 570-001 Homework 7: Security Protocols and Algorithms - Prof. Rudra Dutta and more Assignments Computer Systems Networking and Telecommunications in PDF only on Docsity!

Homework 7 – CSC 570-001, Fall, 2004

Issued 1 1/4/04, due 1 1/11/ All questions have equal weightage.

  1. Alice needs to send long messages to Bob. They would like to provide source authentication, non-repudiation, and confidentiality of message content. Draw a diagram to show how Alice should generate the final message to send out. Assume that all they know about each other is the other party’s public key, denoted as PKA for Alice and PKB for Bob. Make sure all mechanisms you use are necessary. Otherwise, you will lose at least half of the points.
  2. Suppose Alice needs to send many long messages to Bob during a short period of time. Assume that all they know about each other is the other party’s public key, denoted as PKA for Alice and PKB for Bob. Again they would like to provide source authentication, non- repudiation, and confidentiality of message content. What should they do to be more efficient than repeating the scenario in (1). Describe your solution concisely, and then draw diagrams to illustrate your protocol(s). You will lose points for each mechanism you miss or add unnecessarily.
  3. Assume that there is a base station and a relatively large number of wireless nodes. The base station is in direct communication range with all the wireless nodes. The base station needs to broadcast a message with its current clock value to all the wireless nodes so that they can synchronize their clocks with the base station. Further assume the delay caused by the wireless communication can be ignored. (a) What is the essential security requirement in this scenario? (b) How do you meet this security requirement?
  4. It is tempting to try to develop a variation on Diffie-Hellman that could be used as a digital signature. Here is one that is simpler than RSA. Public elements: p: prime number. g: generator Private key : x, x < p-1. Public key: y= gx^ mod p. To sign a message M, compute h = H(M), where H(.) is a cryptographically strong hash function. Assume that h and p-1 are prime to each other. (If not, append the hash to the message and recalculate the hash. Continue this process until a hash is generated that is relatively prime to p-1.) Then calculate Z to satisfy Z*h= x mod p-1. The signature pf the message is s = g Z . To verify a signature, a user verifies that s h =y. (Should hold for good signature because s h = ( g Z ) h = g x = y.) (a) Show that this scheme works. That is show the verification process produces equality if the signature is valid. (b) Show that the scheme is unacceptable by describing a simple technique for forging a user’s signature on an arbitrary message.
  5. Suppose that Alice and Bob share a secret key K. Alice would like to send a secret message m to Bob but the only cryptographic functions she can compute are MAC functions (hash functions), i.e. encryption algorithms are not allowed. (a) Show how Alice could encrypt the message m by using only MAC functions. (b) Show how Alice can also add integrity, i.e., no active attacker can modify the encrypted message in transit.
  6. Give two prime numbers p=3 and q=7. Compute the public key and private key pair by applying the RSA algorithm. And use what you get, to encrypt message “HELLO” and decrypt the cyptertext, using the RSA algorithm.
  7. Review question. In Kerberos version 4, In the phase that client is try to obtain service- granting ticket from TGS(ticket granting server), client sends a piece of information to TGS: C‡TGS: IDv|| Tickettgs|| AuthenticatorC Tickettgs = EKtgs[KC,tgs || IDC ||ADC||IDtgs||TS 2 ||Lifetime2] AuthenticatorC = EKC,tgs[IDC || ADC || TS 3 ]

(a)Explain the purpose of why AuthenticatorC is used here. Describe as specific as possible. Otherwise you will lose points. (b)Explain the purpose of why IDtgs is used the Tickettgs.

  1. Please list 3 authentication methods and give corresponding simple application scenarios (hint: Think from the point of a sender and receiver. How could they provide sender authentication, receiver authentication or both? Sender authentication: assure the message is really from the expected sender (receiver is to authenticate the sender). Receiver authentication: Convince the sender that the message is really received by the expected receiver (sender is to authenticate the receiver)).
  2. It’s generally suggested to use MAC functions to preclude integrity attacks. HMAC(.) (RFC
    1. is an example of a practical MAC function. Suppose Alice wants to send a secret message m to Bob. Let E(.), PBob(.) be a symmetric encryption algorithm and the public-key encryption function under Bob’s public key, respectively. Consider the following four alternatives:
    2. Alice generates a random key k and sends Ek(m), PBob(k) to Bob.
    3. Alice generates two random keys k1,k2 and sends Ek1(m), HMACk2(m), PBob(k1||k2) to Bob;
    4. Alice generates two random keys k1, k2 and sends Ek1(m), HMACk2(Ek1(m)), PBob(k1||k2) to Bob;
    5. Alice generates two random keys k1, k2 and sends Ek1(m||HMACk2(m)), PBob(k1||k2) to Bob. Examine each alternative, select the one you think may be more appropriate and explain why.
  3. Consider the Diffie-Hellman(DH) key agreement protocol. (a) Show that DH is vulnerable to a man-in-the-middle attack (b) Extend DH so that three users can share a secret key.