Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plz my help solve this question CS 205 Final Question 4: RSA Encryption 16:198:205 Recall that an RSA Cryptosystem is defined by five numbers; .

image text in transcribed

plz my help solve this question

image text in transcribed
CS 205 Final Question 4: RSA Encryption 16:198:205 Recall that an RSA Cryptosystem is defined by five numbers; . Public Information: N. E . Private Information: P. Q, D. where P. Q are large primes, N = P . Q, E is relatively prime to (P - 1)(Q -1), and D is the modular inverse of E mod (P- 1)(Q - 1). The pair ( E. N) represents the public encryption key, the number D represents the private decryption key. To encrypt a message like ABCDEF', translate that into a series of digits (for instance A to 01, B to 02, Z to 26) etc. so the message becomes 010203040506 and partition that into a sequence of blocks numbers such that each number is less than N. In this case, you might have 010, 203, 0-40, 506. A block M is then encrypted to a ciphertext C using the following map: C= ME (mod N). (1) and an encrypted block C is decrypted using the following relationship: M = CD (mod N). (2) Once each block of a message is decrypted, the digits can be worked backwards into the original message (potentially padding things out with 0's as necessary, 10 -+ 010 for example). The functionality of the system rests on the fact that if C = A" (mod na), then M = C (mod n). The security of the system rests on the fact that if all an attacker knows is e, n, and the encrypted message C, is is very hard computationally to work backwards and determine M. Your published encryption keys are N = 2881, E = 1109. Unfortunately, you've lost your private decryption keys P. Q. D! 1) Prove that at least one of P and Q needs to be less than 54. (5 points) 2) Find values for P and Q, and show your work. (10 points) 3) Verify that E is relatively prime to (P - 1)(Q - 1), and show your work. (10 points) 4) Find a decryption key D. and show your work. Trial and error does not count. (15 points) 5) You receive the following encrypted message as a sequence of C blocks: 1567, 214, 1023, 398, 581, 1427, 1623, 2679, 895, 948, 951 Decrypt each block to reveal the original block A, and then reconstruct the original message. Show your work. (35 points). Bonus: . Prove that if N = P . Q, with P. Q distinct primes, then o(N) = (P - 1) . (Q -1). (10 points) . Suppose that N = P2, for P prime. Derive and prove a formula for o(N). (15 points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managerial Accounting An Introduction to Concepts Methods and Uses

Authors: Michael W. Maher, Clyde P. Stickney, Roman L. Weil

10th Edition

1111822239, 324639767, 9781111822231, 978-0324639766

Students also viewed these Accounting questions