Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

196 lines
13 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
{
// Token: 0x02001AC9 RID: 6857
[Token(Token = "0x2001AC9")]
public class BufferedStreamCipher : BufferedCipherBase
{
// Token: 0x0600AA89 RID: 43657 RVA: 0x00254B84 File Offset: 0x00252D84
[Token(Token = "0x600AA89")]
[Address(RVA = "0x1B34F80", Offset = "0x1B33D80", VA = "0x181B34F80")]
public BufferedStreamCipher(IStreamCipher cipher)
{
/*
An exception occurred when decompiling this method (0600AA89)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedStreamCipher::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IStreamCipher)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("cipher")))
}
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 1660
*/;
}
// Token: 0x17001B17 RID: 6935
// (get) Token: 0x0600AA8A RID: 43658 RVA: 0x00254BB0 File Offset: 0x00252DB0
[Token(Token = "0x17001B17")]
public override string AlgorithmName
{
[Token(Token = "0x600AA8A")]
[Address(RVA = "0x1B35020", Offset = "0x1B33E20", VA = "0x181B35020", Slot = "22")]
get
{
IStreamCipher streamCipher = this.cipher;
throw new NullReferenceException();
}
}
// Token: 0x0600AA8B RID: 43659 RVA: 0x00254BCC File Offset: 0x00252DCC
[Token(Token = "0x600AA8B")]
[Address(RVA = "0x1B34B20", Offset = "0x1B33920", VA = "0x181B34B20", Slot = "23")]
public override void Init(bool forEncryption, ICipherParameters parameters)
{
while (parameters != 0 && parameters != 0 && (parameters == 0 || parameters == 0))
{
}
IStreamCipher streamCipher = this.cipher;
}
// Token: 0x0600AA8C RID: 43660 RVA: 0x00254BFC File Offset: 0x00252DFC
[Token(Token = "0x600AA8C")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "24")]
public override int GetBlockSize()
{
return 0;
}
// Token: 0x0600AA8D RID: 43661 RVA: 0x00254C0C File Offset: 0x00252E0C
[Token(Token = "0x600AA8D")]
[Address(RVA = "0x7A2180", Offset = "0x7A0F80", VA = "0x1807A2180", Slot = "25")]
public override int GetOutputSize(int inputLen)
{
return inputLen;
}
// Token: 0x0600AA8E RID: 43662 RVA: 0x00254C1C File Offset: 0x00252E1C
[Token(Token = "0x600AA8E")]
[Address(RVA = "0x7A2180", Offset = "0x7A0F80", VA = "0x1807A2180", Slot = "26")]
public override int GetUpdateOutputSize(int inputLen)
{
return inputLen;
}
// Token: 0x0600AA8F RID: 43663 RVA: 0x00254C2C File Offset: 0x00252E2C
[Token(Token = "0x600AA8F")]
[Address(RVA = "0x1B34D30", Offset = "0x1B33B30", VA = "0x181B34D30", Slot = "27")]
public override byte[] ProcessByte(byte input)
{
byte[] array = new byte[1];
IStreamCipher streamCipher = this.cipher;
array[0] = array;
return array;
}
// Token: 0x0600AA90 RID: 43664 RVA: 0x00254C58 File Offset: 0x00252E58
[Token(Token = "0x600AA90")]
[Address(RVA = "0x1B34C60", Offset = "0x1B33A60", VA = "0x181B34C60", Slot = "28")]
public override int ProcessByte(byte input, byte[] output, int outOff)
{
/*
An exception occurred when decompiling this method (0600AA90)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedStreamCipher::ProcessByte(System.Byte,System.Byte[],System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_18:
stloc:DataLengthException(var_1_22, newobj:DataLengthException(DataLengthException::.ctor, ldstr:string("output buffer too short")))
}
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 1660
*/;
}
// Token: 0x0600AA91 RID: 43665 RVA: 0x00254C88 File Offset: 0x00252E88
[Token(Token = "0x600AA91")]
[Address(RVA = "0x1B34E70", Offset = "0x1B33C70", VA = "0x181B34E70", Slot = "30")]
public override byte[] ProcessBytes(byte[] input, int inOff, int length)
{
byte[] array = new byte[length];
IStreamCipher streamCipher = this.cipher;
return array;
}
// Token: 0x0600AA92 RID: 43666 RVA: 0x00254CAC File Offset: 0x00252EAC
[Token(Token = "0x600AA92")]
[Address(RVA = "0x1B34DD0", Offset = "0x1B33BD0", VA = "0x181B34DD0", Slot = "32")]
public override int ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff)
{
IStreamCipher streamCipher = this.cipher;
return 0;
}
// Token: 0x0600AA93 RID: 43667 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600AA93")]
[Address(RVA = "0x1B34AB0", Offset = "0x1B338B0", VA = "0x181B34AB0", Slot = "33")]
public override byte[] DoFinal()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600AA94 RID: 43668 RVA: 0x00254CC8 File Offset: 0x00252EC8
[Token(Token = "0x600AA94")]
[Address(RVA = "0x1B349E0", Offset = "0x1B337E0", VA = "0x181B349E0", Slot = "35")]
public override byte[] DoFinal(byte[] input, int inOff, int length)
{
/*
An exception occurred when decompiling this method (0600AA94)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedStreamCipher::DoFinal(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:uint8[](var_0_07, callvirt:uint8[](BufferedCipherBase::ProcessBytes, ldloc:BufferedStreamCipher[exp:BufferedCipherBase](this), ldloc:uint8[](input)))
}
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 1660
*/;
}
// Token: 0x0600AA95 RID: 43669 RVA: 0x00254CDC File Offset: 0x00252EDC
[Token(Token = "0x600AA95")]
[Address(RVA = "0x1B34F30", Offset = "0x1B33D30", VA = "0x181B34F30", Slot = "39")]
public override void Reset()
{
IStreamCipher streamCipher = this.cipher;
throw new NullReferenceException();
}
// Token: 0x04006CA2 RID: 27810
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006CA2")]
private readonly IStreamCipher cipher;
}
}