scripts
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Represents the abstract class from which all implementations of cryptographic random number generators derive.</summary>
|
||||
// Token: 0x02000524 RID: 1316
|
||||
public abstract class RandomNumberGenerator
|
||||
{
|
||||
/// <summary>Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.</summary>
|
||||
/// <returns>A new instance of a cryptographic random number generator.</returns>
|
||||
/// <PermissionSet>
|
||||
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode" />
|
||||
/// </PermissionSet>
|
||||
// Token: 0x0600305C RID: 12380 RVA: 0x0009E0FC File Offset: 0x0009C2FC
|
||||
public static RandomNumberGenerator Create()
|
||||
{
|
||||
return RandomNumberGenerator.Create("System.Security.Cryptography.RandomNumberGenerator");
|
||||
}
|
||||
|
||||
/// <summary>Creates an instance of the specified implementation of a cryptographic random number generator.</summary>
|
||||
/// <returns>A new instance of a cryptographic random number generator.</returns>
|
||||
/// <param name="rngName">The name of the random number generator implementation to use. </param>
|
||||
// Token: 0x0600305D RID: 12381 RVA: 0x0009E108 File Offset: 0x0009C308
|
||||
public static RandomNumberGenerator Create(string rngName)
|
||||
{
|
||||
return (RandomNumberGenerator)CryptoConfig.CreateFromName(rngName);
|
||||
}
|
||||
|
||||
/// <summary>When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of values.</summary>
|
||||
/// <param name="data">The array to fill with cryptographically strong random bytes. </param>
|
||||
// Token: 0x0600305E RID: 12382
|
||||
public abstract void GetBytes(byte[] data);
|
||||
|
||||
/// <summary>When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of nonzero values.</summary>
|
||||
/// <param name="data">The array to fill with cryptographically strong random nonzero bytes. </param>
|
||||
// Token: 0x0600305F RID: 12383
|
||||
public abstract void GetNonZeroBytes(byte[] data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user