Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

109 lines
5.1 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
{
// Token: 0x02001BCE RID: 7118
[Token(Token = "0x2001BCE")]
public class StreamBlockCipher : IStreamCipher
{
// Token: 0x0600AEF8 RID: 44792 RVA: 0x0025E258 File Offset: 0x0025C458
[Token(Token = "0x600AEF8")]
[Address(RVA = "0x2341FB0", Offset = "0x2340FB0", VA = "0x182341FB0")]
public StreamBlockCipher(IBlockCipher cipher)
{
/*
An exception occurred when decompiling this method (0600AEF8)
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: 0x0600AEF9 RID: 44793 RVA: 0x0025E2A8 File Offset: 0x0025C4A8
[Token(Token = "0x600AEF9")]
[Address(RVA = "0x2341CC0", Offset = "0x2340CC0", VA = "0x182341CC0", Slot = "5")]
public void Init(bool forEncryption, ICipherParameters parameters)
{
IBlockCipher blockCipher = this.cipher;
}
// Token: 0x17001BCD RID: 7117
// (get) Token: 0x0600AEFA RID: 44794 RVA: 0x0025E2C4 File Offset: 0x0025C4C4
[Token(Token = "0x17001BCD")]
public string AlgorithmName
{
[Token(Token = "0x600AEFA")]
[Address(RVA = "0x2342090", Offset = "0x2341090", VA = "0x182342090", Slot = "4")]
get
{
IBlockCipher blockCipher = this.cipher;
throw new NullReferenceException();
}
}
// Token: 0x0600AEFB RID: 44795 RVA: 0x0025E2E0 File Offset: 0x0025C4E0
[Token(Token = "0x600AEFB")]
[Address(RVA = "0x2341F00", Offset = "0x2340F00", VA = "0x182341F00", Slot = "6")]
public byte ReturnByte(byte input)
{
this.oneByte[0] = input;
IBlockCipher blockCipher = this.cipher;
byte[] array = this.oneByte;
return this.oneByte[0];
}
// Token: 0x0600AEFC RID: 44796 RVA: 0x0025E31C File Offset: 0x0025C51C
[Token(Token = "0x600AEFC")]
[Address(RVA = "0x2341D30", Offset = "0x2340D30", VA = "0x182341D30", 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: 0x0600AEFD RID: 44797 RVA: 0x0025E34C File Offset: 0x0025C54C
[Token(Token = "0x600AEFD")]
[Address(RVA = "0x2341EB0", Offset = "0x2340EB0", VA = "0x182341EB0", Slot = "8")]
public void Reset()
{
IBlockCipher blockCipher = this.cipher;
throw new NullReferenceException();
}
// Token: 0x04006E65 RID: 28261
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006E65")]
private readonly IBlockCipher cipher;
// Token: 0x04006E66 RID: 28262
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006E66")]
private readonly byte[] oneByte;
}
}