Content deleted Content added
No edit summary |
→Diagram of OAEP: math notation cleanup |
||
Line 24:
In the diagram,
* ''n'' is the number of bits in the RSA modulus.
*
* ''m'' is the plaintext message, a (''n'' − ''k''</sub>0</sub> − ''k''<sub>1</sub> )-
* ''G'' and ''H'' are typically some [[cryptographic hash function]]s fixed by the protocol.
To encode,
# messages are padded with
# ''r'' is a random
# ''G'' expands the
# ''X'' =
# ''H'' reduces the ''n
# ''Y'' = ''r'' ⊕ ''H''(''X'')
# The output is ''X'' || ''Y'' where ''X'' is shown in the diagram as the leftmost block and ''Y'' as the rightmost block.
To decode,
# recover the random string as ''r'' = ''Y'' ⊕ ''H''(''X'')
# recover the message as
==References==
|