104 lines
5.0 KiB
C#
104 lines
5.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines
|
|
{
|
|
// Token: 0x02001C9A RID: 7322
|
|
[Token(Token = "0x2001C9A")]
|
|
public class NullEngine : IBlockCipher
|
|
{
|
|
// Token: 0x0600B806 RID: 47110 RVA: 0x0028D894 File Offset: 0x0028BA94
|
|
[Token(Token = "0x600B806")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public NullEngine()
|
|
{
|
|
this.Reset();
|
|
}
|
|
|
|
// Token: 0x0600B807 RID: 47111 RVA: 0x0028D8A8 File Offset: 0x0028BAA8
|
|
[Token(Token = "0x600B807")]
|
|
[Address(RVA = "0x3F61A0", Offset = "0x3F4FA0", VA = "0x1803F61A0", Slot = "10")]
|
|
public virtual void Init(bool forEncryption, ICipherParameters parameters)
|
|
{
|
|
this.initialised = true;
|
|
}
|
|
|
|
// Token: 0x17001CD9 RID: 7385
|
|
// (get) Token: 0x0600B808 RID: 47112 RVA: 0x0028D8BC File Offset: 0x0028BABC
|
|
[Token(Token = "0x17001CD9")]
|
|
public virtual string AlgorithmName
|
|
{
|
|
[Token(Token = "0x600B808")]
|
|
[Address(RVA = "0x1DD6360", Offset = "0x1DD5160", VA = "0x181DD6360", Slot = "11")]
|
|
get
|
|
{
|
|
return "Null";
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001CDA RID: 7386
|
|
// (get) Token: 0x0600B809 RID: 47113 RVA: 0x0028D8D0 File Offset: 0x0028BAD0
|
|
[Token(Token = "0x17001CDA")]
|
|
public virtual bool IsPartialBlockOkay
|
|
{
|
|
[Token(Token = "0x600B809")]
|
|
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "12")]
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B80A RID: 47114 RVA: 0x0028D8E0 File Offset: 0x0028BAE0
|
|
[Token(Token = "0x600B80A")]
|
|
[Address(RVA = "0x4100E0", Offset = "0x40EEE0", VA = "0x1804100E0", Slot = "13")]
|
|
public virtual int GetBlockSize()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
// Token: 0x0600B80B RID: 47115 RVA: 0x0028D8F0 File Offset: 0x0028BAF0
|
|
[Token(Token = "0x600B80B")]
|
|
[Address(RVA = "0x1DD6210", Offset = "0x1DD5010", VA = "0x181DD6210", Slot = "14")]
|
|
public virtual int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B80B)
|
|
|
|
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: 0x0600B80C RID: 47116 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600B80C")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "15")]
|
|
public virtual void Reset()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x040074B6 RID: 29878
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40074B6")]
|
|
private bool initialised;
|
|
|
|
// Token: 0x040074B7 RID: 29879
|
|
[Token(Token = "0x40074B7")]
|
|
private const int BlockSize = 1;
|
|
}
|
|
}
|