This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 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: 0x02001C4C RID: 7244
[Token(Token = "0x2001C4C")]
public class CfbBlockCipherMac : IMac
{
// Token: 0x0600B53C RID: 46396 RVA: 0x00279184 File Offset: 0x00277384
[Token(Token = "0x600B53C")]
[Address(RVA = "0x1C1D880", Offset = "0x1C1C680", VA = "0x181C1D880")]
public CfbBlockCipherMac(IBlockCipher cipher)
{
}
// Token: 0x0600B53D RID: 46397 RVA: 0x0027919C File Offset: 0x0027739C
[Token(Token = "0x600B53D")]
[Address(RVA = "0x1C1D900", Offset = "0x1C1C700", VA = "0x181C1D900")]
public CfbBlockCipherMac(IBlockCipher cipher, IBlockCipherPadding padding)
{
}
// Token: 0x0600B53E RID: 46398 RVA: 0x002791B0 File Offset: 0x002773B0
[Token(Token = "0x600B53E")]
[Address(RVA = "0x1C1D860", Offset = "0x1C1C660", VA = "0x181C1D860")]
public CfbBlockCipherMac(IBlockCipher cipher, int cfbBitSize, int macSizeInBits)
{
}
// Token: 0x0600B53F RID: 46399 RVA: 0x002791C0 File Offset: 0x002773C0
[Token(Token = "0x600B53F")]
[Address(RVA = "0x1C1D990", Offset = "0x1C1C790", VA = "0x181C1D990")]
public CfbBlockCipherMac(IBlockCipher cipher, int cfbBitSize, int macSizeInBits, IBlockCipherPadding padding)
{
/*
An exception occurred when decompiling this method (0600B53F)
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: 0x17001C8D RID: 7309
// (get) Token: 0x0600B540 RID: 46400 RVA: 0x0027926C File Offset: 0x0027746C
[Token(Token = "0x17001C8D")]
public string AlgorithmName
{
[Token(Token = "0x600B540")]
[Address(RVA = "0x1C1DB60", Offset = "0x1C1C960", VA = "0x181C1DB60", Slot = "5")]
get
{
MacCFBBlockCipher macCFBBlockCipher = this.cipher;
IBlockCipher blockCipher = macCFBBlockCipher.cipher;
int blockSize = macCFBBlockCipher.blockSize;
string text;
return text;
}
}
// Token: 0x0600B541 RID: 46401 RVA: 0x00279298 File Offset: 0x00277498
[Token(Token = "0x600B541")]
[Address(RVA = "0x1C1D700", Offset = "0x1C1C500", VA = "0x181C1D700", Slot = "4")]
public void Init(ICipherParameters parameters)
{
this.Reset();
this.cipher.Init(true, parameters);
}
// Token: 0x0600B542 RID: 46402 RVA: 0x002792C0 File Offset: 0x002774C0
[Token(Token = "0x600B542")]
[Address(RVA = "0x40FFE0", Offset = "0x40EDE0", VA = "0x18040FFE0", Slot = "6")]
public int GetMacSize()
{
return this.macSize;
}
// Token: 0x0600B543 RID: 46403 RVA: 0x002792D4 File Offset: 0x002774D4
[Token(Token = "0x600B543")]
[Address(RVA = "0x1C1D7D0", Offset = "0x1C1C5D0", VA = "0x181C1D7D0", 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: 0x0600B544 RID: 46404 RVA: 0x00279330 File Offset: 0x00277530
[Token(Token = "0x600B544")]
[Address(RVA = "0x1C1D390", Offset = "0x1C1C190", VA = "0x181C1D390", 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: 0x0600B545 RID: 46405 RVA: 0x002793E0 File Offset: 0x002775E0
[Token(Token = "0x600B545")]
[Address(RVA = "0x1C1D500", Offset = "0x1C1C300", VA = "0x181C1D500", 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: 0x0600B546 RID: 46406 RVA: 0x002794F8 File Offset: 0x002776F8
[Token(Token = "0x600B546")]
[Address(RVA = "0x1C1D740", Offset = "0x1C1C540", VA = "0x181C1D740", 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: 0x040072FA RID: 29434
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40072FA")]
private byte[] mac;
// Token: 0x040072FB RID: 29435
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40072FB")]
private byte[] Buffer;
// Token: 0x040072FC RID: 29436
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40072FC")]
private int bufOff;
// Token: 0x040072FD RID: 29437
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40072FD")]
private MacCFBBlockCipher cipher;
// Token: 0x040072FE RID: 29438
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40072FE")]
private IBlockCipherPadding padding;
// Token: 0x040072FF RID: 29439
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40072FF")]
private int macSize;
}
}