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,213 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Paddings;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs
{
// Token: 0x02001D2A RID: 7466
[Token(Token = "0x2001D2A")]
public class CbcBlockCipherMac : IMac
{
// Token: 0x0600B8F7 RID: 47351 RVA: 0x00281E6C File Offset: 0x0028006C
[Token(Token = "0x600B8F7")]
[Address(RVA = "0x25B21D0", Offset = "0x25B11D0", VA = "0x1825B21D0")]
public CbcBlockCipherMac(IBlockCipher cipher)
{
}
// Token: 0x0600B8F8 RID: 47352 RVA: 0x00281E80 File Offset: 0x00280080
[Token(Token = "0x600B8F8")]
[Address(RVA = "0x25B2120", Offset = "0x25B1120", VA = "0x1825B2120")]
public CbcBlockCipherMac(IBlockCipher cipher, IBlockCipherPadding padding)
{
}
// Token: 0x0600B8F9 RID: 47353 RVA: 0x00281E94 File Offset: 0x00280094
[Token(Token = "0x600B8F9")]
[Address(RVA = "0x25B21B0", Offset = "0x25B11B0", VA = "0x1825B21B0")]
public CbcBlockCipherMac(IBlockCipher cipher, int macSizeInBits)
{
}
// Token: 0x0600B8FA RID: 47354 RVA: 0x00281EA4 File Offset: 0x002800A4
[Token(Token = "0x600B8FA")]
[Address(RVA = "0x25B2010", Offset = "0x25B1010", VA = "0x1825B2010")]
public CbcBlockCipherMac(IBlockCipher cipher, int macSizeInBits, IBlockCipherPadding padding)
{
/*
An exception occurred when decompiling this method (0600B8FA)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs.CbcBlockCipherMac::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBlockCipher,System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Paddings.IBlockCipherPadding)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_40:
stloc:ArgumentException(var_3_4A, 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: 0x17001D27 RID: 7463
// (get) Token: 0x0600B8FB RID: 47355 RVA: 0x00281EFC File Offset: 0x002800FC
[Token(Token = "0x17001D27")]
public string AlgorithmName
{
[Token(Token = "0x600B8FB")]
[Address(RVA = "0x25B2250", Offset = "0x25B1250", VA = "0x1825B2250", Slot = "5")]
get
{
IBlockCipher blockCipher = this.cipher;
throw new NullReferenceException();
}
}
// Token: 0x0600B8FC RID: 47356 RVA: 0x00281F18 File Offset: 0x00280118
[Token(Token = "0x600B8FC")]
[Address(RVA = "0x25B1E30", Offset = "0x25B0E30", VA = "0x1825B1E30", Slot = "4")]
public void Init(ICipherParameters parameters)
{
byte[] array = this.buf;
int length = array.Length;
int num = 0;
Array.Clear(array, num, length);
IBlockCipher blockCipher = this.cipher;
this.bufOff = (int)((ulong)0L);
IBlockCipher blockCipher2 = this.cipher;
}
// Token: 0x0600B8FD RID: 47357 RVA: 0x00281F5C File Offset: 0x0028015C
[Token(Token = "0x600B8FD")]
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0", Slot = "6")]
public int GetMacSize()
{
return this.macSize;
}
// Token: 0x0600B8FE RID: 47358 RVA: 0x00281F70 File Offset: 0x00280170
[Token(Token = "0x600B8FE")]
[Address(RVA = "0x25B1F60", Offset = "0x25B0F60", VA = "0x1825B1F60", Slot = "7")]
public void Update(byte input)
{
byte[] array = this.buf;
int num = this.bufOff;
if (num == array.Length)
{
IBlockCipher blockCipher = this.cipher;
}
int num2 = num + 1;
this.bufOff = num2;
}
// Token: 0x0600B8FF RID: 47359 RVA: 0x00281FB4 File Offset: 0x002801B4
[Token(Token = "0x600B8FF")]
[Address(RVA = "0x25B1A60", Offset = "0x25B0A60", VA = "0x1825B1A60", Slot = "8")]
public void BlockUpdate(byte[] input, int inOff, int len)
{
IBlockCipher blockCipher = this.cipher;
int num = this.bufOff;
int num2 = 0;
IBlockCipher blockCipher2 = this.cipher;
byte[] array = this.buf;
this.bufOff = num2;
IBlockCipher blockCipher3 = this.cipher;
if (num2 < blockCipher2)
{
num2 += num2;
num2++;
}
byte[] array2 = this.buf;
Array.Copy(input, inOff, array2, num, len);
}
// Token: 0x0600B900 RID: 47360 RVA: 0x0028201C File Offset: 0x0028021C
[Token(Token = "0x600B900")]
[Address(RVA = "0x25B1C60", Offset = "0x25B0C60", VA = "0x1825B1C60", Slot = "9")]
public int DoFinal(byte[] output, int outOff)
{
IBlockCipher blockCipher = this.cipher;
int num = 0;
IBlockCipherPadding blockCipherPadding = this.padding;
int i = this.bufOff;
if (blockCipherPadding != 0)
{
if (i == blockCipher)
{
IBlockCipher blockCipher2 = this.cipher;
byte[] array = this.buf;
this.bufOff = num;
}
IBlockCipher blockCipher3 = this.cipher;
byte[] array2 = this.buf;
int num2 = this.macSize;
byte[] array3 = this.buf;
int num3 = 0;
Array.Copy(array3, num3, output, outOff, num2);
byte[] array4 = this.buf;
int length = array4.Length;
int num4 = 0;
Array.Clear(array4, num4, length);
IBlockCipher blockCipher4 = this.cipher;
this.bufOff = num;
return this.macSize;
}
while (i >= blockCipher)
{
}
byte[] array5 = this.buf;
int num5 = i + 1;
this.bufOff = num5;
int num6 = this.bufOff;
throw new NullReferenceException();
}
// Token: 0x0600B901 RID: 47361 RVA: 0x002820F0 File Offset: 0x002802F0
[Token(Token = "0x600B901")]
[Address(RVA = "0x25B1EF0", Offset = "0x25B0EF0", VA = "0x1825B1EF0", Slot = "10")]
public void Reset()
{
byte[] array = this.buf;
int length = array.Length;
int num = 0;
Array.Clear(array, num, length);
IBlockCipher blockCipher = this.cipher;
this.bufOff = (int)((ulong)0L);
throw new NullReferenceException();
}
// Token: 0x040074A9 RID: 29865
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40074A9")]
private byte[] buf;
// Token: 0x040074AA RID: 29866
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40074AA")]
private int bufOff;
// Token: 0x040074AB RID: 29867
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40074AB")]
private IBlockCipher cipher;
// Token: 0x040074AC RID: 29868
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40074AC")]
private IBlockCipherPadding padding;
// Token: 0x040074AD RID: 29869
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40074AD")]
private int macSize;
}
}