Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Crypto/BufferedCipherBase.cs
T
2026-04-08 23:40:05 +02:00

195 lines
9.8 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
{
// Token: 0x020014EA RID: 5354
[Token(Token = "0x20014EA")]
[StructLayout(3)]
public abstract class BufferedCipherBase : IBufferedCipher
{
// Token: 0x17001714 RID: 5908
// (get) Token: 0x06008E90 RID: 36496
[Token(Token = "0x17001714")]
public abstract string AlgorithmName
{
[Token(Token = "0x6008E90")]
[Address(Slot = "22")]
get;
}
// Token: 0x06008E91 RID: 36497
[Token(Token = "0x6008E91")]
[Address(Slot = "23")]
public abstract void Init(bool forEncryption, ICipherParameters parameters);
// Token: 0x06008E92 RID: 36498
[Token(Token = "0x6008E92")]
[Address(Slot = "24")]
public abstract int GetBlockSize();
// Token: 0x06008E93 RID: 36499
[Token(Token = "0x6008E93")]
[Address(Slot = "25")]
public abstract int GetOutputSize(int inputLen);
// Token: 0x06008E94 RID: 36500
[Token(Token = "0x6008E94")]
[Address(Slot = "26")]
public abstract int GetUpdateOutputSize(int inputLen);
// Token: 0x06008E95 RID: 36501
[Token(Token = "0x6008E95")]
[Address(Slot = "27")]
public abstract byte[] ProcessByte(byte input);
// Token: 0x06008E96 RID: 36502 RVA: 0x001FD258 File Offset: 0x001FB458
[Token(Token = "0x6008E96")]
[Address(RVA = "0x2178720", Offset = "0x2177120", VA = "0x182178720", Slot = "28")]
public virtual int ProcessByte(byte input, byte[] output, int outOff)
{
int updateOutputSize = this.GetUpdateOutputSize((int)input);
if (updateOutputSize != 0)
{
}
return updateOutputSize;
}
// Token: 0x06008E97 RID: 36503 RVA: 0x001FD280 File Offset: 0x001FB480
[Token(Token = "0x6008E97")]
[Address(RVA = "0x21787F0", Offset = "0x21771F0", VA = "0x1821787F0", Slot = "29")]
public virtual byte[] ProcessBytes(byte[] input)
{
return this.ProcessBytes(input);
}
// Token: 0x06008E98 RID: 36504
[Token(Token = "0x6008E98")]
[Address(Slot = "30")]
public abstract byte[] ProcessBytes(byte[] input, int inOff, int length);
// Token: 0x06008E99 RID: 36505 RVA: 0x001FD29C File Offset: 0x001FB49C
[Token(Token = "0x6008E99")]
[Address(RVA = "0x2178830", Offset = "0x2177230", VA = "0x182178830", Slot = "31")]
public virtual int ProcessBytes(byte[] input, byte[] output, int outOff)
{
int num;
return num;
}
// Token: 0x06008E9A RID: 36506 RVA: 0x001FD2B0 File Offset: 0x001FB4B0
[Token(Token = "0x6008E9A")]
[Address(RVA = "0x2178870", Offset = "0x2177270", VA = "0x182178870", Slot = "32")]
public virtual int ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff)
{
/*
An exception occurred when decompiling this method (06008E9A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedCipherBase::ProcessBytes(System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_13:
stloc:DataLengthException(var_2_1D, 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.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: 0x06008E9B RID: 36507
[Token(Token = "0x6008E9B")]
[Address(Slot = "33")]
public abstract byte[] DoFinal();
// Token: 0x06008E9C RID: 36508 RVA: 0x001FD2DC File Offset: 0x001FB4DC
[Token(Token = "0x6008E9C")]
[Address(RVA = "0x2178560", Offset = "0x2176F60", VA = "0x182178560", Slot = "34")]
public virtual byte[] DoFinal(byte[] input)
{
return this.DoFinal(input);
}
// Token: 0x06008E9D RID: 36509
[Token(Token = "0x6008E9D")]
[Address(Slot = "35")]
public abstract byte[] DoFinal(byte[] input, int inOff, int length);
// Token: 0x06008E9E RID: 36510 RVA: 0x001FD2F8 File Offset: 0x001FB4F8
[Token(Token = "0x6008E9E")]
[Address(RVA = "0x2178620", Offset = "0x2177020", VA = "0x182178620", Slot = "36")]
public virtual int DoFinal(byte[] output, int outOff)
{
int num;
return num;
}
// Token: 0x06008E9F RID: 36511 RVA: 0x001FD30C File Offset: 0x001FB50C
[Token(Token = "0x6008E9F")]
[Address(RVA = "0x21786E0", Offset = "0x21770E0", VA = "0x1821786E0", Slot = "37")]
public virtual int DoFinal(byte[] input, byte[] output, int outOff)
{
int num;
return num;
}
// Token: 0x06008EA0 RID: 36512 RVA: 0x001FD320 File Offset: 0x001FB520
[Token(Token = "0x6008EA0")]
[Address(RVA = "0x21785A0", Offset = "0x2176FA0", VA = "0x1821785A0", Slot = "38")]
public virtual int DoFinal(byte[] input, int inOff, int length, byte[] output, int outOff)
{
/*
An exception occurred when decompiling this method (06008EA0)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedCipherBase::DoFinal(System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:uint8[](var_1, add:uint8[](ldloc:uint8[](var_1), ldloc:int32[exp:uint8[]](var_0)))
}
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: 0x06008EA1 RID: 36513
[Token(Token = "0x6008EA1")]
[Address(Slot = "39")]
public abstract void Reset();
// Token: 0x06008EA2 RID: 36514 RVA: 0x001FD330 File Offset: 0x001FB530
[Token(Token = "0x6008EA2")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
protected BufferedCipherBase()
{
}
// Token: 0x06008EA3 RID: 36515 RVA: 0x001FD344 File Offset: 0x001FB544
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6008EA3")]
[Address(RVA = "0x2178950", Offset = "0x2177350", VA = "0x182178950")]
static BufferedCipherBase()
{
byte[] array = new byte[0];
}
// Token: 0x04005E5B RID: 24155
[Token(Token = "0x4005E5B")]
protected static readonly byte[] EmptyBuffer;
}
}