104 lines
5.0 KiB
C#
104 lines
5.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines
|
|
{
|
|
// Token: 0x02001D7A RID: 7546
|
|
[Token(Token = "0x2001D7A")]
|
|
public class NullEngine : IBlockCipher
|
|
{
|
|
// Token: 0x0600BBD4 RID: 48084 RVA: 0x002969A0 File Offset: 0x00294BA0
|
|
[Token(Token = "0x600BBD4")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public NullEngine()
|
|
{
|
|
this.Reset();
|
|
}
|
|
|
|
// Token: 0x0600BBD5 RID: 48085 RVA: 0x002969B4 File Offset: 0x00294BB4
|
|
[Token(Token = "0x600BBD5")]
|
|
[Address(RVA = "0x73F650", Offset = "0x73E650", VA = "0x18073F650", Slot = "10")]
|
|
public virtual void Init(bool forEncryption, ICipherParameters parameters)
|
|
{
|
|
this.initialised = true;
|
|
}
|
|
|
|
// Token: 0x17001D76 RID: 7542
|
|
// (get) Token: 0x0600BBD6 RID: 48086 RVA: 0x002969C8 File Offset: 0x00294BC8
|
|
[Token(Token = "0x17001D76")]
|
|
public virtual string AlgorithmName
|
|
{
|
|
[Token(Token = "0x600BBD6")]
|
|
[Address(RVA = "0x272B9B0", Offset = "0x272A9B0", VA = "0x18272B9B0", Slot = "11")]
|
|
get
|
|
{
|
|
return "Null";
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001D77 RID: 7543
|
|
// (get) Token: 0x0600BBD7 RID: 48087 RVA: 0x002969DC File Offset: 0x00294BDC
|
|
[Token(Token = "0x17001D77")]
|
|
public virtual bool IsPartialBlockOkay
|
|
{
|
|
[Token(Token = "0x600BBD7")]
|
|
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "12")]
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BBD8 RID: 48088 RVA: 0x002969EC File Offset: 0x00294BEC
|
|
[Token(Token = "0x600BBD8")]
|
|
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", Slot = "13")]
|
|
public virtual int GetBlockSize()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
// Token: 0x0600BBD9 RID: 48089 RVA: 0x002969FC File Offset: 0x00294BFC
|
|
[Token(Token = "0x600BBD9")]
|
|
[Address(RVA = "0x272B860", Offset = "0x272A860", VA = "0x18272B860", Slot = "14")]
|
|
public virtual int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600BBD9)
|
|
|
|
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: 0x0600BBDA RID: 48090 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600BBDA")]
|
|
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "15")]
|
|
public virtual void Reset()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0400766F RID: 30319
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400766F")]
|
|
private bool initialised;
|
|
|
|
// Token: 0x04007670 RID: 30320
|
|
[Token(Token = "0x4007670")]
|
|
private const int BlockSize = 1;
|
|
}
|
|
}
|