Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PKCS1MaskGenerationMethod.GenerateMask Method

Generates and returns a mask from the specified random seed of the specified length.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

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

Parameters

rgbSeed
Type: System.Byte[]

The random seed to use for computing the mask.

cbReturn
Type: System.Int32

The length of the generated mask in bytes.

Return Value

Type: System.Byte[]
A randomly generated mask whose length is equal to the cbReturn parameter.

Masks are used in key exchange computation and generally are not used by applications.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft