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
)
public byte[] GenerateMask (
	byte[] rgbSeed, 
	int cbReturn
)
public override function GenerateMask (
	rgbSeed : byte[], 
	cbReturn : int
) : byte[]
Not applicable.

Parameters

rgbSeed

The random seed to use for computing the mask.

cbReturn

The length of the generated mask in bytes.

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft