Modular Reduction
Presentation: https://youtu.be/2vC5fDOdYck
Last updated
Presentation: https://youtu.be/2vC5fDOdYck
Last updated
To calculate modular addition, , we can simply use a piecewise function:
While modular adder is simple and easy to implement, modular multipliers are trickier. The standard algorithm for modular multiplication uses , which is inefficient, not scalable, and difficult to implement in hardware architecture. The most popular workaround uses or reduction based multiplication algorithm. There is also some specialized multiplication algorithms like Karatsuba-Barrett Algorithm etc.