141 lines
6.5 KiB
C#
141 lines
6.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests
|
|
{
|
|
// Token: 0x0200171F RID: 5919
|
|
[Token(Token = "0x200171F")]
|
|
[StructLayout(3)]
|
|
public class ShortenedDigest : IDigest
|
|
{
|
|
// Token: 0x06009FE9 RID: 40937 RVA: 0x00251108 File Offset: 0x0024F308
|
|
[Token(Token = "0x6009FE9")]
|
|
[Address(RVA = "0x2251280", Offset = "0x224FC80", VA = "0x182251280")]
|
|
public ShortenedDigest(IDigest baseDigest, int length)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009FE9)
|
|
|
|
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: 0x17001923 RID: 6435
|
|
// (get) Token: 0x06009FEA RID: 40938 RVA: 0x00251138 File Offset: 0x0024F338
|
|
[Token(Token = "0x17001923")]
|
|
public string AlgorithmName
|
|
{
|
|
[Token(Token = "0x6009FEA")]
|
|
[Address(RVA = "0x2251360", Offset = "0x224FD60", VA = "0x182251360", 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: 0x06009FEB RID: 40939 RVA: 0x002511A8 File Offset: 0x0024F3A8
|
|
[Token(Token = "0x6009FEB")]
|
|
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0", Slot = "5")]
|
|
public int GetDigestSize()
|
|
{
|
|
return this.length;
|
|
}
|
|
|
|
// Token: 0x06009FEC RID: 40940 RVA: 0x002511BC File Offset: 0x0024F3BC
|
|
[Token(Token = "0x6009FEC")]
|
|
[Address(RVA = "0x2251220", Offset = "0x224FC20", VA = "0x182251220", Slot = "7")]
|
|
public void Update(byte input)
|
|
{
|
|
IDigest digest = this.baseDigest;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009FED RID: 40941 RVA: 0x002511D8 File Offset: 0x0024F3D8
|
|
[Token(Token = "0x6009FED")]
|
|
[Address(RVA = "0x2251030", Offset = "0x224FA30", VA = "0x182251030", Slot = "8")]
|
|
public void BlockUpdate(byte[] input, int inOff, int length)
|
|
{
|
|
IDigest digest = this.baseDigest;
|
|
}
|
|
|
|
// Token: 0x06009FEE RID: 40942 RVA: 0x002511F4 File Offset: 0x0024F3F4
|
|
[Token(Token = "0x6009FEE")]
|
|
[Address(RVA = "0x22510B0", Offset = "0x224FAB0", VA = "0x1822510B0", 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: 0x06009FEF RID: 40943 RVA: 0x0025123C File Offset: 0x0024F43C
|
|
[Token(Token = "0x6009FEF")]
|
|
[Address(RVA = "0x22511D0", Offset = "0x224FBD0", VA = "0x1822511D0", Slot = "10")]
|
|
public void Reset()
|
|
{
|
|
IDigest digest = this.baseDigest;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009FF0 RID: 40944 RVA: 0x00251258 File Offset: 0x0024F458
|
|
[Token(Token = "0x6009FF0")]
|
|
[Address(RVA = "0x2251180", Offset = "0x224FB80", VA = "0x182251180", Slot = "6")]
|
|
public int GetByteLength()
|
|
{
|
|
IDigest digest = this.baseDigest;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040068FF RID: 26879
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40068FF")]
|
|
private IDigest baseDigest;
|
|
|
|
// Token: 0x04006900 RID: 26880
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006900")]
|
|
private int length;
|
|
}
|
|
}
|