This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
@@ -0,0 +1,158 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E90 RID: 7824
[Token(Token = "0x2001E90")]
public class MacData : Asn1Encodable
{
// Token: 0x0600C5AF RID: 50607 RVA: 0x002D2094 File Offset: 0x002D0294
[Token(Token = "0x600C5AF")]
[Address(RVA = "0x2BC1AB0", Offset = "0x2BC08B0", VA = "0x182BC1AB0")]
public static MacData GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C5AF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.MacData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.MacData::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_22:
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_28)), ldstr:string("obj")))
}
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 1660
*/;
}
// Token: 0x0600C5B0 RID: 50608 RVA: 0x002D20E4 File Offset: 0x002D02E4
[Token(Token = "0x600C5B0")]
[Address(RVA = "0x2BC1F80", Offset = "0x2BC0D80", VA = "0x182BC1F80")]
private MacData(Asn1Sequence seq)
{
for (;;)
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
DigestInfo digestInfo;
this.digInfo = digestInfo;
Asn1SequenceParser parser2 = seq.Parser;
if (parser2 != 0 && parser2 != 0)
{
Asn1Encodable asn1Encodable;
if (asn1Encodable != (ulong)3L)
{
break;
}
Asn1SequenceParser parser3 = seq.Parser;
if (parser3 != 0 && parser3 != 0)
{
return;
}
}
}
BigInteger one = BigInteger.One;
this.iterationCount = one;
}
// Token: 0x0600C5B1 RID: 50609 RVA: 0x002D2154 File Offset: 0x002D0354
[Token(Token = "0x600C5B1")]
[Address(RVA = "0x2BC21D0", Offset = "0x2BC0FD0", VA = "0x182BC21D0")]
public MacData(DigestInfo digInfo, byte[] salt, int iterationCount)
{
this.digInfo = digInfo;
BigInteger bigInteger = BigInteger.ValueOf((long)iterationCount);
this.iterationCount = bigInteger;
}
// Token: 0x17001EAC RID: 7852
// (get) Token: 0x0600C5B2 RID: 50610 RVA: 0x002D2184 File Offset: 0x002D0384
[Token(Token = "0x17001EAC")]
public DigestInfo Mac
{
[Token(Token = "0x600C5B2")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.digInfo;
}
}
// Token: 0x0600C5B3 RID: 50611 RVA: 0x002D2198 File Offset: 0x002D0398
[Token(Token = "0x600C5B3")]
[Address(RVA = "0x2BC1CA0", Offset = "0x2BC0AA0", VA = "0x182BC1CA0")]
public byte[] GetSalt()
{
byte[] array = this.salt;
throw new NullReferenceException();
}
// Token: 0x17001EAD RID: 7853
// (get) Token: 0x0600C5B4 RID: 50612 RVA: 0x002D21B4 File Offset: 0x002D03B4
[Token(Token = "0x17001EAD")]
public BigInteger IterationCount
{
[Token(Token = "0x600C5B4")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.iterationCount;
}
}
// Token: 0x0600C5B5 RID: 50613 RVA: 0x002D21C8 File Offset: 0x002D03C8
[Token(Token = "0x600C5B5")]
[Address(RVA = "0x2BC1D20", Offset = "0x2BC0B20", VA = "0x182BC1D20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
DigestInfo digestInfo = this.digInfo;
if (digestInfo != 0)
{
}
array[0] = digestInfo;
DerOctetString derOctetString = new DerOctetString(this.salt);
if (derOctetString != 0)
{
}
array[1] = derOctetString;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
BigInteger bigInteger = this.iterationCount;
Asn1Encodable[] array2 = new Asn1Encodable[1];
DerInteger derInteger = new DerInteger(this.iterationCount);
if (derInteger != 0)
{
}
array2[0] = derInteger;
asn1EncodableVector.Add(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007D0E RID: 32014
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D0E")]
internal DigestInfo digInfo;
// Token: 0x04007D0F RID: 32015
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D0F")]
internal byte[] salt;
// Token: 0x04007D10 RID: 32016
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007D10")]
internal BigInteger iterationCount;
}
}