Mathematics Of: Cryptography-I
Mathematics Of: Cryptography-I
Mathematics Of: Cryptography-I
Cryptography-I
a=q×n
Euclidean Algorithm
Solution
We get gcd (17, 0) = 17, s = 1, and t = 0.
MODULAR ARITHMETIC
1012 mod 3 = 1
1050 mod 7 = 350 mod 7
54 mod 7 = 2
Inverses
Note
Note
Example 1
Find the multiplicative inverse of 8 in Z10.
There is no multiplicative inverse because gcd (10, 8) =
2 ≠ 1. In other words, we cannot find any number
between 0 and 9 such that when multiplied by 8, the
result is congruent to 1.
Example 2
We have seven pairs: (1, 1), (2, 6), (3, 4), (5, 9), (7, 8),
(9, 5), and (10, 10).
How to find out Multiplicative Inverse
of BIG Number?
Note
Note
Scalar multiplication
Inverse
Note
a b
For A = ,
c d
1 1 d b 1 d b
A
det A c a ad bc c a
Residue Matrix and Inverse
Methods to solve :
1 Single-Variable Linear Equations
2 Set of Linear Equations
Single-Variable Linear Equations
Example 1
Solve the equation 10 x ≡ 2(mod 15).
First we find the gcd (10 and 15) = 5. Since 5 does not
divide 2, we have no solution.
Example 2
Solve the equation 14 x ≡ 12 (mod 18).
Continued
Example
3 × 5 + 4 ≡ 6 (mod 13).
Set of Linear Equations
We can also solve a set of linear equations with
the same modulus if the matrix formed from the
coefficients of the variables is invertible.
Continued
Example
Solve the set of following three equations:
15 14 11
16 5 0
1 11 9
A-1
The result is x ≡ 15 (mod 16), y ≡ 4 (mod 16), and z ≡
14 (mod 16).