Docsity

PGP Homework 3.2: Alice and Bob's Actions in Sending and Receiving Encrypted Messages - Pr, Study notes of Computer Science

Toggle sidebar
bg1
Instructions:
All assignments must be typed; no hand-written assignments will be accepted.
You must name your file as: your_last_name_your_first_name_HW4.4
Acceptable file formats: .doc, .docx, .pdf
Inside the file, you MUST include your full name, otherwise your HW will not be
graded.
You must show your work to receive full credit.
CIS 3360 – Security in Computing
Spring 2016
Homework 3.2 (50 points)
1) [25] From the diagram of PGP (See lecture notes), list all actions taken by Alice
when Alice sends the message to Bob. Also list all actions taken by Bob when Bob
receives the message sent by Alice. (Ks is the secret key generated by Alice and
encrypted by the public key of Bob KUb. Encrypted Ks is also sent to Bob. Ks is used
by Alice to encrypt the compressed message Z(M).)
Alice Bob
1) Alice
a) Create the message and the 128 bit number that will be used as the session key.
b) Compress the message
c) Encrypt the compressed message with the session key, encrypt the session key with
the reciever’s public key, and prepend the encrypted session key to the encrypted
compressed message
d) Sends the created message to Bob
2) Bob
a) Recieves the encrypted message and session key
b) Decrypts the session key using private key
c) Uses the session key to decrypt the compressed message
d) Uncompress the message and get M
pf2

Partial preview of the text

Download PGP Homework 3.2: Alice and Bob's Actions in Sending and Receiving Encrypted Messages - Pr and more Study notes Computer Science in PDF only on Docsity!

Instructions:  All assignments must be typed; no hand-written assignments will be accepted.  You must name your file as: your_last_name_your_first_name_HW4.  Acceptable file formats: .doc, .docx, .pdf  Inside the file, you MUST include your full name, otherwise your HW will not be graded.  You must show your work to receive full credit.

CIS 3360 – Security in Computing Spring 2016 Homework 3.2 (50 points)

  1. [25] From the diagram of PGP (See lecture notes), list all actions taken by Alice when Alice sends the message to Bob. Also list all actions taken by Bob when Bob receives the message sent by Alice. (Ks is the secret key generated by Alice and encrypted by the public key of Bob KUb. Encrypted Ks is also sent to Bob. Ks is used by Alice to encrypt the compressed message Z(M).)

Alice Bob

  1. Alice a) Create the message and the 128 bit number that will be used as the session key. b) Compress the message c) Encrypt the compressed message with the session key, encrypt the session key with the reciever’s public key, and prepend the encrypted session key to the encrypted compressed message d) Sends the created message to Bob

  2. Bob a) Recieves the encrypted message and session key b) Decrypts the session key using private key c) Uses the session key to decrypt the compressed message d) Uncompress the message and get M

  1. [25] Assume that we use the following notations:

A B: E(KApriv, E(KBpub, H(M) || Z(M) ))

This means A computes the Hash function of the message M as H(M), concatenates with the compressed value of M as Z(M), then encrypts the result using first the public key of B [KBpub ] and then encrypts the result with the private key of A [KApriv ]. A then transmits the result to B.

Using these notations, indicate the message M sent by A to B for the diagram of confidentiality and authentication of PGP. See page 7 of the lecture slides of PGP – Overview for the diagram.

Answer: We only need to covert the creation of the message by A which is sent to B.

A B: E(KUb, Ks ) || E(Ks, Z(E(KRa, H(M)) || M) ))