365 lines
20 KiB
C#
365 lines
20 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng.Drbg;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng
|
|
{
|
|
// Token: 0x020015EC RID: 5612
|
|
[Token(Token = "0x20015EC")]
|
|
[StructLayout(3)]
|
|
public class SP800SecureRandomBuilder
|
|
{
|
|
// Token: 0x0600960A RID: 38410 RVA: 0x00214408 File Offset: 0x00212608
|
|
[Token(Token = "0x600960A")]
|
|
[Address(RVA = "0x1E4BF40", Offset = "0x1E4A940", VA = "0x181E4BF40")]
|
|
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: 0x0600960B RID: 38411 RVA: 0x00214454 File Offset: 0x00212654
|
|
[Token(Token = "0x600960B")]
|
|
[Address(RVA = "0x1E4C040", Offset = "0x1E4AA40", VA = "0x181E4C040")]
|
|
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: 0x0600960C RID: 38412 RVA: 0x00214498 File Offset: 0x00212698
|
|
[Token(Token = "0x600960C")]
|
|
[Address(RVA = "0x1E4C000", Offset = "0x1E4AA00", VA = "0x181E4C000")]
|
|
public SP800SecureRandomBuilder(IEntropySourceProvider entropySourceProvider)
|
|
{
|
|
this.mSecurityStrength = (int)((ulong)256L);
|
|
this.mEntropyBitsRequired = (int)((ulong)256L);
|
|
base..ctor();
|
|
this.mRandom = (ulong)0L;
|
|
this.mEntropySourceProvider = entropySourceProvider;
|
|
}
|
|
|
|
// Token: 0x0600960D RID: 38413 RVA: 0x002144D8 File Offset: 0x002126D8
|
|
[Token(Token = "0x600960D")]
|
|
[Address(RVA = "0x665670", Offset = "0x664070", VA = "0x180665670")]
|
|
public SP800SecureRandomBuilder SetPersonalizationString(byte[] personalizationString)
|
|
{
|
|
this.mPersonalizationString = personalizationString;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600960E RID: 38414 RVA: 0x002144F0 File Offset: 0x002126F0
|
|
[Token(Token = "0x600960E")]
|
|
[Address(RVA = "0x1E4BF30", Offset = "0x1E4A930", VA = "0x181E4BF30")]
|
|
public SP800SecureRandomBuilder SetSecurityStrength(int securityStrength)
|
|
{
|
|
this.mSecurityStrength = securityStrength;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600960F RID: 38415 RVA: 0x00214508 File Offset: 0x00212708
|
|
[Token(Token = "0x600960F")]
|
|
[Address(RVA = "0x1E4BF20", Offset = "0x1E4A920", VA = "0x181E4BF20")]
|
|
public SP800SecureRandomBuilder SetEntropyBitsRequired(int entropyBitsRequired)
|
|
{
|
|
this.mEntropyBitsRequired = entropyBitsRequired;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x06009610 RID: 38416 RVA: 0x00214520 File Offset: 0x00212720
|
|
[Token(Token = "0x6009610")]
|
|
[Address(RVA = "0x1E4BE30", Offset = "0x1E4A830", VA = "0x181E4BE30")]
|
|
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: 0x06009611 RID: 38417 RVA: 0x00214568 File Offset: 0x00212768
|
|
[Token(Token = "0x6009611")]
|
|
[Address(RVA = "0x1E4BC40", Offset = "0x1E4A640", VA = "0x181E4BC40")]
|
|
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: 0x06009612 RID: 38418 RVA: 0x002145B8 File Offset: 0x002127B8
|
|
[Token(Token = "0x6009612")]
|
|
[Address(RVA = "0x1E4BD40", Offset = "0x1E4A740", VA = "0x181E4BD40")]
|
|
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: 0x04006308 RID: 25352
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006308")]
|
|
private readonly SecureRandom mRandom;
|
|
|
|
// Token: 0x04006309 RID: 25353
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006309")]
|
|
private readonly IEntropySourceProvider mEntropySourceProvider;
|
|
|
|
// Token: 0x0400630A RID: 25354
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400630A")]
|
|
private byte[] mPersonalizationString;
|
|
|
|
// Token: 0x0400630B RID: 25355
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400630B")]
|
|
private int mSecurityStrength;
|
|
|
|
// Token: 0x0400630C RID: 25356
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x400630C")]
|
|
private int mEntropyBitsRequired;
|
|
|
|
// Token: 0x020015ED RID: 5613
|
|
[Token(Token = "0x20015ED")]
|
|
private class HashDrbgProvider : IDrbgProvider
|
|
{
|
|
// Token: 0x06009613 RID: 38419 RVA: 0x00214600 File Offset: 0x00212800
|
|
[Token(Token = "0x6009613")]
|
|
[Address(RVA = "0x683A80", Offset = "0x682480", VA = "0x180683A80")]
|
|
public HashDrbgProvider(IDigest digest, byte[] nonce, byte[] personalizationString, int securityStrength)
|
|
{
|
|
this.mDigest = digest;
|
|
this.mPersonalizationString = personalizationString;
|
|
this.mSecurityStrength = 0;
|
|
this.mNonce = nonce;
|
|
}
|
|
|
|
// Token: 0x06009614 RID: 38420 RVA: 0x00214630 File Offset: 0x00212830
|
|
[Token(Token = "0x6009614")]
|
|
[Address(RVA = "0x1E42470", Offset = "0x1E40E70", VA = "0x181E42470", Slot = "4")]
|
|
public ISP80090Drbg Get(IEntropySource entropySource)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009614)
|
|
|
|
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: 0x0400630D RID: 25357
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400630D")]
|
|
private readonly IDigest mDigest;
|
|
|
|
// Token: 0x0400630E RID: 25358
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400630E")]
|
|
private readonly byte[] mNonce;
|
|
|
|
// Token: 0x0400630F RID: 25359
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400630F")]
|
|
private readonly byte[] mPersonalizationString;
|
|
|
|
// Token: 0x04006310 RID: 25360
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006310")]
|
|
private readonly int mSecurityStrength;
|
|
}
|
|
|
|
// Token: 0x020015EE RID: 5614
|
|
[Token(Token = "0x20015EE")]
|
|
private class HMacDrbgProvider : IDrbgProvider
|
|
{
|
|
// Token: 0x06009615 RID: 38421 RVA: 0x00214664 File Offset: 0x00212864
|
|
[Token(Token = "0x6009615")]
|
|
[Address(RVA = "0x683A80", Offset = "0x682480", VA = "0x180683A80")]
|
|
public HMacDrbgProvider(IMac hMac, byte[] nonce, byte[] personalizationString, int securityStrength)
|
|
{
|
|
this.mHMac = hMac;
|
|
this.mPersonalizationString = personalizationString;
|
|
this.mSecurityStrength = 0;
|
|
this.mNonce = nonce;
|
|
}
|
|
|
|
// Token: 0x06009616 RID: 38422 RVA: 0x00214694 File Offset: 0x00212894
|
|
[Token(Token = "0x6009616")]
|
|
[Address(RVA = "0x1E40DA0", Offset = "0x1E3F7A0", VA = "0x181E40DA0", Slot = "4")]
|
|
public ISP80090Drbg Get(IEntropySource entropySource)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009616)
|
|
|
|
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: 0x04006311 RID: 25361
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006311")]
|
|
private readonly IMac mHMac;
|
|
|
|
// Token: 0x04006312 RID: 25362
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006312")]
|
|
private readonly byte[] mNonce;
|
|
|
|
// Token: 0x04006313 RID: 25363
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006313")]
|
|
private readonly byte[] mPersonalizationString;
|
|
|
|
// Token: 0x04006314 RID: 25364
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006314")]
|
|
private readonly int mSecurityStrength;
|
|
}
|
|
|
|
// Token: 0x020015EF RID: 5615
|
|
[Token(Token = "0x20015EF")]
|
|
private class CtrDrbgProvider : IDrbgProvider
|
|
{
|
|
// Token: 0x06009617 RID: 38423 RVA: 0x002146C8 File Offset: 0x002128C8
|
|
[Token(Token = "0x6009617")]
|
|
[Address(RVA = "0x1E39A40", Offset = "0x1E38440", VA = "0x181E39A40")]
|
|
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: 0x06009618 RID: 38424 RVA: 0x00214700 File Offset: 0x00212900
|
|
[Token(Token = "0x6009618")]
|
|
[Address(RVA = "0x1E39990", Offset = "0x1E38390", VA = "0x181E39990", Slot = "4")]
|
|
public ISP80090Drbg Get(IEntropySource entropySource)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009618)
|
|
|
|
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: 0x04006315 RID: 25365
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006315")]
|
|
private readonly IBlockCipher mBlockCipher;
|
|
|
|
// Token: 0x04006316 RID: 25366
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006316")]
|
|
private readonly int mKeySizeInBits;
|
|
|
|
// Token: 0x04006317 RID: 25367
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006317")]
|
|
private readonly byte[] mNonce;
|
|
|
|
// Token: 0x04006318 RID: 25368
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006318")]
|
|
private readonly byte[] mPersonalizationString;
|
|
|
|
// Token: 0x04006319 RID: 25369
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4006319")]
|
|
private readonly int mSecurityStrength;
|
|
}
|
|
}
|
|
}
|