15 fixed (
byte* pbBuffer = data)
41 fixed (
byte* pbBuffer = data)
63 for (
int i = 0; i < data.
Length; i++)
71 for (
int j = num + 1; j < data.
Length; j++)
75 data[num++] = data[j];
78 data = data.
Slice(num);
84 global::Interop.BCrypt.NTSTATUS nTSTATUS = global::Interop.BCrypt.BCryptGenRandom(
IntPtr.
Zero, pbBuffer,
count, 2);
87 throw global::Interop.BCrypt.CreateCryptographicException(nTSTATUS);
static readonly RandomNumberGeneratorImplementation s_singleton
unsafe override void GetBytes(Span< byte > data)
override void GetNonZeroBytes(Span< byte > data)
RandomNumberGeneratorImplementation()
override void GetNonZeroBytes(byte[] data)
static unsafe void FillSpan(Span< byte > data)
override void GetBytes(byte[] data)
override void GetBytes(byte[] data, int offset, int count)
static unsafe void GetBytes(byte *pbBuffer, int count)
void VerifyGetBytes(byte[] data, int offset, int count)
static readonly IntPtr Zero
Span< T > Slice(int start)