Search results
Results from the WOW.Com Content Network
Modular exponentiation is efficient to compute, even for very large integers. On the other hand, computing the modular discrete logarithm – that is, finding the exponent e when given b, c, and m – is believed to be difficult. This one-way function behavior makes modular exponentiation a candidate for use in cryptographic algorithms.
Regardless of the specific algorithm used, this operation is called modular exponentiation. For example, consider Z 17 ×. To compute 3 4 in this group, compute 3 4 = 81, and then divide 81 by 17, obtaining a remainder of 13. Thus 3 4 = 13 in the group Z 17 ×. The discrete logarithm is just the inverse operation.
The modular inverse of aR mod N is REDC((aR mod N) −1 (R 3 mod N)). Modular exponentiation can be done using exponentiation by squaring by initializing the initial product to the Montgomery representation of 1, that is, to R mod N, and by replacing the multiply and square steps by Montgomery multiplies.
In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his book Disquisitiones Arithmeticae , published in 1801.
t 3 = 6 is the modular multiplicative inverse of 5 × 7 (mod 11). Thus, X = 3 × (7 × 11) × 4 + 6 × (5 × 11) × 4 + 6 × (5 × 7) × 6 = 3504. and in its unique reduced form X ≡ 3504 ≡ 39 (mod 385) since 385 is the LCM of 5,7 and 11. Also, the modular multiplicative inverse figures prominently in the definition of the Kloosterman sum.
Some variants are commonly referred to as square-and-multiply algorithms or binary exponentiation. These can be of quite general use, for example in modular arithmetic or powering of matrices. For semigroups for which additive notation is commonly used, like elliptic curves used in cryptography , this method is also referred to as double-and-add .
Interactive maps, databases and real-time graphics from The Huffington Post
The Tonelli–Shanks algorithm (referred to by Shanks as the RESSOL algorithm) is used in modular arithmetic to solve for r in a congruence of the form r 2 ≡ n (mod p), where p is a prime: that is, to find a square root of n modulo p.