Section 2.7 Conclusion
From the first unit of the course, you should take away an understanding of the structure of the number systems built on modular arithmetic. From a practical standpoint, to build cryptographic systems in the next unit, you will need the following functions:
- A
gcdfunction (homegrown preferably). - A
extended_euclideanfunction. - A
fastpowerfunction. - A
fastinversefunction.
Optionally, if you'd like to compare speed of computation, you might also like an inverse function eea_inverse based on the extended Euclidean algorithm.