Public-Key Math Essentials
- Invertible really means "division works"
- Extended GCD -> inverse -> linear congruence
- CRT combine step with numbers
- Euler/Fermat/Carmichael -> RSA
- Pitfalls + big.Int
1 / 11
If gcd = 1, then:
So x mod b is the inverse.
56^{-1} mod 15:
Solve 14 x \equiv 30 (mod 100):
Solve:
Compute M=105, M1=35, M2=21, M3=15, (t1,t2,t3)=(2,1,1).
If gcd(a,n)=1:
For RSA n = p*q:
Then m^{ed} \equiv m (mod p, q) and CRT gives (mod n).