Lecture 8 - RSA Cryptosystem
Lecture 8 - RSA Cryptosystem
Introduction
• The RSA crypto scheme, sometimes referred to as the Rivest–Shamir–Adleman
algorithm, is currently the most widely used asymmetric cryptographic scheme,
even though elliptic curves and discrete logarithm schemes are gaining ground.
The RSA Cryptosystem • RSA was patented in the USA (but not in the rest of the world) until 2000.
• There are many applications for RSA, but in practice it is most often used for:
• Encryption of small pieces of data, especially for key transport
• Digital signatures for digital certificates on the internet (discussed later)
1 2
3 4
CNS 2201 9/25/2023
5 6
7
CNS 2201 9/25/2023
Example 2 Example 2
Example 1 Example 2
11
CNS 2201 9/25/2023
13 14
15 16
CNS 2201 9/25/2023
17 18
19 20
CNS 2201 9/25/2023
Fast Decryption Chinese Remainder Theorem Fast Decryption Chinese Remainder Theorem
• We cannot choose a short private key without compromising the security for RSA. • Our goal is to perform the exponentiation xd mod n efficiently.
• If we were to select keys d as short as we did in the case of encryption in the • First we note that the party who possesses the private key also knows the primes
section above, an attacker could simply brute-force all possible numbers up to a p and q.
given bit length, i.e., 50 bit.
• But even if the numbers are larger, say 128 bit, there are key recovery attacks. • The basic idea of the CRT is that rather than doing arithmetic with one “long”
modulus n, we do two individual exponentiations modulo the two “short” primes
• In practice, e is often chosen short and d has full bit length. p and q.
• What one does instead is to apply a method which is based on the Chinese • This is a type of transformation arithmetic.
Remainder Theorem (CRT).
• We do not introduce the CRT itself here but merely how it applies to accelerate • Like any transform, there are three steps: transforming into the CRT domain,
RSA decryption and signature generation. computation in the CRT domain, and inverse transformation of the result.
21 22
23 24
CNS 2201 9/25/2023
25 26
27 28