Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Keys  





2 Primitives  





3 Schemes  





4 Version history  





5 Implementations  





6 Attacks  





7 See also  





8 References  





9 External links  














PKCS 1: Difference between revisions






Čeština
Deutsch
Português
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




Print/export  



















Appearance
   

 





Help
 

From Wikipedia, the free encyclopedia
 


Browse history interactively
 Previous editNext edit 
Content deleted Content added
→‎Schemes: Old first, then new. Yes, even when the old stuff is suspect...
Line 37: Line 37:


There are two schemes for encryption and decryption:

There are two schemes for encryption and decryption:

* {{tt|RSAES-PKCS1-v1_5}}: older Encryption/decryption Scheme (ES) as first standardized in version 1.5 of PKCS #1. '''Known-vulnerable.'''

* RSAES-OAEP: improved '''E'''ncryption/decryption '''S'''cheme; based on the [[Optimal asymmetric encryption padding]] scheme proposed by [[Mihir Bellare]] and [[Phillip Rogaway]].

* {{tt|RSAES-OAEP}}: improved ES; based on the [[optimal asymmetric encryption padding]] (OAEP) scheme proposed by [[Mihir Bellare]] and [[Phillip Rogaway]]. Recommended for new applications.{{efn|group=oaep|Note: A small change was made to RSAES-OAEP in PKCS #1 version 2.1, causing RSAES-OAEP in PKCS #1 version 2.0 to be totally incompatible with RSA-OAEP in PKCS #1 version 2.1 and version 2.2.}}

* RSAES-PKCS1-v1_5: older encryption/decryption scheme as first standardized in version 1.5 of PKCS #1.


Note: A small change was made to RSAES-OAEP in PKCS #1 version 2.1, causing RSAES-OAEP in PKCS #1 version 2.0 to be totally incompatible with RSA-OAEP in PKCS #1 version 2.1 and version 2.2.



There are also two schemes for dealing with signatures:

There are also two schemes for dealing with signatures:

* {{tt|RSASSA-PKCS1-v1_5}}: old Signature Scheme with Appendix (SSA) as first standardized in version 1.5 of PKCS #1. '''Known-vulnerable.'''

* RSASSA-PSS: improved '''P'''robabilistic '''S'''ignature '''S'''cheme with appendix; based on the [[probabilistic signature scheme]] originally invented by Bellare and Rogaway.

* {{tt|RSASSA-PSS}}: improved SSA; based on the [[probabilistic signature scheme]] (PSS) originally invented by Bellare and Rogaway. Recommended for new applications.

* RSASSA-PKCS1-v1_5: old '''S'''ignature '''S'''cheme with '''A'''ppendix as first standardized in version 1.5 of PKCS #1.



The two signature schemes make use of separately defined encoding methods:

The two signature schemes make use of separately defined encoding methods:

* EMSA-PSS: encoding method for signature appendix, probabilistic signature scheme.

* {{tt|EMSA-PKCS1-v1_5}}: old encoding method for signature appendix (EMSA) as first standardized in version 1.5 of PKCS #1.

* {{tt|EMSA-PSS}}: improved EMSA, based on the probabilistic signature scheme. Recommended for new applications.

* EMSA-PKCS1-v1_5: encoding method for signature appendix as first standardized in version 1.5 of PKCS #1.


The signature schemes are actually signatures ''with appendix'', which means that rather than signing some input data directly, a [[hash function]] is used first to produce an intermediary representation of the data, and then the result of the hash is signed. This technique is almost always used with RSA because the amount of data that can be directly signed is proportional to the size of the keys; which is almost always much smaller than the amount of data an application may wish to sign.



{{notelist|group=oaep}}

The signature schemes are actually signatures ''with appendix'', which means that rather than signing some input data

directly, a [[hash function]] is used first to produce an intermediary representation of the data, and then the result of the hash is signed. This technique is almost always used with RSA because the amount of data that can be directly signed is proportional to the size of the keys; which is almost always much smaller than the amount of data an application may wish to sign.



==Version history==

==Version history==


Revision as of 09:43, 18 February 2024

Incryptography, PKCS #1 is the first of a family of standards called Public-Key Cryptography Standards (PKCS), published by RSA Laboratories. It provides the basic definitions of and recommendations for implementing the RSA algorithm for public-key cryptography. It defines the mathematical properties of public and private keys, primitive operations for encryption and signatures, secure cryptographic schemes, and related ASN.1 syntax representations.

The current version is 2.2 (2012-10-27). Compared to 2.1 (2002-06-14), which was republished as RFC 3447, version 2.2 updates the list of allowed hashing algorithms to align them with FIPS 180-4, therefore adding SHA-224, SHA-512/224 and SHA-512/256.

Keys

The PKCS #1 standard defines the mathematical definitions and properties that RSA public and private keys must have. The traditional key pair is based on a modulus, n, that is the product of two distinct large prime numbers, p and q, such that .

Starting with version 2.1, this definition was generalized to allow for multi-prime keys, where the number of distinct primes may be two or more. When dealing with multi-prime keys, the prime factors are all generally labeled as for some i, such that:

for

As a notational convenience, and .

The RSA public key is represented as the tuple , where the integer e is the public exponent.

The RSA private key may have two representations. The first compact form is the tuple , where d is the private exponent. The second form has at least five terms , or more for multi-prime keys. Although mathematically redundant to the compact form, the additional terms allow for certain computational optimizations when using the key. In particular, the second format allows to derive the public key.[1]

Primitives

The standard defines several basic primitives. The primitive operations provide the fundamental instructions for turning the raw mathematical formulas into computable algorithms.

Schemes

By themselves the primitive operations do not necessarily provide any security. The concept of a cryptographic scheme is to define higher level algorithms or uses of the primitives so they achieve certain security goals.

There are two schemes for encryption and decryption:

There are also two schemes for dealing with signatures:

The two signature schemes make use of separately defined encoding methods:

The signature schemes are actually signatures with appendix, which means that rather than signing some input data directly, a hash function is used first to produce an intermediary representation of the data, and then the result of the hash is signed. This technique is almost always used with RSA because the amount of data that can be directly signed is proportional to the size of the keys; which is almost always much smaller than the amount of data an application may wish to sign.

  1. ^ Note: A small change was made to RSAES-OAEP in PKCS #1 version 2.1, causing RSAES-OAEP in PKCS #1 version 2.0 to be totally incompatible with RSA-OAEP in PKCS #1 version 2.1 and version 2.2.

Version history

Implementations

Below is a list of cryptography libraries that provide support for PKCS#1:

Attacks

Multiple attacks were discovered against PKCS #1 v1.5. The padding scheme is vulnerable to well-known padding oracle attacks.[2][3]

In 1998, Daniel Bleichenbacher published a seminal paper on what became known as Bleichenbacher's attack (also known as "million message attack").[3][4] PKCS #1 was subsequently updated in the release 2.0 and patches were issued to users wishing to continue using the old version of the standard.[2] However, the vulnerable padding scheme remains in use and has resulted in subsequent attacks:

In 2006, Bleichenbacher presented a new forgery attack against the signature scheme RSASSA-PKCS1-v1_5.[7]

See also

References

  • ^ a b Jean-Sébastien Coron, Marc Joye, David Naccache, and Pascal Paillier (2000). Advances in Cryptology — EUROCRYPT 2000 (PDF). Lecture Notes in Computer Science. Vol. 1807. EUROCRYPT. pp. 369–381. doi:10.1007/3-540-45539-6. ISBN 978-3-540-67517-4. S2CID 8447520.{{cite book}}: CS1 maint: multiple names: authors list (link)
  • ^ a b c Romain Bardou; Riccardo Focardi; Yusuke Kawamoto; Lorenzo Simionato; Graham Steel; Joe-Kai Tsay (2012). Efficient Padding Oracle Attacks on Cryptographic Hardware. Rr-7944 (report). INRIA. p. 19.
  • ^ RFC 3218 – Preventing the Million Message Attack on Cryptographic Message Syntax
  • ^ "A bad couple of years for the cryptographic token industry". A Few Thoughts on Cryptographic Engineering. 21 June 2012.
  • ^ Hanno Böck; Juraj Somorovsky; Craig Young. "ROBOT attack: Return Of Bleichenbacher's Oracle Threat". Retrieved February 27, 2018.
  • ^ Tetsuya Izu; Masahiko Takenaka; Takeshi Shimoyama (April 2007). "Analysis on Bleichenbacher's Forgery Attack". The Second International Conference on Availability, Reliability and Security (ARES'07). IEEE. pp. 1167–1174. doi:10.1109/ARES.2007.38. ISBN 978-0-7695-2775-8. S2CID 2459509.
  • External links


    Retrieved from "https://en.wikipedia.org/w/index.php?title=PKCS_1&oldid=1208642098"

    Categories: 
    Cryptography standards
    Digital signature schemes
    Digital Signature Standard
    Hidden categories: 
    CS1 maint: multiple names: authors list
    Articles with short description
    Short description matches Wikidata
    Restricted titles (non-leading number sign)
    Articles needing additional references from March 2019
    All articles needing additional references
    Webarchive template wayback links
     



    This page was last edited on 18 February 2024, at 09:43 (UTC).

    This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki