Содержание
- 2. Prime Numbers An integer p is a prime number if it has no factors other than
- 3. Factorisation Given an integer n, there is an efficient algorithm to determine whether n is composite
- 4. The fastest factorisation algorithm at the moment is called the “Number Field Sieve” but even this
- 5. Important to Note: Determining whether a large number is prime or composite is easy; Multiplying 2
- 6. Fermat’s Little Theorem If p is a prime number and a is any number between 1
- 7. Solving a problem Suppose I have a prime number p; a number m between 1 and
- 8. Yes you can if you take the following steps: Find a number d such that e*d=1
- 9. Why does that work? We found d such that e*d = 1 mod p-1 That means
- 10. 2. We computed cd mod p But cd = (me)d mod p = med mod p
- 11. This works because of Fermat’s Little Theorem. We know that since p is a prime we
- 12. Why doesn’t it work? In general an-1 ≠ 1 mod n if n is not prime.
- 13. Finding r In order to find r such that ar = 1 mod n, you have
- 14. Important to note now: It is easy to determine whether a large number is prime or
- 15. Given e (co-prime with r), it is easy to determine d such that (e*d) =1 mod
- 16. This is the basis of the RSA public key cryptosystem. The holder of the public key
- 17. RSA – Key Generation Bob generates two large primes p and q (each with approx. 100
- 18. He computes the private key d by solving the equation (e*d) =1 mod r. He can
- 19. RSA - Encryption Alice wishes to send Bob a message m. She takes the following steps:
- 20. RSA - Decryption Bob receives the value c from Alice. He decrypts it using his private
- 22. Скачать презентацию