484 lines
21 KiB
C#
484 lines
21 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers
|
|
{
|
|
// Token: 0x02001C95 RID: 7317
|
|
[Token(Token = "0x2001C95")]
|
|
public class Iso9796d2Signer : ISignerWithRecovery, ISigner
|
|
{
|
|
// Token: 0x0600B51D RID: 46365 RVA: 0x00272404 File Offset: 0x00270604
|
|
[Token(Token = "0x600B51D")]
|
|
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680", Slot = "5")]
|
|
public byte[] GetRecoveredMessage()
|
|
{
|
|
return this.recoveredMessage;
|
|
}
|
|
|
|
// Token: 0x0600B51E RID: 46366 RVA: 0x00272418 File Offset: 0x00270618
|
|
[Token(Token = "0x600B51E")]
|
|
[Address(RVA = "0x2361D60", Offset = "0x2360D60", VA = "0x182361D60")]
|
|
public Iso9796d2Signer(IAsymmetricBlockCipher cipher, IDigest digest, bool isImplicit)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B51E)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers.Iso9796d2Signer::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IAsymmetricBlockCipher,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest,System.Boolean)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_3D:
|
|
stloc:ArgumentException(var_1_4C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("no valid trailer"), ldstr:string("digest")))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x0600B51F RID: 46367 RVA: 0x00272474 File Offset: 0x00270674
|
|
[Token(Token = "0x600B51F")]
|
|
[Address(RVA = "0x2361E60", Offset = "0x2360E60", VA = "0x182361E60")]
|
|
public Iso9796d2Signer(IAsymmetricBlockCipher cipher, IDigest digest)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B51F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers.Iso9796d2Signer::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IAsymmetricBlockCipher,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_2C:
|
|
stloc:ArgumentException(var_1_3B, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("no valid trailer"), ldstr:string("digest")))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x17001C87 RID: 7303
|
|
// (get) Token: 0x0600B520 RID: 46368 RVA: 0x002724BC File Offset: 0x002706BC
|
|
[Token(Token = "0x17001C87")]
|
|
public virtual string AlgorithmName
|
|
{
|
|
[Token(Token = "0x600B520")]
|
|
[Address(RVA = "0x2361F50", Offset = "0x2360F50", VA = "0x182361F50", Slot = "14")]
|
|
get
|
|
{
|
|
IDigest digest = this.digest;
|
|
return 0 + "withISO9796-2S1";
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B521 RID: 46369 RVA: 0x002724E4 File Offset: 0x002706E4
|
|
[Token(Token = "0x600B521")]
|
|
[Address(RVA = "0x2360DD0", Offset = "0x235FDD0", VA = "0x182360DD0", Slot = "15")]
|
|
public virtual void Init(bool forSigning, ICipherParameters parameters)
|
|
{
|
|
do
|
|
{
|
|
if (parameters == 0)
|
|
{
|
|
}
|
|
}
|
|
while (parameters == 0);
|
|
IAsymmetricBlockCipher asymmetricBlockCipher = this.cipher;
|
|
int num = 0;
|
|
int num2;
|
|
this.keyBits = num2;
|
|
num2 += 7;
|
|
num += num2;
|
|
byte[] array = new byte[num];
|
|
this.block = array;
|
|
if (this.trailer != 188)
|
|
{
|
|
IDigest digest = this.digest;
|
|
int num3 = array.Length;
|
|
num3 -= array;
|
|
num3 += -3;
|
|
}
|
|
IDigest digest2 = this.digest;
|
|
int num4 = array.Length;
|
|
num4 -= array;
|
|
num4 += -2;
|
|
byte[] array2 = new byte[num4];
|
|
this.mBuf = array2;
|
|
string algorithmName = ((ISigner)this).AlgorithmName;
|
|
}
|
|
|
|
// Token: 0x0600B522 RID: 46370 RVA: 0x0027258C File Offset: 0x0027078C
|
|
[Token(Token = "0x600B522")]
|
|
[Address(RVA = "0x2360F60", Offset = "0x235FF60", VA = "0x182360F60")]
|
|
private bool IsSameAs(byte[] a, byte[] b)
|
|
{
|
|
byte[] array = this.mBuf;
|
|
int num = this.messageLength;
|
|
int num2 = array.Length;
|
|
int length = b.Length;
|
|
if (num == length)
|
|
{
|
|
num2 = length;
|
|
int length2 = b.Length;
|
|
int num3 = 0;
|
|
if (num2 != 0)
|
|
{
|
|
num3++;
|
|
while (num3 != num2)
|
|
{
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600B523 RID: 46371 RVA: 0x002725E0 File Offset: 0x002707E0
|
|
[Token(Token = "0x600B523")]
|
|
[Address(RVA = "0x2342160", Offset = "0x2341160", VA = "0x182342160")]
|
|
private void ClearBlock(byte[] block)
|
|
{
|
|
int length = block.Length;
|
|
int num = 0;
|
|
Array.Clear(block, num, length);
|
|
}
|
|
|
|
// Token: 0x0600B524 RID: 46372 RVA: 0x00272604 File Offset: 0x00270804
|
|
[Token(Token = "0x600B524")]
|
|
[Address(RVA = "0x2361140", Offset = "0x2360140", VA = "0x182361140", Slot = "16")]
|
|
public virtual void UpdateWithRecoveredMessage(byte[] signature)
|
|
{
|
|
int length;
|
|
for (;;)
|
|
{
|
|
IAsymmetricBlockCipher asymmetricBlockCipher = this.cipher;
|
|
length = signature.Length;
|
|
uint num;
|
|
if (length == 192 && num == (uint)15)
|
|
{
|
|
if (num != (uint)0)
|
|
{
|
|
if (IsoTrailers.NoTrailerAvailable(this.digest))
|
|
{
|
|
continue;
|
|
}
|
|
int num2 = IsoTrailers.GetTrailer(this.digest);
|
|
}
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
if (num4 != asymmetricBlockCipher && num != (uint)15)
|
|
{
|
|
num3++;
|
|
}
|
|
IDigest digest = this.digest;
|
|
uint num5;
|
|
num5 -= (uint)num3;
|
|
uint num6;
|
|
num5 -= num6;
|
|
num5 -= 1U;
|
|
if (num5 > (uint)0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
this.fullMessage = false;
|
|
this.fullMessage = true;
|
|
byte[] array = new byte[1];
|
|
this.recoveredMessage = array;
|
|
int length2 = array.Length;
|
|
byte[] array2 = this.recoveredMessage;
|
|
this.preSig = signature;
|
|
this.preBlock = length;
|
|
IDigest digest2 = this.digest;
|
|
int length3 = array2.Length;
|
|
int length4 = this.recoveredMessage.Length;
|
|
byte[] array3 = this.mBuf;
|
|
this.messageLength = length4;
|
|
}
|
|
|
|
// Token: 0x0600B525 RID: 46373 RVA: 0x00272718 File Offset: 0x00270918
|
|
[Token(Token = "0x600B525")]
|
|
[Address(RVA = "0x2361530", Offset = "0x2360530", VA = "0x182361530", Slot = "17")]
|
|
public virtual void Update(byte input)
|
|
{
|
|
IDigest digest = this.digest;
|
|
byte[] array = this.mBuf;
|
|
int num = this.messageLength;
|
|
int length = array.Length;
|
|
if (num < length)
|
|
{
|
|
}
|
|
num++;
|
|
this.messageLength = num;
|
|
}
|
|
|
|
// Token: 0x0600B526 RID: 46374 RVA: 0x00272758 File Offset: 0x00270958
|
|
[Token(Token = "0x600B526")]
|
|
[Address(RVA = "0x2360990", Offset = "0x235F990", VA = "0x182360990", Slot = "18")]
|
|
public virtual void BlockUpdate(byte[] input, int inOff, int length)
|
|
{
|
|
if (length > 0)
|
|
{
|
|
int length2 = this.mBuf.Length;
|
|
if (this.messageLength < length2)
|
|
{
|
|
}
|
|
}
|
|
IDigest digest = this.digest;
|
|
}
|
|
|
|
// Token: 0x0600B527 RID: 46375 RVA: 0x00272790 File Offset: 0x00270990
|
|
[Token(Token = "0x600B527")]
|
|
[Address(RVA = "0x2361030", Offset = "0x2360030", VA = "0x182361030", Slot = "19")]
|
|
public virtual void Reset()
|
|
{
|
|
IDigest digest = this.digest;
|
|
byte[] array = this.mBuf;
|
|
int num = 0;
|
|
this.messageLength = num;
|
|
int length = array.Length;
|
|
int num2 = 0;
|
|
Array.Clear(array, num2, length);
|
|
byte[] array2 = this.recoveredMessage;
|
|
if (array2 != 0)
|
|
{
|
|
int length2 = array2.Length;
|
|
int num3 = 0;
|
|
Array.Clear(array2, num3, length2);
|
|
}
|
|
this.recoveredMessage = num;
|
|
this.fullMessage = num != 0;
|
|
if (this.preSig != num)
|
|
{
|
|
byte[] array3 = this.preBlock;
|
|
this.preSig = num;
|
|
int length3 = array3.Length;
|
|
int num4 = 0;
|
|
Array.Clear(array3, num4, length3);
|
|
this.preBlock = num;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B528 RID: 46376 RVA: 0x00272838 File Offset: 0x00270A38
|
|
[Token(Token = "0x600B528")]
|
|
[Address(RVA = "0x2360A70", Offset = "0x235FA70", VA = "0x182360A70", Slot = "20")]
|
|
public virtual byte[] GenerateSignature()
|
|
{
|
|
IDigest digest = this.digest;
|
|
byte[] array = this.block;
|
|
if (this.trailer != 188)
|
|
{
|
|
int length = array.Length;
|
|
IDigest digest2 = this.digest;
|
|
int length2 = this.block.Length;
|
|
int num = this.trailer;
|
|
int length3 = this.block.Length;
|
|
int num2 = this.trailer;
|
|
int num3 = length3 - 1;
|
|
}
|
|
int num4 = array.Length;
|
|
IDigest digest3 = this.digest;
|
|
int num5 = this.block.Length;
|
|
int num6 = num5 - 1;
|
|
int num7 = this.messageLength;
|
|
uint num8;
|
|
num5 += (int)num8;
|
|
num5 += 7;
|
|
num5 += (int)num8;
|
|
num7 -= num5;
|
|
num4 -= num7;
|
|
byte[] array2 = this.block;
|
|
int num9 = 0;
|
|
Array.Copy(this.mBuf, num9, array2, num4, num7);
|
|
int num10 = num4 - 1;
|
|
byte[] array3 = this.block;
|
|
byte[] array4 = this.block;
|
|
byte[] array5 = this.block;
|
|
while (num10 != array5.Length)
|
|
{
|
|
}
|
|
byte[] array6 = this.block;
|
|
byte[] array7 = this.block;
|
|
byte[] array8 = this.block;
|
|
byte[] array9 = this.block;
|
|
IAsymmetricBlockCipher asymmetricBlockCipher = this.cipher;
|
|
int length4 = array9.Length;
|
|
byte[] array10 = this.mBuf;
|
|
this.messageLength = (int)((ulong)0L);
|
|
int length5 = array10.Length;
|
|
int num11 = 0;
|
|
Array.Clear(array10, num11, length5);
|
|
byte[] array11 = this.block;
|
|
int length6 = array11.Length;
|
|
int num12 = 0;
|
|
Array.Clear(array11, num12, length6);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600B529 RID: 46377 RVA: 0x002729BC File Offset: 0x00270BBC
|
|
[Token(Token = "0x600B529")]
|
|
[Address(RVA = "0x23615D0", Offset = "0x23605D0", VA = "0x1823615D0", Slot = "21")]
|
|
public virtual bool VerifySignature(byte[] signature)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B529)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers.Iso9796d2Signer::VerifySignature(System.Byte[])
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_21E:
|
|
stloc:InvalidOperationException(var_42_22F, newobj:InvalidOperationException(InvalidOperationException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("signer initialised with wrong digest for trailer "), ldloc:InvalidOperationException[exp:object](var_41))))
|
|
}
|
|
|
|
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: 0x0600B52A RID: 46378 RVA: 0x00272BFC File Offset: 0x00270DFC
|
|
[Token(Token = "0x600B52A")]
|
|
[Address(RVA = "0x23610F0", Offset = "0x23600F0", VA = "0x1823610F0")]
|
|
private bool ReturnFalse(byte[] block)
|
|
{
|
|
this.messageLength = (int)((ulong)0L);
|
|
byte[] array = this.mBuf;
|
|
int length = array.Length;
|
|
int num = 0;
|
|
Array.Clear(array, num, length);
|
|
int length2 = block.Length;
|
|
int num2 = 0;
|
|
Array.Clear(block, num2, length2);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600B52B RID: 46379 RVA: 0x00272C48 File Offset: 0x00270E48
|
|
[Token(Token = "0x600B52B")]
|
|
[Address(RVA = "0x5AC5A0", Offset = "0x5AB5A0", VA = "0x1805AC5A0", Slot = "22")]
|
|
public virtual bool HasFullMessage()
|
|
{
|
|
return this.fullMessage;
|
|
}
|
|
|
|
// Token: 0x0400729E RID: 29342
|
|
[Token(Token = "0x400729E")]
|
|
[Obsolete]
|
|
public const int TrailerImplicit = 188;
|
|
|
|
// Token: 0x0400729F RID: 29343
|
|
[Token(Token = "0x400729F")]
|
|
[Obsolete]
|
|
public const int TrailerRipeMD160 = 12748;
|
|
|
|
// Token: 0x040072A0 RID: 29344
|
|
[Token(Token = "0x40072A0")]
|
|
[Obsolete]
|
|
public const int TrailerRipeMD128 = 13004;
|
|
|
|
// Token: 0x040072A1 RID: 29345
|
|
[Token(Token = "0x40072A1")]
|
|
[Obsolete]
|
|
public const int TrailerSha1 = 13260;
|
|
|
|
// Token: 0x040072A2 RID: 29346
|
|
[Token(Token = "0x40072A2")]
|
|
[Obsolete]
|
|
public const int TrailerSha256 = 13516;
|
|
|
|
// Token: 0x040072A3 RID: 29347
|
|
[Token(Token = "0x40072A3")]
|
|
[Obsolete]
|
|
public const int TrailerSha512 = 13772;
|
|
|
|
// Token: 0x040072A4 RID: 29348
|
|
[Token(Token = "0x40072A4")]
|
|
[Obsolete]
|
|
public const int TrailerSha384 = 14028;
|
|
|
|
// Token: 0x040072A5 RID: 29349
|
|
[Token(Token = "0x40072A5")]
|
|
[Obsolete]
|
|
public const int TrailerWhirlpool = 14284;
|
|
|
|
// Token: 0x040072A6 RID: 29350
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40072A6")]
|
|
private IDigest digest;
|
|
|
|
// Token: 0x040072A7 RID: 29351
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40072A7")]
|
|
private IAsymmetricBlockCipher cipher;
|
|
|
|
// Token: 0x040072A8 RID: 29352
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40072A8")]
|
|
private int trailer;
|
|
|
|
// Token: 0x040072A9 RID: 29353
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x40072A9")]
|
|
private int keyBits;
|
|
|
|
// Token: 0x040072AA RID: 29354
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40072AA")]
|
|
private byte[] block;
|
|
|
|
// Token: 0x040072AB RID: 29355
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40072AB")]
|
|
private byte[] mBuf;
|
|
|
|
// Token: 0x040072AC RID: 29356
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40072AC")]
|
|
private int messageLength;
|
|
|
|
// Token: 0x040072AD RID: 29357
|
|
[FieldOffset(Offset = "0x3C")]
|
|
[Token(Token = "0x40072AD")]
|
|
private bool fullMessage;
|
|
|
|
// Token: 0x040072AE RID: 29358
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40072AE")]
|
|
private byte[] recoveredMessage;
|
|
|
|
// Token: 0x040072AF RID: 29359
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40072AF")]
|
|
private byte[] preSig;
|
|
|
|
// Token: 0x040072B0 RID: 29360
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40072B0")]
|
|
private byte[] preBlock;
|
|
}
|
|
}
|