37 lines
987 B
C#
37 lines
987 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng
|
|
{
|
|
// Token: 0x020015E7 RID: 5607
|
|
[Token(Token = "0x20015E7")]
|
|
[StructLayout(3)]
|
|
public abstract class EntropyUtilities
|
|
{
|
|
// Token: 0x060095F6 RID: 38390 RVA: 0x002140B4 File Offset: 0x002122B4
|
|
[Token(Token = "0x60095F6")]
|
|
[Address(RVA = "0x1E3F1C0", Offset = "0x1E3DBC0", VA = "0x181E3F1C0")]
|
|
public static byte[] GenerateSeed(IEntropySource entropySource, int numBytes)
|
|
{
|
|
byte[] array = new byte[numBytes];
|
|
int num = 0;
|
|
if (numBytes > 0)
|
|
{
|
|
int num2 = Math.Min(array.Length, numBytes);
|
|
int num3 = 0;
|
|
Array.Copy(array, num3, array, num, num2);
|
|
num += num2;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x060095F7 RID: 38391 RVA: 0x002140F4 File Offset: 0x002122F4
|
|
[Token(Token = "0x60095F7")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
protected EntropyUtilities()
|
|
{
|
|
}
|
|
}
|
|
}
|