363 lines
20 KiB
C#
363 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: 0x02001BC9 RID: 7113
|
|
[Token(Token = "0x2001BC9")]
|
|
public class SP800SecureRandomBuilder
|
|
{
|
|
// Token: 0x0600B1E4 RID: 45540 RVA: 0x0026BA40 File Offset: 0x00269C40
|
|
[Token(Token = "0x600B1E4")]
|
|
[Address(RVA = "0x18A3780", Offset = "0x18A2580", VA = "0x1818A3780")]
|
|
public SP800SecureRandomBuilder()
|
|
{
|
|
SecureRandom secureRandom = new SecureRandom();
|
|
this.mSecurityStrength = (int)((ulong)256L);
|
|
this.mEntropyBitsRequired = (int)((ulong)256L);
|
|
base..ctor();
|
|
this.mRandom = secureRandom;
|
|
int num;
|
|
BasicEntropySourceProvider basicEntropySourceProvider = new BasicEntropySourceProvider(secureRandom, num != 0);
|
|
num = 0;
|
|
this.mEntropySourceProvider = basicEntropySourceProvider;
|
|
}
|
|
|
|
// Token: 0x0600B1E5 RID: 45541 RVA: 0x0026BA8C File Offset: 0x00269C8C
|
|
[Token(Token = "0x600B1E5")]
|
|
[Address(RVA = "0x18A3880", Offset = "0x18A2680", VA = "0x1818A3880")]
|
|
public SP800SecureRandomBuilder(SecureRandom entropySource, bool predictionResistant)
|
|
{
|
|
this.mSecurityStrength = (int)((ulong)256L);
|
|
this.mEntropyBitsRequired = (int)((ulong)256L);
|
|
base..ctor();
|
|
this.mRandom = entropySource;
|
|
BasicEntropySourceProvider basicEntropySourceProvider = new BasicEntropySourceProvider(entropySource, predictionResistant);
|
|
this.mEntropySourceProvider = basicEntropySourceProvider;
|
|
}
|
|
|
|
// Token: 0x0600B1E6 RID: 45542 RVA: 0x0026BAD0 File Offset: 0x00269CD0
|
|
[Token(Token = "0x600B1E6")]
|
|
[Address(RVA = "0x18A3840", Offset = "0x18A2640", VA = "0x1818A3840")]
|
|
public SP800SecureRandomBuilder(IEntropySourceProvider entropySourceProvider)
|
|
{
|
|
this.mSecurityStrength = (int)((ulong)256L);
|
|
this.mEntropyBitsRequired = (int)((ulong)256L);
|
|
base..ctor();
|
|
this.mRandom = (ulong)0L;
|
|
this.mEntropySourceProvider = entropySourceProvider;
|
|
}
|
|
|
|
// Token: 0x0600B1E7 RID: 45543 RVA: 0x0026BB10 File Offset: 0x00269D10
|
|
[Token(Token = "0x600B1E7")]
|
|
[Address(RVA = "0x1872000", Offset = "0x1870E00", VA = "0x181872000")]
|
|
public SP800SecureRandomBuilder SetPersonalizationString(byte[] personalizationString)
|
|
{
|
|
this.mPersonalizationString = personalizationString;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600B1E8 RID: 45544 RVA: 0x0026BB28 File Offset: 0x00269D28
|
|
[Token(Token = "0x600B1E8")]
|
|
[Address(RVA = "0x18A3770", Offset = "0x18A2570", VA = "0x1818A3770")]
|
|
public SP800SecureRandomBuilder SetSecurityStrength(int securityStrength)
|
|
{
|
|
this.mSecurityStrength = securityStrength;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600B1E9 RID: 45545 RVA: 0x0026BB40 File Offset: 0x00269D40
|
|
[Token(Token = "0x600B1E9")]
|
|
[Address(RVA = "0x18A3760", Offset = "0x18A2560", VA = "0x1818A3760")]
|
|
public SP800SecureRandomBuilder SetEntropyBitsRequired(int entropyBitsRequired)
|
|
{
|
|
this.mEntropyBitsRequired = entropyBitsRequired;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600B1EA RID: 45546 RVA: 0x0026BB58 File Offset: 0x00269D58
|
|
[Token(Token = "0x600B1EA")]
|
|
[Address(RVA = "0x18A3670", Offset = "0x18A2470", VA = "0x1818A3670")]
|
|
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: 0x0600B1EB RID: 45547 RVA: 0x0026BBA0 File Offset: 0x00269DA0
|
|
[Token(Token = "0x600B1EB")]
|
|
[Address(RVA = "0x18A3480", Offset = "0x18A2280", VA = "0x1818A3480")]
|
|
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: 0x0600B1EC RID: 45548 RVA: 0x0026BBF0 File Offset: 0x00269DF0
|
|
[Token(Token = "0x600B1EC")]
|
|
[Address(RVA = "0x18A3580", Offset = "0x18A2380", VA = "0x1818A3580")]
|
|
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: 0x0400714B RID: 29003
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400714B")]
|
|
private readonly SecureRandom mRandom;
|
|
|
|
// Token: 0x0400714C RID: 29004
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400714C")]
|
|
private readonly IEntropySourceProvider mEntropySourceProvider;
|
|
|
|
// Token: 0x0400714D RID: 29005
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400714D")]
|
|
private byte[] mPersonalizationString;
|
|
|
|
// Token: 0x0400714E RID: 29006
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400714E")]
|
|
private int mSecurityStrength;
|
|
|
|
// Token: 0x0400714F RID: 29007
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x400714F")]
|
|
private int mEntropyBitsRequired;
|
|
|
|
// Token: 0x02001BCA RID: 7114
|
|
[Token(Token = "0x2001BCA")]
|
|
private class HashDrbgProvider : IDrbgProvider
|
|
{
|
|
// Token: 0x0600B1ED RID: 45549 RVA: 0x0026BC38 File Offset: 0x00269E38
|
|
[Token(Token = "0x600B1ED")]
|
|
[Address(RVA = "0x18986F0", Offset = "0x18974F0", VA = "0x1818986F0")]
|
|
public HashDrbgProvider(IDigest digest, byte[] nonce, byte[] personalizationString, int securityStrength)
|
|
{
|
|
this.mDigest = digest;
|
|
this.mPersonalizationString = personalizationString;
|
|
this.mSecurityStrength = 0;
|
|
this.mNonce = nonce;
|
|
}
|
|
|
|
// Token: 0x0600B1EE RID: 45550 RVA: 0x0026BC68 File Offset: 0x00269E68
|
|
[Token(Token = "0x600B1EE")]
|
|
[Address(RVA = "0x1899D70", Offset = "0x1898B70", VA = "0x181899D70", Slot = "4")]
|
|
public ISP80090Drbg Get(IEntropySource entropySource)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B1EE)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x04007150 RID: 29008
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007150")]
|
|
private readonly IDigest mDigest;
|
|
|
|
// Token: 0x04007151 RID: 29009
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007151")]
|
|
private readonly byte[] mNonce;
|
|
|
|
// Token: 0x04007152 RID: 29010
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007152")]
|
|
private readonly byte[] mPersonalizationString;
|
|
|
|
// Token: 0x04007153 RID: 29011
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007153")]
|
|
private readonly int mSecurityStrength;
|
|
}
|
|
|
|
// Token: 0x02001BCB RID: 7115
|
|
[Token(Token = "0x2001BCB")]
|
|
private class HMacDrbgProvider : IDrbgProvider
|
|
{
|
|
// Token: 0x0600B1EF RID: 45551 RVA: 0x0026BC9C File Offset: 0x00269E9C
|
|
[Token(Token = "0x600B1EF")]
|
|
[Address(RVA = "0x18986F0", Offset = "0x18974F0", VA = "0x1818986F0")]
|
|
public HMacDrbgProvider(IMac hMac, byte[] nonce, byte[] personalizationString, int securityStrength)
|
|
{
|
|
this.mHMac = hMac;
|
|
this.mPersonalizationString = personalizationString;
|
|
this.mSecurityStrength = 0;
|
|
this.mNonce = nonce;
|
|
}
|
|
|
|
// Token: 0x0600B1F0 RID: 45552 RVA: 0x0026BCCC File Offset: 0x00269ECC
|
|
[Token(Token = "0x600B1F0")]
|
|
[Address(RVA = "0x1898650", Offset = "0x1897450", VA = "0x181898650", Slot = "4")]
|
|
public ISP80090Drbg Get(IEntropySource entropySource)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B1F0)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x04007154 RID: 29012
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007154")]
|
|
private readonly IMac mHMac;
|
|
|
|
// Token: 0x04007155 RID: 29013
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007155")]
|
|
private readonly byte[] mNonce;
|
|
|
|
// Token: 0x04007156 RID: 29014
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007156")]
|
|
private readonly byte[] mPersonalizationString;
|
|
|
|
// Token: 0x04007157 RID: 29015
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007157")]
|
|
private readonly int mSecurityStrength;
|
|
}
|
|
|
|
// Token: 0x02001BCC RID: 7116
|
|
[Token(Token = "0x2001BCC")]
|
|
private class CtrDrbgProvider : IDrbgProvider
|
|
{
|
|
// Token: 0x0600B1F1 RID: 45553 RVA: 0x0026BD00 File Offset: 0x00269F00
|
|
[Token(Token = "0x600B1F1")]
|
|
[Address(RVA = "0x1891260", Offset = "0x1890060", VA = "0x181891260")]
|
|
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: 0x0600B1F2 RID: 45554 RVA: 0x0026BD38 File Offset: 0x00269F38
|
|
[Token(Token = "0x600B1F2")]
|
|
[Address(RVA = "0x18911B0", Offset = "0x188FFB0", VA = "0x1818911B0", Slot = "4")]
|
|
public ISP80090Drbg Get(IEntropySource entropySource)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B1F2)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x04007158 RID: 29016
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007158")]
|
|
private readonly IBlockCipher mBlockCipher;
|
|
|
|
// Token: 0x04007159 RID: 29017
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007159")]
|
|
private readonly int mKeySizeInBits;
|
|
|
|
// Token: 0x0400715A RID: 29018
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400715A")]
|
|
private readonly byte[] mNonce;
|
|
|
|
// Token: 0x0400715B RID: 29019
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400715B")]
|
|
private readonly byte[] mPersonalizationString;
|
|
|
|
// Token: 0x0400715C RID: 29020
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400715C")]
|
|
private readonly int mSecurityStrength;
|
|
}
|
|
}
|
|
}
|