106 lines
5.1 KiB
C#
106 lines
5.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines
|
|
{
|
|
// Token: 0x020016BD RID: 5821
|
|
[Token(Token = "0x20016BD")]
|
|
[StructLayout(3)]
|
|
public class NullEngine : IBlockCipher
|
|
{
|
|
// Token: 0x06009C2C RID: 39980 RVA: 0x00236114 File Offset: 0x00234314
|
|
[Token(Token = "0x6009C2C")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public NullEngine()
|
|
{
|
|
this.Reset();
|
|
}
|
|
|
|
// Token: 0x06009C2D RID: 39981 RVA: 0x00236128 File Offset: 0x00234328
|
|
[Token(Token = "0x6009C2D")]
|
|
[Address(RVA = "0x53F760", Offset = "0x53E160", VA = "0x18053F760", Slot = "10")]
|
|
public virtual void Init(bool forEncryption, ICipherParameters parameters)
|
|
{
|
|
this.initialised = true;
|
|
}
|
|
|
|
// Token: 0x170018D8 RID: 6360
|
|
// (get) Token: 0x06009C2E RID: 39982 RVA: 0x0023613C File Offset: 0x0023433C
|
|
[Token(Token = "0x170018D8")]
|
|
public virtual string AlgorithmName
|
|
{
|
|
[Token(Token = "0x6009C2E")]
|
|
[Address(RVA = "0x2128B00", Offset = "0x2127500", VA = "0x182128B00", Slot = "11")]
|
|
get
|
|
{
|
|
return "Null";
|
|
}
|
|
}
|
|
|
|
// Token: 0x170018D9 RID: 6361
|
|
// (get) Token: 0x06009C2F RID: 39983 RVA: 0x00236150 File Offset: 0x00234350
|
|
[Token(Token = "0x170018D9")]
|
|
public virtual bool IsPartialBlockOkay
|
|
{
|
|
[Token(Token = "0x6009C2F")]
|
|
[Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "12")]
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009C30 RID: 39984 RVA: 0x00236160 File Offset: 0x00234360
|
|
[Token(Token = "0x6009C30")]
|
|
[Address(RVA = "0x3E2800", Offset = "0x3E1200", VA = "0x1803E2800", Slot = "13")]
|
|
public virtual int GetBlockSize()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
// Token: 0x06009C31 RID: 39985 RVA: 0x00236170 File Offset: 0x00234370
|
|
[Token(Token = "0x6009C31")]
|
|
[Address(RVA = "0x21289B0", Offset = "0x21273B0", VA = "0x1821289B0", Slot = "14")]
|
|
public virtual int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009C31)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.NullEngine::ProcessBlock(System.Byte[],System.Int32,System.Byte[],System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_18:
|
|
stloc:InvalidOperationException(var_2_22, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("Null engine not initialised")))
|
|
}
|
|
|
|
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: 0x06009C32 RID: 39986 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6009C32")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "15")]
|
|
public virtual void Reset()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04006673 RID: 26227
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006673")]
|
|
private bool initialised;
|
|
|
|
// Token: 0x04006674 RID: 26228
|
|
[Token(Token = "0x4006674")]
|
|
private const int BlockSize = 1;
|
|
}
|
|
}
|