This preview shows page 1. Sign up to view the full content.
MIE335S Lab 05  RSA Part I
Winter 2012
MIE335 Lab 05: RSA Part I
1
Introduction
This lab is to provide you with experience implementing RSA encryption/decryption discussed in lecture
and tutorial. For this lab, we will restrict this only using integer values and small cases.
1.1
Deliverable
Submit two ﬁles: a single MATLAB mﬁle that will contain all your functions to complete the lab and a
plain text ﬁle that will answer the question posed in Section
3
. Your MATLAB function should take in 4
parameters and return 2 outputs.
Your ﬁle should be named (in lowercase only)
lab05
utorid.m
and
lab05
utorid.txt
respectively. For
example, if this is lab 1 and for UTORid of doejohn, name the ﬁle
lab01
doejohn.m
. Submit your ﬁle by
midnight the night of your lab.
function [d c mPrime] = lab05_function(p,q,e,m)
2
RSA encryption and decryption
Recall from lecture and tutorial how RSA encryption works. Given
p
and
q
are prime, we can generate
public and private keys that allow us to encrypt and decrypt messages.
Algorithm 1
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 03/31/2012 for the course MIE 335 taught by Professor Frances during the Spring '12 term at University of Toronto Toronto.
 Spring '12
 Frances

Click to edit the document details