MaskGenerationMethod.GenerateMask(Byte[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, generates a mask with the specified length using the specified random seed.
public:
abstract cli::array <System::Byte> ^ GenerateMask(cli::array <System::Byte> ^ rgbSeed, int cbReturn);
public abstract byte[] GenerateMask (byte[] rgbSeed, int cbReturn);
[System.Runtime.InteropServices.ComVisible(true)]
public abstract byte[] GenerateMask (byte[] rgbSeed, int cbReturn);
abstract member GenerateMask : byte[] * int -> byte[]
[<System.Runtime.InteropServices.ComVisible(true)>]
abstract member GenerateMask : byte[] * int -> byte[]
Public MustOverride Function GenerateMask (rgbSeed As Byte(), cbReturn As Integer) As Byte()
Parameters
- rgbSeed
- Byte[]
The random seed to use to compute the mask.
- cbReturn
- Int32
The length of the generated mask in bytes.
Returns
A randomly generated mask whose length is equal to the cbReturn
parameter.
- Attributes
Examples
The following code example demonstrates how to override the GenerateMask to create and return a mask using the specified seed. This code example is part of a larger example provided for the MaskGenerationMethod class.
System.Security.Cryptography.MaskGenerationMethod#3
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για