Uploaded by Name Last

Project2

advertisement
NC State University
ECE Department
ECE 310
Design of Complex Digital Systems
Project 2
For RSA Encryption and Decryption, we need to perform two
operations. One exponents followed by mod operation.
Example
RSA encryption/decryption is:
given message M = 9
encryption: ( private key 3 and public key 33 )
C = 93 mod 33 = 3
decryption: ( private key 7 and public key 33 )
M = 37 mod 33 = 9
Start with HW8. rename the top level to prj2 and prj2_tb
This already has the mod operation now.
Merge HW7 exponent module in to prj2. as opcode 0xb
When 0xb is issued the HW7 module should be called and Exponent operation performed.
Memory the list provided.
0xa - mod operation already implemented in HW8
0xb - exponent - you have to use HW7 for this.
The memory image does this.
53 mod 33 = 26
Fall 2022
Download