Cryptography - Lecture 14 - Number Theory

This lesson continues the introduction to number theory, and concepts related to performing calculations in a galois field modulo a prime.

Objectives

  • find small discrete logs
  • find the GCD of 2 numbers
  • compute inverses using Euclid's Extended GCD algoruthm
  • compute the Euler Totient Function of primes and prime products
  • know how large primes are found
  • Preliminary Reading

    Stallings, "Cryptography and Network Security", Ch 7.3-7.5 pp217-225.

    Lecture Content

    Number Theory cont

    1. Discrete Logarithms in GF(p)
    2. Greatest Common Divisor
    3. Euclid's GCD Algorithm
    4. GCD Example
    5. Inverses and Euclid's Extended GCD Routine
    6. Extended Euclid's Algorithm to find Inverses
    7. Inverse Calculation Example
    8. Inverse Calculation Example
    9. Euler Totient Function ø(n)
    10. Formulae for the Euler Totient Function ø(n)
    11. Fermat's and Euler's Theorems
    12. Ways of Computing Inverses
    13. Primality Testing
    14. Primality Testing
    15. Chinese Remainder Theorem

    Summary

    1. Summary

    Exercises

    1. Exercises
      1. Find the discrete log of:
        2x = 3 mod 5
        4x = 3 mod 7
        4x = 2 mod 13
        5x = 3 mod 7
        6x = 10 mod 11
        7x = 3 mod 13
        8x = 3 mod 11
        9x = 6 mod 11
        
      2. Find the Greatest Common Divisor:
        GCD(65,91)
        GCD(102,238)
        GCD(110,154)
        GCD(171,285)
        GCD(185,259)
        
      3. Find the Euler Totient Function ø(n) of:
        57
        61
        65
        79
        83
        85
        
      4. Compute the Inverse of the following using any of (as appropriate):
        • exhaustive search
        • Euler's Theorem
        • Extended Euclid's Algorithm
        2 mod 11
        2 mod 15
        5 mod 7
        5 mod 17
        12 mod 35
        13 mod 45
        17 mod 199
        19 mod 193
        21 mod 197
        22 mod 199
        

    Additional References

    For additional information, see:
  • Seberry & Pieprzyk, "Cryptography - An Introduction to Computer Security", 2/e Ch 2.1; 1/e Ch 2.1, pp 7-22.
  • B Schneier, "Applied Cryptography", 2/e, section 11.3-11.6, pp 242-263.
  • M R Schroeder, "Number Theory in Science and Communication", 2/e, Springer-Verlag, 1986.

  • [Back to CCS3 Lectures]
    Lawrie.Brown@adfa.edu.au / 7 Feb 2001