Project 3 on RSA: In your favorite language (preferable in Python) create the following functions: 1. MRT èUse Miller-Rabin Primality Test to choose prime number with s=512 bits and check the...

1 answer below »
Please write a report in pdf file, how you obtained results step by step. In your report include your code, input, and output, and explain your work.


Project 3 on RSA: In your favorite language (preferable in Python) create the following functions: 1. MRT èUse Miller-Rabin Primality Test to choose prime number with s=512 bits and check the primality test. 2. EA èUse Euclidean Algorithm to evaluate gcd 3. EEA èUse Extended Euclidean Algorithm to find modular inverse of the value 4. powmod_smè Square and multiply algorithm to evaluate exponentiation. Now write the code for I. RSA Key Generation (use above functions 1., 2., 3. ) should be a. Choose two primes p and q of s bits using MRT where p is not equal to q. b. Calculate ? = ? ∗ ?, and ?(?) = (? − 1) ∗ (? − 1) c. Chose randomly e from the set of {1,…,?(?) − 1} and check using EA if ???(?, ?(?)) = 1 if not chose again until it full fills the condition. d. Calculate ? = ?12????(?) using EEA. Note that ? should be at least 0.3 ∗ ? bits e. Output ?:;< =="" (?,="" )="" and="" :="=" (?)="" ii.="" rsa="" encryption="" with="" input="">< = (?, ?) and random plaintext x and output should be ciphertext y, evaluate exponentiation using the function powmod_sm iii. rsa decryption with input ?:= = (?) and ciphertext y and output should be plaintext x, evaluate exponentiation using the function powmod_sm. please make sure to check that you get the same plaintext value before the encryption. please write your report and include snapshot of output with you source code. =="" (?,="" )="" and="" random="" plaintext="" x="" and="" output="" should="" be="" ciphertext="" y,="" evaluate="" exponentiation="" using="" the="" function="" powmod_sm="" iii.="" rsa="" decryption="" with="" input="" :="=" (?)="" and="" ciphertext="" y="" and="" output="" should="" be="" plaintext="" x,="" evaluate="" exponentiation="" using="" the="" function="" powmod_sm.="" please="" make="" sure="" to="" check="" that="" you="" get="" the="" same="" plaintext="" value="" before="" the="" encryption.="" please="" write="" your="" report="" and="" include="" snapshot="" of="" output="" with="" you="" source="">
Answered 147 days AfterDec 25, 2021

Answer To: Project 3 on RSA: In your favorite language (preferable in Python) create the following functions:...

Komal answered on May 21 2022
95 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here