Modular exponentiation
Summary
Modular exponentiation computes for integers , and . The binary method writes in base . It squares again and again modulo , and it multiplies the squares for the bits of that are . It needs about multiplications modulo , and each intermediate number is smaller than .
Remarks
The method is correct because of compatibility with multiplication: one can reduce modulo after each multiplication. The Fermat primality test, the RSA cryptosystem and the Diffie–Hellman key exchange all use modular exponentiation. The inverse problem, to find from , and , is the discrete logarithm problem. It seems much harder.
Where this leads
5 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Modular_exponentiation, Right-to-left binary method
About this page
| Tag | 04DR5PM25N |
|---|---|
| URI | m2://04DR5PM25N |
| Aliases | binary-exponentiation, square-and-multiply |
| Kind | concept |
| Writing | W0 stub |
| MSC | 11Y16 |
| Same as |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.