Académique Documents
Professionnel Documents
Culture Documents
1 mod p:
a mod p:
(F)
(p
1)(q
1) = 1446 3346
= 4838316:
1 mod 4838316:
Set
d = 4811063
= 3202753:
1 mod(p
1)(q
and decrypted as
(M e )d in Zn:
Why is
(M e )d = M in Zn?
1):
Since ed
1 mod(p
1)(q
1)
ed = 1 + some multiple of (p
= 1 + k (p
1)(q
1)(q
Calculate:
(M e )d
1)
= M ed
= M 1+k(p 1)(q 1)
= M (M
(p 1) k(q 1)
)
:
(p 1) k(q 1)
)
= 1k(q 1)
= 1 in Zp
and M (M
(p 1) k(q 1)
)
=M
1 in Zp:
M and
q divides M ed
M:
(M e)d = M in Zn:
Zp = f0; 1; 2; 3; : : : ; p
1g
and throw away 0 to get the set which I will denote Zp:
Zp = f1; 2; 3; : : : ; p
1g
(xa)b = (xa)c
b = c
1)ag:
1g
1)ag:
1 = (p
1)!
1)a
= w 1
By the cancellation law ap 1 = 1; which is just what
Fermat said.
Secure Signatures
How to verify a persons identity
Person A transmits data to person B , and person B
wants a method to check the identity of person A.
Person A and B get sets of RSA data:
For sending messages, Person A has (nA; eA) and Person
B has (nB ; eB )
For decrypting messages from Person B; Person A has
(nB ; dB ) and Person B has (nA; eA) for decrypting messages from Person A:
The moduli nA and nB and encryption exponents eA and
eB for sending messages are open to the world, BUT.
The decryption exponent dA is possessed only by intended recipients of messages from person A;
So only Person B in our situation knows dA and only
Person A knows dB .
(note that the rst encryption uses the decryption key for
messages from Person B ):
Next further encrypts the usual way Person A encrypts:
T eA mod nA = R
= (S eB )dB mod nB
= S:
By seeing that this result is the signature of person A,
the identity has been validated.
Note that in all of this, Person A only used (nB ; dB ; nA; eA)
and not dA while Person B only used (nA; dA; nB ; eB )
and not dB
= 2673157
= 23
= 2437607
= 837361
Person A calculates
8373612437607 mod 2673157 = 1216606;
and then
121660619823 mod 721864639 = 241279367:
Person A then transmits 241279367 to person B . When
person B receives this, she calculates
241279367700322447 mod 721864639 = 1216606;
guesses that this is the signature and nally recovers S
as S = 121660623 mod 2673157.
Exercise 12 With
nA = 33 = 3 11
eA = 3
dB = 7
S = 10
and
nB = 91 = 11 13
eB = 8
dA = 18
Person B calculates
encryptB (decryptA(R)):
Therefore, person B will calculate
Euclid Again
Are there enough prime numbers? The classical proof
by Euclid is one of the most beautiful arguments in all of
mathematics.
Theorem 13 There are innitely many primes.
Before we prove it though, do some exercises to gain some
insight into the method of proof. The rst few primes are
2; 3; 5.
Exercise 14 Calculate 2 3 5 + 1:What are its prime
factors?
Exercise 15 Calculate 2 3 5 7 + 1:What are its prime
factors?