Mono Class Library: System.Security.Cryptography.PKCS1MaskGenerationMethod Overview | Members

System.Security.Cryptography.PKCS1MaskGenerationMethod.GenerateMask Method

Generate a new mask using the specified seed value.

public override byte[] GenerateMask (byte[] rgbSeed, int cbReturn)

Parameters

rgbSeed
The random seed to be used for the mask.
cbReturn
The required length of the mask.

Returns

An array of byte containing the generated mask.

Remarks

This method is not compatible with the one provided by Microsoft in framework 1.0 and 1.1 (known bug) but IS compliant with PKCS#1 v.2.1 and work for implementing OAEP.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0