Tonelli-Shanks algorithm: Difference between revisions
m
Minor code reformatting.
(New post.) |
m (Minor code reformatting.) |
||
Line 1,444:
uint64_t result = 1;
while ( exponent > 0 ) {
if ( ( exponent
result = multiply_modulus(result, base, modulus);
}
|