Files
2026-04-08 23:40:05 +02:00

111 lines
5.2 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
{
// Token: 0x02001511 RID: 5393
[Token(Token = "0x2001511")]
[StructLayout(3)]
public class StreamBlockCipher : IStreamCipher
{
// Token: 0x06008F50 RID: 36688 RVA: 0x001FDAEC File Offset: 0x001FBCEC
[Token(Token = "0x6008F50")]
[Address(RVA = "0x1E4D330", Offset = "0x1E4BD30", VA = "0x181E4D330")]
public StreamBlockCipher(IBlockCipher cipher)
{
/*
An exception occurred when decompiling this method (06008F50)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.StreamBlockCipher::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBlockCipher)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_31:
stloc:ArgumentException(var_2_40, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("block cipher block size != 1."), 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.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: 0x06008F51 RID: 36689 RVA: 0x001FDB3C File Offset: 0x001FBD3C
[Token(Token = "0x6008F51")]
[Address(RVA = "0x1E4D040", Offset = "0x1E4BA40", VA = "0x181E4D040", Slot = "5")]
public void Init(bool forEncryption, ICipherParameters parameters)
{
IBlockCipher blockCipher = this.cipher;
}
// Token: 0x1700172F RID: 5935
// (get) Token: 0x06008F52 RID: 36690 RVA: 0x001FDB58 File Offset: 0x001FBD58
[Token(Token = "0x1700172F")]
public string AlgorithmName
{
[Token(Token = "0x6008F52")]
[Address(RVA = "0x1E4D410", Offset = "0x1E4BE10", VA = "0x181E4D410", Slot = "4")]
get
{
IBlockCipher blockCipher = this.cipher;
throw new NullReferenceException();
}
}
// Token: 0x06008F53 RID: 36691 RVA: 0x001FDB74 File Offset: 0x001FBD74
[Token(Token = "0x6008F53")]
[Address(RVA = "0x1E4D280", Offset = "0x1E4BC80", VA = "0x181E4D280", Slot = "6")]
public byte ReturnByte(byte input)
{
this.oneByte[0] = input;
IBlockCipher blockCipher = this.cipher;
byte[] array = this.oneByte;
return this.oneByte[0];
}
// Token: 0x06008F54 RID: 36692 RVA: 0x001FDBB0 File Offset: 0x001FBDB0
[Token(Token = "0x6008F54")]
[Address(RVA = "0x1E4D0B0", Offset = "0x1E4BAB0", VA = "0x181E4D0B0", Slot = "7")]
public void ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff)
{
if (length != 0)
{
int num = 0;
IBlockCipher blockCipher = this.cipher;
if (num < inOff)
{
num += num;
num++;
}
while (inOff != length)
{
}
}
}
// Token: 0x06008F55 RID: 36693 RVA: 0x001FDBE0 File Offset: 0x001FBDE0
[Token(Token = "0x6008F55")]
[Address(RVA = "0x1E4D230", Offset = "0x1E4BC30", VA = "0x181E4D230", Slot = "8")]
public void Reset()
{
IBlockCipher blockCipher = this.cipher;
throw new NullReferenceException();
}
// Token: 0x04005E69 RID: 24169
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005E69")]
private readonly IBlockCipher cipher;
// Token: 0x04005E6A RID: 24170
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005E6A")]
private readonly byte[] oneByte;
}
}