
The Cryptography Handbook: Exploring RSA PKCSv1.5, OAEP, and PSS
The Cryptography Handbook: Exploring RSA PKCSv1.5, OAEP, and PSS 관련
The RSA algorithm was introduced in 1978 in the seminal paper, "A Method for Obtaining Digital Signatures and Public-Key Cryptosystems". Over the decades, as RSA became integral to secure communications, various vulnerabilities and attacks have emerged, underscoring the importance of understanding and implementing RSA correctly.
This handbook will help you understand the internal workings of the RSA algorithm, how they have evolved over the years, and the schemes defined under various RFCs. This knowledge will help you make informed choices about the most suitable RSA schemes depending on your business requirements.
In this handbook, we’ll begin by exploring the foundational principles of the RSA algorithm. By examining its mathematical underpinnings and historical evolution, you will gain insight into the diverse array of attacks that have emerged over the years.
The narrative unfolds as an evolutionary journey: from the original, straightforward (textbook) RSA implementation, through the discovery of vulnerabilities, to the development of effective countermeasures, and further refinements as new challenges were encountered. This progression illuminates how RSA has transformed over time and also demonstrates how modern cryptographic libraries have integrated these advancements to achieve secure implementations in today’s applications.
You can also watch the associated video here:
- The Alice-Bob Paradigm
- The Birth of the RSA Cryptosystem
- RSA Operations
- Issues with Euler’s Totient Function in RSA
- The Carmichael Function
- Issues with Raw RSA
- Exploiting Textbook RSA’s Determinism and Malleability
- Low-Exponent Attacks
- Håstad’s Broadcast Attack: Low Exponent Meets Multiple Recipients
- Introduction to Padding Schemes in RSA
- Public Key Cryptography Standards (PKCS#1 v1.5)
- The Bleichenbacher Attack
- Optimal Asymmetric Encryption Padding (OAEP)
- Why SHA-1 or MD5 Are Safe in RSA-OAEP
- Adoption in Cryptographic Libraries (PKCS#1 v1.5 vs OAEP)
- Enhancing Digital Signatures: The Transition to PSS
- The Road Ahead: Assessing RSA’s Long-Term Viability
- References
Prerequisites
1. Linear Algebra:
A foundational understanding of Linear Algebra and Modular Arithmetic will help you understand certain sections of the handbook, though it is not an absolute requirement. This handbook provides comprehensive explanations of mathematical expressions and their underlying concepts as they arise.
For a concise and relevant introduction to the Chinese Remainder Theorem (CRT) in the context of the handbook, you may find this resource helpful: CRT, RSA, and Low Exponent Attacks.
2. Patience (and a Sense of Adventure):
RFCs can sometimes get dull to read, and research papers can feel intimidating at first glance. This handbook is designed to make standard cryptographic concepts accessible to everyone, guiding you through each step with clarity and intuition. Every concept is reinforced with clear, step-by-step examples, ensuring not only a thorough understanding but also familiarity with widely used standard notations. So take your time, take a deep breath, and embrace the journey.
For visual learners, the associated video may offer a more engaging experience.