The Mathematical Foundations of Modern Cryptography: Exactness, Prime Numbers, and the Greatest Common Divisor
Welcome to the first post of this blog, dedicated to my academic journey in cryptography. The goal of this post is to introduce the fundamental mathematical concepts that guarantee the security of our digital communications.
It is important to underline that the mathematics used in cryptography is profoundly different from what we apply in our daily routines.
The absolute need for exactness
In everyday life, the use of approximations is very common. For example, if a product costs $1.99, we naturally consider it as $2.00. However, in the field of modern cryptography, there is no tolerance for rounding errors.
If a cryptographic algorithm approximates a value even by a microscopic fraction, the entire system fails. The digital "key" used to encrypt a message would no longer be able to decrypt it, making the information permanently inaccessible. For this reason, cryptography abandons decimal numbers and operates exclusively with integers (such as -1, 0, 1, 2, 3). Devoid of decimal points, integer mathematics guarantees the absolute precision required to keep data secure.
Prime numbers: the indivisible elements
To create a secure system, cryptographers use mathematical problems that are extremely difficult for a computer to solve without a specific key. The main components used to build these problems are prime numbers.
- Prime numbers: An integer greater than 1 that is divisible only by 1 and itself (for example, 2, 3, 5, 7, 11). We can consider them as the elementary atoms of mathematics because they cannot be divided into smaller integer components.
- Composite numbers: Integers obtained by multiplying prime numbers. For example, the number 15 is the product of 3 and 5.
This concept introduces the Fundamental Theorem of Arithmetic, which states that every integer greater than 1 has a unique and unrepeatable prime factorization. This mathematical "fingerprint" is an essential feature used to generate secure cryptographic keys.
The Greatest Common Divisor (GCD) and coprime numbers
Furthermore, for cryptography algorithms to work correctly, it is necessary to select numbers that interact in a specific way. In this context, the Greatest Common Divisor (GCD) is a crucial tool. The GCD is the largest positive integer that divides two numbers without leaving a remainder.
The GCD is particularly useful for determining whether two integers are relatively prime (also defined as coprime). Two numbers are relatively prime if their GCD is exactly equal to 1. This means they do not share any common prime factor.
For example, the number 8 (which is 2 × 2 × 2) and the number 15 (which is 3 × 5) are relatively prime. The selection of coprime numbers is a fundamental procedure in modern algorithms. It is the mathematical mechanism that allows a system to correctly reverse an operation, ensuring that a message can be securely encrypted and subsequently decrypted by the legitimate recipient.
References and further reading
- Coursera: Mathematical Foundations of Cryptography (Course lectures and transcripts).
- Shiu, P. (2024). Number Theory with Computations. Springer. (For fundamental concepts of discrete mathematics and arithmetic theorems).
- Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2022). Introduction to Algorithms (4th ed.). MIT Press. (For an in-depth look at the algorithmic applications of the GCD and primality testing).
- Venturi, D. (2012). Crittografia nel Paese delle Meraviglie. Springer. (For a comprehensive academic overview of modern cryptographic schemes).
Comments
Post a Comment