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.
Explanations
L1 human
To compute , write . The squares are , , and . Then . You never need the large number .
What this node 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 node is. They do not measure its truth.
What depends on this
3 nodes use this node, directly or through other nodes.
- Diffie–Hellman key exchange 01TKKESHSB
- RSA cryptosystem 0HM584C465
- Miller–Rabin primality test 0SZCSYHW60
Sources
- Web https://en.wikipedia.org/wiki/Modular_exponentiation, Right-to-left binary method
What links here
Used by
- Diffie–Hellman key exchange 01TKKESHSB
- RSA cryptosystem 0HM584C465
- Miller–Rabin primality test 0SZCSYHW60