This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,236 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Paddings;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs
{
// Token: 0x02001D2C RID: 7468
[Token(Token = "0x2001D2C")]
public class CfbBlockCipherMac : IMac
{
// Token: 0x0600B90A RID: 47370 RVA: 0x00282320 File Offset: 0x00280520
[Token(Token = "0x600B90A")]
[Address(RVA = "0x25B4820", Offset = "0x25B3820", VA = "0x1825B4820")]
public CfbBlockCipherMac(IBlockCipher cipher)
{
}
// Token: 0x0600B90B RID: 47371 RVA: 0x00282338 File Offset: 0x00280538
[Token(Token = "0x600B90B")]
[Address(RVA = "0x25B48A0", Offset = "0x25B38A0", VA = "0x1825B48A0")]
public CfbBlockCipherMac(IBlockCipher cipher, IBlockCipherPadding padding)
{
}
// Token: 0x0600B90C RID: 47372 RVA: 0x0028234C File Offset: 0x0028054C
[Token(Token = "0x600B90C")]
[Address(RVA = "0x25B4800", Offset = "0x25B3800", VA = "0x1825B4800")]
public CfbBlockCipherMac(IBlockCipher cipher, int cfbBitSize, int macSizeInBits)
{
}
// Token: 0x0600B90D RID: 47373 RVA: 0x0028235C File Offset: 0x0028055C
[Token(Token = "0x600B90D")]
[Address(RVA = "0x25B4930", Offset = "0x25B3930", VA = "0x1825B4930")]
public CfbBlockCipherMac(IBlockCipher cipher, int cfbBitSize, int macSizeInBits, IBlockCipherPadding padding)
{
/*
An exception occurred when decompiling this method (0600B90D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs.CfbBlockCipherMac::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBlockCipher,System.Int32,System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Paddings.IBlockCipherPadding)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_93:
stloc:ArgumentException(var_8_9D, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("MAC size must be multiple of 8")))
}
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 1663
*/;
}
// Token: 0x17001D2A RID: 7466
// (get) Token: 0x0600B90E RID: 47374 RVA: 0x00282408 File Offset: 0x00280608
[Token(Token = "0x17001D2A")]
public string AlgorithmName
{
[Token(Token = "0x600B90E")]
[Address(RVA = "0x25B4B00", Offset = "0x25B3B00", VA = "0x1825B4B00", Slot = "5")]
get
{
MacCFBBlockCipher macCFBBlockCipher = this.cipher;
IBlockCipher blockCipher = macCFBBlockCipher.cipher;
int blockSize = macCFBBlockCipher.blockSize;
string text;
return text;
}
}
// Token: 0x0600B90F RID: 47375 RVA: 0x00282434 File Offset: 0x00280634
[Token(Token = "0x600B90F")]
[Address(RVA = "0x25B46A0", Offset = "0x25B36A0", VA = "0x1825B46A0", Slot = "4")]
public void Init(ICipherParameters parameters)
{
this.Reset();
this.cipher.Init(true, parameters);
}
// Token: 0x0600B910 RID: 47376 RVA: 0x0028245C File Offset: 0x0028065C
[Token(Token = "0x600B910")]
[Address(RVA = "0x42B830", Offset = "0x42A830", VA = "0x18042B830", Slot = "6")]
public int GetMacSize()
{
return this.macSize;
}
// Token: 0x0600B911 RID: 47377 RVA: 0x00282470 File Offset: 0x00280670
[Token(Token = "0x600B911")]
[Address(RVA = "0x25B4770", Offset = "0x25B3770", VA = "0x1825B4770", Slot = "7")]
public void Update(byte input)
{
byte[] buffer = this.Buffer;
int num = this.bufOff;
if (num == buffer.Length)
{
MacCFBBlockCipher macCFBBlockCipher = this.cipher;
byte[] array = this.mac;
int num2 = 0;
int num3 = 0;
int num4 = macCFBBlockCipher.ProcessBlock(buffer, num3, array, num2);
}
int num5 = num + 1;
this.bufOff = num5;
}
// Token: 0x0600B912 RID: 47378 RVA: 0x002824CC File Offset: 0x002806CC
[Token(Token = "0x600B912")]
[Address(RVA = "0x25B4330", Offset = "0x25B3330", VA = "0x1825B4330", Slot = "8")]
public void BlockUpdate(byte[] input, int inOff, int len)
{
int num = this.cipher.blockSize;
int num2 = 0;
int num3 = this.bufOff;
num -= num3;
if (len > num)
{
byte[] buffer = this.Buffer;
Array.Copy(input, inOff, buffer, num3, num);
MacCFBBlockCipher macCFBBlockCipher = this.cipher;
byte[] array = this.mac;
int num4 = 0;
byte[] buffer2 = this.Buffer;
int num5 = macCFBBlockCipher.ProcessBlock(buffer2, num4, array, num2);
this.bufOff = num2;
if (len > num)
{
MacCFBBlockCipher macCFBBlockCipher2 = this.cipher;
byte[] array2 = this.mac;
int num6 = macCFBBlockCipher2.ProcessBlock(input, inOff, array2, num2);
}
}
byte[] buffer3 = this.Buffer;
Array.Copy(input, inOff, buffer3, num3, len);
}
// Token: 0x0600B913 RID: 47379 RVA: 0x0028257C File Offset: 0x0028077C
[Token(Token = "0x600B913")]
[Address(RVA = "0x25B44A0", Offset = "0x25B34A0", VA = "0x1825B44A0", Slot = "9")]
public int DoFinal(byte[] output, int outOff)
{
MacCFBBlockCipher macCFBBlockCipher = this.cipher;
IBlockCipherPadding blockCipherPadding = this.padding;
int blockSize = macCFBBlockCipher.blockSize;
int i = this.bufOff;
if (blockCipherPadding != 0)
{
MacCFBBlockCipher macCFBBlockCipher2 = this.cipher;
byte[] array = this.mac;
int num = 0;
byte[] buffer = this.Buffer;
int num2 = 0;
int num3 = macCFBBlockCipher2.ProcessBlock(buffer, num2, array, num);
MacCFBBlockCipher macCFBBlockCipher3 = this.cipher;
byte[] array2 = this.mac;
IBlockCipher blockCipher = macCFBBlockCipher3.cipher;
int num4 = this.macSize;
byte[] array3 = this.mac;
int num5 = 0;
Array.Copy(array3, num5, output, outOff, num4);
byte[] buffer2 = this.Buffer;
int length = buffer2.Length;
int num6 = 0;
Array.Clear(buffer2, num6, length);
MacCFBBlockCipher macCFBBlockCipher4 = this.cipher;
this.bufOff = num;
byte[] iv = macCFBBlockCipher4.IV;
byte[] cfbV = macCFBBlockCipher4.cfbV;
IBlockCipher blockCipher2 = macCFBBlockCipher4.cipher;
return this.macSize;
}
while (i >= blockSize)
{
}
byte[] buffer3 = this.Buffer;
int num7 = i + 1;
this.bufOff = num7;
int num8 = this.bufOff;
throw new NullReferenceException();
}
// Token: 0x0600B914 RID: 47380 RVA: 0x00282694 File Offset: 0x00280894
[Token(Token = "0x600B914")]
[Address(RVA = "0x25B46E0", Offset = "0x25B36E0", VA = "0x1825B46E0", Slot = "10")]
public void Reset()
{
byte[] buffer = this.Buffer;
int length = buffer.Length;
int num = 0;
Array.Clear(buffer, num, length);
this.bufOff = (int)((ulong)0L);
MacCFBBlockCipher macCFBBlockCipher = this.cipher;
byte[] iv = macCFBBlockCipher.IV;
byte[] cfbV = macCFBBlockCipher.cfbV;
IBlockCipher blockCipher = macCFBBlockCipher.cipher;
throw new NullReferenceException();
}
// Token: 0x040074B3 RID: 29875
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40074B3")]
private byte[] mac;
// Token: 0x040074B4 RID: 29876
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40074B4")]
private byte[] Buffer;
// Token: 0x040074B5 RID: 29877
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40074B5")]
private int bufOff;
// Token: 0x040074B6 RID: 29878
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40074B6")]
private MacCFBBlockCipher cipher;
// Token: 0x040074B7 RID: 29879
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40074B7")]
private IBlockCipherPadding padding;
// Token: 0x040074B8 RID: 29880
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40074B8")]
private int macSize;
}
}