m
This commit is contained in:
@@ -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: 0x02001F70 RID: 8048
|
||||
[Token(Token = "0x2001F70")]
|
||||
public class MacData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C97D RID: 51581 RVA: 0x002DA908 File Offset: 0x002D8B08
|
||||
[Token(Token = "0x600C97D")]
|
||||
[Address(RVA = "0x2F826F0", Offset = "0x2F816F0", VA = "0x182F826F0")]
|
||||
public static MacData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C97D)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600C97E RID: 51582 RVA: 0x002DA958 File Offset: 0x002D8B58
|
||||
[Token(Token = "0x600C97E")]
|
||||
[Address(RVA = "0x2F82BC0", Offset = "0x2F81BC0", VA = "0x182F82BC0")]
|
||||
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: 0x0600C97F RID: 51583 RVA: 0x002DA9C8 File Offset: 0x002D8BC8
|
||||
[Token(Token = "0x600C97F")]
|
||||
[Address(RVA = "0x2F82E10", Offset = "0x2F81E10", VA = "0x182F82E10")]
|
||||
public MacData(DigestInfo digInfo, byte[] salt, int iterationCount)
|
||||
{
|
||||
this.digInfo = digInfo;
|
||||
BigInteger bigInteger = BigInteger.ValueOf((long)iterationCount);
|
||||
this.iterationCount = bigInteger;
|
||||
}
|
||||
|
||||
// Token: 0x17001F49 RID: 8009
|
||||
// (get) Token: 0x0600C980 RID: 51584 RVA: 0x002DA9F8 File Offset: 0x002D8BF8
|
||||
[Token(Token = "0x17001F49")]
|
||||
public DigestInfo Mac
|
||||
{
|
||||
[Token(Token = "0x600C980")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.digInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C981 RID: 51585 RVA: 0x002DAA0C File Offset: 0x002D8C0C
|
||||
[Token(Token = "0x600C981")]
|
||||
[Address(RVA = "0x2F828E0", Offset = "0x2F818E0", VA = "0x182F828E0")]
|
||||
public byte[] GetSalt()
|
||||
{
|
||||
byte[] array = this.salt;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001F4A RID: 8010
|
||||
// (get) Token: 0x0600C982 RID: 51586 RVA: 0x002DAA28 File Offset: 0x002D8C28
|
||||
[Token(Token = "0x17001F4A")]
|
||||
public BigInteger IterationCount
|
||||
{
|
||||
[Token(Token = "0x600C982")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.iterationCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C983 RID: 51587 RVA: 0x002DAA3C File Offset: 0x002D8C3C
|
||||
[Token(Token = "0x600C983")]
|
||||
[Address(RVA = "0x2F82960", Offset = "0x2F81960", VA = "0x182F82960", 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: 0x04007EC7 RID: 32455
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EC7")]
|
||||
internal DigestInfo digInfo;
|
||||
|
||||
// Token: 0x04007EC8 RID: 32456
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EC8")]
|
||||
internal byte[] salt;
|
||||
|
||||
// Token: 0x04007EC9 RID: 32457
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007EC9")]
|
||||
internal BigInteger iterationCount;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user