|
|
The number k was chosen to be relatively prime to (p - 1)(q - 1). In Book VII of the Elements (Proposition 1 and Proposition 2) Euclid gives a process which we now call the Euclidean Algorithm. This process, essentially repeated long division, can be used (The Extended Euclidean Algorithm) to produce the numbers s and t which enter into the following very useful fact:
For example, for 65 and 18 the Euclidean Algorithm produces s = 5 and t = 18:
Applying this algorithm to the numbers k and (p - 1)(q - 1) gives numbers s and t with
or
This is how the secret key s is calculated.
This number is the mod (p - 1)(q - 1) multiplicative inverse of k
since ![]()
To understand why s
undoes k, i.e., why
, it helps to know about the Euler phi-function.
The importance of
(N) here is:
Euler's
Theorem : For any integers z and N which
are relatively prime,
Now the calculation can be finished using this theorem and
(N) = (p - 1)(q - 1):
Back to the previous codes page.
Back to the first codes page.
|
Comments: Email Webmaster |
|