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
gcd
function (homegrown preferably). - A
extended_euclidean
function. - A
fastpower
function. - A
fastinverse
function.
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.