Mask generation function: Difference between revisions

Content deleted Content added
Example code: also change python 2 to python 3 in demo
m top: output is not a size; function transforms input to output, not its lengths
Line 1:
{{Use American English|date = April 2019}}
{{Short description|cryptographic tool}}
A '''mask generation function''' ('''MGF''') is a cryptographic primitive similar to a [[cryptographic hash function]] except that while a hash function's output ishas a fixed size, a MGF supports output of a variable length. In this respect, a MGF can be viewed as a single-use XOR function: it can accept any lengthinput of inputany length and process it to produce any lengthoutput of outputany length. Mask generation functions are completely deterministic: for any given input and any desired output length the output is always the same.
 
== Definition ==