Example
Reduce sums and products modulo a small modulus.
highlighted = computed this step
Step 1 — Set up
Set up the exact toy cryptography values.
m, a, b(7, 5, 4)
Step 2 — Raw sum
Compute the highlighted cryptography value.
a+b9
Step 3 — Sum residue
Compute the highlighted cryptography value.
(a+b) mod m2
Step 4 — Raw product
Compute the highlighted cryptography value.
a*b20
Step 5 — Product residue
Compute the highlighted cryptography value.
(a*b) mod m6
cryptography
The values in this lesson are deliberately tiny so every modular arithmetic step can be checked exactly.