Optimal asymmetric encryption padding: Difference between revisions

Content deleted Content added
The algorithm was poorly described, missing a few bytes (like the 0x01 byte between PS and M), and the associated diagram was not conforming to RFC 8017.
Tags: nowiki added Visual edit
m Typo in Algorithm description
Line 26:
* ''hLen'' is the length of the output of the hash function in bytes,
 
* ''k'' is to the length of the [[RSA (cryptosystem)|RSA]] modulus ''n'' in bytes,
* ''M'' is the message to be padded (at most <math>k - 2 \cdot \mathrm{hLen} - 2</math> bytes),
* ''L'' is an optional label to be associated with the message (the label is the empty string by default and can be used to authenticate data without requiring encryption),