Sign in

Libre University uses your GitHub account. Signing in is only needed to sit a final test, so the score is kept on your profile.

Fermat, Euler and RSA

1.[2p]

Using Fermat's little theorem, find the remainder of 21000 on division by 13, as a number from 0 to 12.

CorrectNot quite: 3

2.[1p]

What is the last digit of 7222?

CorrectNot quite: 9

3.[3p]

Find the last two digits of 172026, entered as a whole number (for example, 07 as 7).

CorrectNot quite: 69

4.[2p]

Repeated squaring computes a77(modn) by squaring and then multiplying together the squares it needs. How many multiplications does it use in all?

CorrectNot quite: 9

5.[2p]

An RSA key has p=11, q=17 and public exponent e=7. Find the private exponent d, as a number from 1 to φ(n)−1.

CorrectNot quite: 23

6.[2p]

Encrypt the message m=2 with the public key (n,e)=(3233,17). Give c as a number from 0 to 3232.

CorrectNot quite: 1752

7.[3p]

An RSA modulus n=2021 is the product of two primes, and a leak reveals φ(n)=1932. What is the larger of the two primes?

CorrectNot quite: 47

8.[3p]

Which of these statements are true?

Select all that apply

The answer is: If 2n−1 is not congruent to 1 modulo an odd n, then n is composite, In ak(modn) with gcd(a,n)=1, the exponent may be reduced modulo φ(n) and the base modulo n, RSA decryption returns the message even when the message shares a prime factor with n

Correct
Correct

The answer is: If 2n−1 is not congruent to 1 modulo an odd n, then n is composite, In ak(modn) with gcd(a,n)=1, the exponent may be reduced modulo φ(n) and the base modulo n, RSA decryption returns the message even when the message shares a prime factor with n

Correct

9.[2p]

Put these events in chronological order, earliest first.

  1. RSA-250 is factored

  2. Shor gives a quantum factoring algorithm

  3. Fermat states his little theorem in a letter to Frénicle de Bessy

  4. Rivest, Shamir and Adleman publish RSA

  5. Clifford Cocks finds public-key encryption at GCHQ

  6. Euler proves aφ(n)≡1(modn)

Show the answer

a, b, c, d, e, f