Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

94 lines
4.7 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract class from which all implementations of cryptographic random number generators derive.</summary>
// Token: 0x020003F9 RID: 1017
[Token(Token = "0x20003F9")]
[ComVisible(true)]
public abstract class RandomNumberGenerator : IDisposable
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.RandomNumberGenerator" />.</summary>
// Token: 0x06002221 RID: 8737 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002221")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected 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>
// Token: 0x06002222 RID: 8738 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002222")]
[Address(RVA = "0x2DF3A90", Offset = "0x2DF2890", VA = "0x182DF3A90")]
public static RandomNumberGenerator Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of a cryptographic random number generator.</summary>
/// <param name="rngName">The name of the random number generator implementation to use.</param>
/// <returns>A new instance of a cryptographic random number generator.</returns>
// Token: 0x06002223 RID: 8739 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002223")]
[Address(RVA = "0x2DF3A00", Offset = "0x2DF2800", VA = "0x182DF3A00")]
public static RandomNumberGenerator Create(string rngName)
{
return null;
}
/// <summary>When overridden in a derived class, releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.RandomNumberGenerator" /> class.</summary>
// Token: 0x06002224 RID: 8740 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002224")]
[Address(RVA = "0x2DF3AE0", Offset = "0x2DF28E0", VA = "0x182DF3AE0", Slot = "4")]
public void Dispose()
{
}
/// <summary>When overridden in a derived class, releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.RandomNumberGenerator" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06002225 RID: 8741 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002225")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
/// <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: 0x06002226 RID: 8742
[Token(Token = "0x6002226")]
[Address(Slot = "6")]
public abstract void GetBytes(byte[] data);
/// <summary>Fills the specified byte array with a cryptographically strong random sequence of values.</summary>
/// <param name="data">The array to fill with cryptographically strong random bytes.</param>
/// <param name="offset">The index of the array to start the fill operation.</param>
/// <param name="count">The number of bytes to fill.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is less than 0</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="offset" /> plus <paramref name="count" /> exceeds the length of <paramref name="data" />.</exception>
// Token: 0x06002227 RID: 8743 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002227")]
[Address(RVA = "0x2DF3B50", Offset = "0x2DF2950", VA = "0x182DF3B50", Slot = "7")]
public virtual void GetBytes(byte[] data, int offset, int count)
{
}
/// <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: 0x06002228 RID: 8744 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002228")]
[Address(RVA = "0x2DF3D20", Offset = "0x2DF2B20", VA = "0x182DF3D20", Slot = "8")]
public virtual void GetNonZeroBytes(byte[] data)
{
}
}
}