365 lines
20 KiB
C#
365 lines
20 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng.Drbg;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng
|
|
{
|
|
// Token: 0x02001CA9 RID: 7337
|
|
[Token(Token = "0x2001CA9")]
|
|
public class SP800SecureRandomBuilder
|
|
{
|
|
// Token: 0x0600B5B2 RID: 46514 RVA: 0x00274C10 File Offset: 0x00272E10
|
|
[Token(Token = "0x600B5B2")]
|
|
[Address(RVA = "0x23675E0", Offset = "0x23665E0", VA = "0x1823675E0")]
|
|
public SP800SecureRandomBuilder()
|
|
{
|
|
SecureRandom secureRandom = new SecureRandom();
|
|
this.mSecurityStrength = (int)((ulong)256L);
|
|
this.mEntropyBitsRequired = (int)((ulong)256L);
|
|
base..ctor();
|
|
this.mRandom = secureRandom;
|
|
BasicEntropySourceProvider basicEntropySourceProvider;
|
|
basicEntropySourceProvider.mSecureRandom = secureRandom;
|
|
basicEntropySourceProvider.mPredictionResistant = false;
|
|
this.mEntropySourceProvider = basicEntropySourceProvider;
|
|
}
|
|
|
|
// Token: 0x0600B5B3 RID: 46515 RVA: 0x00274C60 File Offset: 0x00272E60
|
|
[Token(Token = "0x600B5B3")]
|
|
[Address(RVA = "0x23676E0", Offset = "0x23666E0", VA = "0x1823676E0")]
|
|
public SP800SecureRandomBuilder(SecureRandom entropySource, bool predictionResistant)
|
|
{
|
|
this.mSecurityStrength = (int)((ulong)256L);
|
|
this.mEntropyBitsRequired = (int)((ulong)256L);
|
|
base..ctor();
|
|
this.mRandom = entropySource;
|
|
BasicEntropySourceProvider basicEntropySourceProvider;
|
|
basicEntropySourceProvider.mSecureRandom = entropySource;
|
|
basicEntropySourceProvider.mPredictionResistant = predictionResistant;
|
|
this.mEntropySourceProvider = basicEntropySourceProvider;
|
|
}
|
|
|
|
// Token: 0x0600B5B4 RID: 46516 RVA: 0x00274CAC File Offset: 0x00272EAC
|
|
[Token(Token = "0x600B5B4")]
|
|
[Address(RVA = "0x23676A0", Offset = "0x23666A0", VA = "0x1823676A0")]
|
|
public SP800SecureRandomBuilder(IEntropySourceProvider entropySourceProvider)
|
|
{
|
|
this.mSecurityStrength = (int)((ulong)256L);
|
|
this.mEntropyBitsRequired = (int)((ulong)256L);
|
|
base..ctor();
|
|
this.mRandom = (ulong)0L;
|
|
this.mEntropySourceProvider = entropySourceProvider;
|
|
}
|
|
|
|
// Token: 0x0600B5B5 RID: 46517 RVA: 0x00274CEC File Offset: 0x00272EEC
|
|
[Token(Token = "0x600B5B5")]
|
|
[Address(RVA = "0x493850", Offset = "0x492850", VA = "0x180493850")]
|
|
public SP800SecureRandomBuilder SetPersonalizationString(byte[] personalizationString)
|
|
{
|
|
this.mPersonalizationString = personalizationString;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600B5B6 RID: 46518 RVA: 0x00274D04 File Offset: 0x00272F04
|
|
[Token(Token = "0x600B5B6")]
|
|
[Address(RVA = "0x23675D0", Offset = "0x23665D0", VA = "0x1823675D0")]
|
|
public SP800SecureRandomBuilder SetSecurityStrength(int securityStrength)
|
|
{
|
|
this.mSecurityStrength = securityStrength;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600B5B7 RID: 46519 RVA: 0x00274D1C File Offset: 0x00272F1C
|
|
[Token(Token = "0x600B5B7")]
|
|
[Address(RVA = "0x23675C0", Offset = "0x23665C0", VA = "0x1823675C0")]
|
|
public SP800SecureRandomBuilder SetEntropyBitsRequired(int entropyBitsRequired)
|
|
{
|
|
this.mEntropyBitsRequired = entropyBitsRequired;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600B5B8 RID: 46520 RVA: 0x00274D34 File Offset: 0x00272F34
|
|
[Token(Token = "0x600B5B8")]
|
|
[Address(RVA = "0x23674D0", Offset = "0x23664D0", VA = "0x1823674D0")]
|
|
public SP800SecureRandom BuildHash(IDigest digest, byte[] nonce, bool predictionResistant)
|
|
{
|
|
IEntropySourceProvider entropySourceProvider = this.mEntropySourceProvider;
|
|
byte[] array = this.mPersonalizationString;
|
|
int num = this.mSecurityStrength;
|
|
SP800SecureRandomBuilder.HashDrbgProvider hashDrbgProvider;
|
|
hashDrbgProvider.mDigest = digest;
|
|
hashDrbgProvider.mNonce = nonce;
|
|
hashDrbgProvider.mPersonalizationString = array;
|
|
hashDrbgProvider.mSecurityStrength = num;
|
|
SP800SecureRandom sp800SecureRandom;
|
|
return sp800SecureRandom;
|
|
}
|
|
|
|
// Token: 0x0600B5B9 RID: 46521 RVA: 0x00274D7C File Offset: 0x00272F7C
|
|
[Token(Token = "0x600B5B9")]
|
|
[Address(RVA = "0x23672E0", Offset = "0x23662E0", VA = "0x1823672E0")]
|
|
public SP800SecureRandom BuildCtr(IBlockCipher cipher, int keySizeInBits, byte[] nonce, bool predictionResistant)
|
|
{
|
|
IEntropySourceProvider entropySourceProvider = this.mEntropySourceProvider;
|
|
byte[] array = this.mPersonalizationString;
|
|
int num = this.mSecurityStrength;
|
|
SP800SecureRandomBuilder.CtrDrbgProvider ctrDrbgProvider;
|
|
ctrDrbgProvider.mBlockCipher = cipher;
|
|
ctrDrbgProvider.mKeySizeInBits = keySizeInBits;
|
|
ctrDrbgProvider.mNonce = nonce;
|
|
ctrDrbgProvider.mPersonalizationString = array;
|
|
ctrDrbgProvider.mSecurityStrength = num;
|
|
SP800SecureRandom sp800SecureRandom;
|
|
return sp800SecureRandom;
|
|
}
|
|
|
|
// Token: 0x0600B5BA RID: 46522 RVA: 0x00274DCC File Offset: 0x00272FCC
|
|
[Token(Token = "0x600B5BA")]
|
|
[Address(RVA = "0x23673E0", Offset = "0x23663E0", VA = "0x1823673E0")]
|
|
public SP800SecureRandom BuildHMac(IMac hMac, byte[] nonce, bool predictionResistant)
|
|
{
|
|
IEntropySourceProvider entropySourceProvider = this.mEntropySourceProvider;
|
|
byte[] array = this.mPersonalizationString;
|
|
int num = this.mSecurityStrength;
|
|
SP800SecureRandomBuilder.HMacDrbgProvider hmacDrbgProvider;
|
|
hmacDrbgProvider.mHMac = hMac;
|
|
hmacDrbgProvider.mNonce = nonce;
|
|
hmacDrbgProvider.mPersonalizationString = array;
|
|
hmacDrbgProvider.mSecurityStrength = num;
|
|
SP800SecureRandom sp800SecureRandom;
|
|
return sp800SecureRandom;
|
|
}
|
|
|
|
// Token: 0x04007304 RID: 29444
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007304")]
|
|
private readonly SecureRandom mRandom;
|
|
|
|
// Token: 0x04007305 RID: 29445
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007305")]
|
|
private readonly IEntropySourceProvider mEntropySourceProvider;
|
|
|
|
// Token: 0x04007306 RID: 29446
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007306")]
|
|
private byte[] mPersonalizationString;
|
|
|
|
// Token: 0x04007307 RID: 29447
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007307")]
|
|
private int mSecurityStrength;
|
|
|
|
// Token: 0x04007308 RID: 29448
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x4007308")]
|
|
private int mEntropyBitsRequired;
|
|
|
|
// Token: 0x02001CAA RID: 7338
|
|
[Token(Token = "0x2001CAA")]
|
|
private class HashDrbgProvider : IDrbgProvider
|
|
{
|
|
// Token: 0x0600B5BB RID: 46523 RVA: 0x00274E14 File Offset: 0x00273014
|
|
[Token(Token = "0x600B5BB")]
|
|
[Address(RVA = "0x8A0F90", Offset = "0x89FF90", VA = "0x1808A0F90")]
|
|
public HashDrbgProvider(IDigest digest, byte[] nonce, byte[] personalizationString, int securityStrength)
|
|
{
|
|
this.mDigest = digest;
|
|
this.mPersonalizationString = personalizationString;
|
|
this.mSecurityStrength = 0;
|
|
this.mNonce = nonce;
|
|
}
|
|
|
|
// Token: 0x0600B5BC RID: 46524 RVA: 0x00274E44 File Offset: 0x00273044
|
|
[Token(Token = "0x600B5BC")]
|
|
[Address(RVA = "0x235D6E0", Offset = "0x235C6E0", VA = "0x18235D6E0", Slot = "4")]
|
|
public ISP80090Drbg Get(IEntropySource entropySource)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B5BC)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng.Drbg.ISP80090Drbg BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng.SP800SecureRandomBuilder/HashDrbgProvider::Get(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IEntropySource)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:IDigest(var_0_06, ldfld:IDigest(HashDrbgProvider::mDigest, ldloc:HashDrbgProvider(this)))
|
|
stloc:int32(var_1_0D, ldfld:int32(HashDrbgProvider::mSecurityStrength, ldloc:HashDrbgProvider(this)))
|
|
stloc:uint8[](var_2_14, ldfld:uint8[](HashDrbgProvider::mPersonalizationString, ldloc:HashDrbgProvider(this)))
|
|
stloc:uint8[](var_3_1B, ldfld:uint8[](HashDrbgProvider::mNonce, ldloc:HashDrbgProvider(this)))
|
|
stloc:HashSP800Drbg(var_4_26, newobj:HashSP800Drbg(HashSP800Drbg::.ctor, ldloc:IDigest(var_0_06), ldloc:int32(var_1_0D), ldloc:IEntropySource(entropySource), ldloc:uint8[](var_2_14), ldloc:uint8[](var_3_1B)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x04007309 RID: 29449
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007309")]
|
|
private readonly IDigest mDigest;
|
|
|
|
// Token: 0x0400730A RID: 29450
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400730A")]
|
|
private readonly byte[] mNonce;
|
|
|
|
// Token: 0x0400730B RID: 29451
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400730B")]
|
|
private readonly byte[] mPersonalizationString;
|
|
|
|
// Token: 0x0400730C RID: 29452
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400730C")]
|
|
private readonly int mSecurityStrength;
|
|
}
|
|
|
|
// Token: 0x02001CAB RID: 7339
|
|
[Token(Token = "0x2001CAB")]
|
|
private class HMacDrbgProvider : IDrbgProvider
|
|
{
|
|
// Token: 0x0600B5BD RID: 46525 RVA: 0x00274E78 File Offset: 0x00273078
|
|
[Token(Token = "0x600B5BD")]
|
|
[Address(RVA = "0x8A0F90", Offset = "0x89FF90", VA = "0x1808A0F90")]
|
|
public HMacDrbgProvider(IMac hMac, byte[] nonce, byte[] personalizationString, int securityStrength)
|
|
{
|
|
this.mHMac = hMac;
|
|
this.mPersonalizationString = personalizationString;
|
|
this.mSecurityStrength = 0;
|
|
this.mNonce = nonce;
|
|
}
|
|
|
|
// Token: 0x0600B5BE RID: 46526 RVA: 0x00274EA8 File Offset: 0x002730A8
|
|
[Token(Token = "0x600B5BE")]
|
|
[Address(RVA = "0x235C010", Offset = "0x235B010", VA = "0x18235C010", Slot = "4")]
|
|
public ISP80090Drbg Get(IEntropySource entropySource)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B5BE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng.Drbg.ISP80090Drbg BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng.SP800SecureRandomBuilder/HMacDrbgProvider::Get(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IEntropySource)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:IMac(var_0_06, ldfld:IMac(HMacDrbgProvider::mHMac, ldloc:HMacDrbgProvider(this)))
|
|
stloc:int32(var_1_0D, ldfld:int32(HMacDrbgProvider::mSecurityStrength, ldloc:HMacDrbgProvider(this)))
|
|
stloc:uint8[](var_2_14, ldfld:uint8[](HMacDrbgProvider::mPersonalizationString, ldloc:HMacDrbgProvider(this)))
|
|
stloc:uint8[](var_3_1B, ldfld:uint8[](HMacDrbgProvider::mNonce, ldloc:HMacDrbgProvider(this)))
|
|
stloc:HMacSP800Drbg(var_4_26, newobj:HMacSP800Drbg(HMacSP800Drbg::.ctor, ldloc:IMac(var_0_06), ldloc:int32(var_1_0D), ldloc:IEntropySource(entropySource), ldloc:uint8[](var_2_14), ldloc:uint8[](var_3_1B)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0400730D RID: 29453
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400730D")]
|
|
private readonly IMac mHMac;
|
|
|
|
// Token: 0x0400730E RID: 29454
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400730E")]
|
|
private readonly byte[] mNonce;
|
|
|
|
// Token: 0x0400730F RID: 29455
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400730F")]
|
|
private readonly byte[] mPersonalizationString;
|
|
|
|
// Token: 0x04007310 RID: 29456
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007310")]
|
|
private readonly int mSecurityStrength;
|
|
}
|
|
|
|
// Token: 0x02001CAC RID: 7340
|
|
[Token(Token = "0x2001CAC")]
|
|
private class CtrDrbgProvider : IDrbgProvider
|
|
{
|
|
// Token: 0x0600B5BF RID: 46527 RVA: 0x00274EDC File Offset: 0x002730DC
|
|
[Token(Token = "0x600B5BF")]
|
|
[Address(RVA = "0x2352570", Offset = "0x2351570", VA = "0x182352570")]
|
|
public CtrDrbgProvider(IBlockCipher blockCipher, int keySizeInBits, byte[] nonce, byte[] personalizationString, int securityStrength)
|
|
{
|
|
this.mPersonalizationString = 0;
|
|
this.mBlockCipher = blockCipher;
|
|
this.mNonce = nonce;
|
|
this.mSecurityStrength = 0;
|
|
this.mKeySizeInBits = keySizeInBits;
|
|
}
|
|
|
|
// Token: 0x0600B5C0 RID: 46528 RVA: 0x00274F14 File Offset: 0x00273114
|
|
[Token(Token = "0x600B5C0")]
|
|
[Address(RVA = "0x23524C0", Offset = "0x23514C0", VA = "0x1823524C0", Slot = "4")]
|
|
public ISP80090Drbg Get(IEntropySource entropySource)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B5C0)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng.Drbg.ISP80090Drbg BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng.SP800SecureRandomBuilder/CtrDrbgProvider::Get(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IEntropySource)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:IBlockCipher(var_0_06, ldfld:IBlockCipher(CtrDrbgProvider::mBlockCipher, ldloc:CtrDrbgProvider(this)))
|
|
stloc:int32(var_1_0D, ldfld:int32(CtrDrbgProvider::mKeySizeInBits, ldloc:CtrDrbgProvider(this)))
|
|
stloc:int32(var_2_14, ldfld:int32(CtrDrbgProvider::mSecurityStrength, ldloc:CtrDrbgProvider(this)))
|
|
stloc:uint8[](var_3_1B, ldfld:uint8[](CtrDrbgProvider::mPersonalizationString, ldloc:CtrDrbgProvider(this)))
|
|
stloc:uint8[](var_4_22, ldfld:uint8[](CtrDrbgProvider::mNonce, ldloc:CtrDrbgProvider(this)))
|
|
stloc:CtrSP800Drbg(var_5_30, newobj:CtrSP800Drbg(CtrSP800Drbg::.ctor, ldloc:IBlockCipher(var_0_06), ldloc:int32(var_1_0D), ldloc:int32(var_2_14), ldloc:IEntropySource(entropySource), ldloc:uint8[](var_3_1B), ldloc:uint8[](var_4_22)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x04007311 RID: 29457
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007311")]
|
|
private readonly IBlockCipher mBlockCipher;
|
|
|
|
// Token: 0x04007312 RID: 29458
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007312")]
|
|
private readonly int mKeySizeInBits;
|
|
|
|
// Token: 0x04007313 RID: 29459
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007313")]
|
|
private readonly byte[] mNonce;
|
|
|
|
// Token: 0x04007314 RID: 29460
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007314")]
|
|
private readonly byte[] mPersonalizationString;
|
|
|
|
// Token: 0x04007315 RID: 29461
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4007315")]
|
|
private readonly int mSecurityStrength;
|
|
}
|
|
}
|
|
}
|