139 lines
6.4 KiB
C#
139 lines
6.4 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests
|
|
{
|
|
// Token: 0x02001DDC RID: 7644
|
|
[Token(Token = "0x2001DDC")]
|
|
public class ShortenedDigest : IDigest
|
|
{
|
|
// Token: 0x0600BF91 RID: 49041 RVA: 0x002B1AB0 File Offset: 0x002AFCB0
|
|
[Token(Token = "0x600BF91")]
|
|
[Address(RVA = "0x290FEA0", Offset = "0x290EEA0", VA = "0x18290FEA0")]
|
|
public ShortenedDigest(IDigest baseDigest, int length)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600BF91)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests.ShortenedDigest::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest,System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_19:
|
|
stloc:ArgumentNullException(var_0_23, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("baseDigest")))
|
|
}
|
|
|
|
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: 0x17001DC1 RID: 7617
|
|
// (get) Token: 0x0600BF92 RID: 49042 RVA: 0x002B1AE0 File Offset: 0x002AFCE0
|
|
[Token(Token = "0x17001DC1")]
|
|
public string AlgorithmName
|
|
{
|
|
[Token(Token = "0x600BF92")]
|
|
[Address(RVA = "0x290FF80", Offset = "0x290EF80", VA = "0x18290FF80", Slot = "4")]
|
|
get
|
|
{
|
|
object[] array = new object[4];
|
|
IDigest digest = this.baseDigest;
|
|
if (array != 0)
|
|
{
|
|
}
|
|
array[0] = array;
|
|
if ("(" != 0)
|
|
{
|
|
}
|
|
array[1] = "(";
|
|
int num = this.length;
|
|
if (num != 0)
|
|
{
|
|
}
|
|
array[2] = num;
|
|
if (")" != 0)
|
|
{
|
|
}
|
|
array[3] = ")";
|
|
return string.Concat(array);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BF93 RID: 49043 RVA: 0x002B1B50 File Offset: 0x002AFD50
|
|
[Token(Token = "0x600BF93")]
|
|
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540", Slot = "5")]
|
|
public int GetDigestSize()
|
|
{
|
|
return this.length;
|
|
}
|
|
|
|
// Token: 0x0600BF94 RID: 49044 RVA: 0x002B1B64 File Offset: 0x002AFD64
|
|
[Token(Token = "0x600BF94")]
|
|
[Address(RVA = "0x290FE40", Offset = "0x290EE40", VA = "0x18290FE40", Slot = "7")]
|
|
public void Update(byte input)
|
|
{
|
|
IDigest digest = this.baseDigest;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600BF95 RID: 49045 RVA: 0x002B1B80 File Offset: 0x002AFD80
|
|
[Token(Token = "0x600BF95")]
|
|
[Address(RVA = "0x290FC50", Offset = "0x290EC50", VA = "0x18290FC50", Slot = "8")]
|
|
public void BlockUpdate(byte[] input, int inOff, int length)
|
|
{
|
|
IDigest digest = this.baseDigest;
|
|
}
|
|
|
|
// Token: 0x0600BF96 RID: 49046 RVA: 0x002B1B9C File Offset: 0x002AFD9C
|
|
[Token(Token = "0x600BF96")]
|
|
[Address(RVA = "0x290FCD0", Offset = "0x290ECD0", VA = "0x18290FCD0", Slot = "9")]
|
|
public int DoFinal(byte[] output, int outOff)
|
|
{
|
|
IDigest digest = this.baseDigest;
|
|
byte[] array = new byte[0];
|
|
IDigest digest2 = this.baseDigest;
|
|
int num = this.length;
|
|
int num2 = 0;
|
|
Array.Copy(array, num2, output, outOff, num);
|
|
return this.length;
|
|
}
|
|
|
|
// Token: 0x0600BF97 RID: 49047 RVA: 0x002B1BE4 File Offset: 0x002AFDE4
|
|
[Token(Token = "0x600BF97")]
|
|
[Address(RVA = "0x290FDF0", Offset = "0x290EDF0", VA = "0x18290FDF0", Slot = "10")]
|
|
public void Reset()
|
|
{
|
|
IDigest digest = this.baseDigest;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600BF98 RID: 49048 RVA: 0x002B1C00 File Offset: 0x002AFE00
|
|
[Token(Token = "0x600BF98")]
|
|
[Address(RVA = "0x290FDA0", Offset = "0x290EDA0", VA = "0x18290FDA0", Slot = "6")]
|
|
public int GetByteLength()
|
|
{
|
|
IDigest digest = this.baseDigest;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040078FB RID: 30971
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40078FB")]
|
|
private IDigest baseDigest;
|
|
|
|
// Token: 0x040078FC RID: 30972
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40078FC")]
|
|
private int length;
|
|
}
|
|
}
|