MIE335S Lab 05 - RSA Part IWinter 2012MIE335 Lab 05: RSA Part I1IntroductionThis lab is to provide you with experience implementing RSA encryption/decryption discussed in lectureand tutorial. For this lab, we will restrict this only using integer values and small cases.1.1DeliverableSubmit two files: a single MATLAB m-file that will contain all your functions to complete the lab and aplain text file that will answer the question posed in Section3. Your MATLAB function should take in 4parameters and return 2 outputs.Your file should be named (in lowercase only)lab05utorid.mandlab05utorid.txtrespectively. Forexample, if this is lab 1 and for UTORid of doejohn, name the filelab01doejohn.m. Submit your file bymidnight the night of your lab.function [d c mPrime] = lab05_function(p,q,e,m)2RSA encryption and decryptionRecall from lecture and tutorial how RSA encryption works.Givenpandqare prime, we can generatepublic and private keys that allow us to encrypt and decrypt messages.Algorithm 1Generalized RSA algorithmGiven:p,qare prime
This is the end of the preview.
access the rest of the document.