Content deleted Content added
Gcnaccount (talk | contribs) No edit summary |
Gcnaccount (talk | contribs) No edit summary |
||
Line 16:
awareness of RSAES-OAEP relies on the random nature of the output of
the mask generation function, which in turn relies on the random
nature of the underlying hash."
== Applications ==
Line 24:
=== Padding Schemes ===
Mask Generation Functions were first proposed as part of the specification for passing in the [[Optimal_asymmetric_encryption_padding|RSA-OAEP]] algorithm. The OAEP algorithm required a cryptographic hash function that could generate an output equal in size to a "data block" whose length to an arbitrarily sized input message.
=== Keyed Encryption ===
The [[Salsa20]] stream cipher may be viewed as a Mask Generation Function as its [[keystream]] is produced by hashing the key and nonce with a counter, to yield an arbitrarily long output.
<pre>
Line 45:
=== Random Number Generators ===
The NIST Special Publication 800-90A
== Examples ==
Line 53:
=== MGF1 ===
MGF1 is a Mask Generation Function defined in the Public Key Cryptography Standard #1 published by RSA Labroatories.<ref>{{cite web |url=https://www.ietf.org/rfc/rfc2437.txt |title=RFC 2437 PKCS #1 |author=RSA Laboratories}}</ref> The algorithm is described as follows:
<pre>
|