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]