m
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F64 RID: 8036
|
||||
[Token(Token = "0x2001F64")]
|
||||
public class AttributePkcs : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C934 RID: 51508 RVA: 0x002D98E8 File Offset: 0x002D7AE8
|
||||
[Token(Token = "0x600C934")]
|
||||
[Address(RVA = "0x2F7B330", Offset = "0x2F7A330", VA = "0x182F7B330")]
|
||||
public static AttributePkcs GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C934)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.AttributePkcs BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.AttributePkcs::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3B:
|
||||
stloc:string(var_7_41, call:string(Platform::GetTypeName, ldloc:AttributePkcs[exp:object](var_3)))
|
||||
stloc:ArgumentException(var_8_59, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_7_41)), 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: 0x0600C935 RID: 51509 RVA: 0x002D9950 File Offset: 0x002D7B50
|
||||
[Token(Token = "0x600C935")]
|
||||
[Address(RVA = "0x2F7B680", Offset = "0x2F7A680", VA = "0x182F7B680")]
|
||||
private AttributePkcs(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C935)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.AttributePkcs::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C936 RID: 51510 RVA: 0x002D99A0 File Offset: 0x002D7BA0
|
||||
[Token(Token = "0x600C936")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public AttributePkcs(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x17001F33 RID: 7987
|
||||
// (get) Token: 0x0600C937 RID: 51511 RVA: 0x002D99C4 File Offset: 0x002D7BC4
|
||||
[Token(Token = "0x17001F33")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600C937")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F34 RID: 7988
|
||||
// (get) Token: 0x0600C938 RID: 51512 RVA: 0x002D99D8 File Offset: 0x002D7BD8
|
||||
[Token(Token = "0x17001F34")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600C938")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C939 RID: 51513 RVA: 0x002D99EC File Offset: 0x002D7BEC
|
||||
[Token(Token = "0x600C939")]
|
||||
[Address(RVA = "0x2F7B570", Offset = "0x2F7A570", VA = "0x182F7B570", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.attrType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Set asn1Set = this.attrValues;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Set;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EB1 RID: 32433
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EB1")]
|
||||
private readonly DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x04007EB2 RID: 32434
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EB2")]
|
||||
private readonly Asn1Set attrValues;
|
||||
}
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F65 RID: 8037
|
||||
[Token(Token = "0x2001F65")]
|
||||
public class AuthenticatedSafe : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C93A RID: 51514 RVA: 0x002D9A34 File Offset: 0x002D7C34
|
||||
[Token(Token = "0x600C93A")]
|
||||
[Address(RVA = "0x2F7B880", Offset = "0x2F7A880", VA = "0x182F7B880")]
|
||||
public AuthenticatedSafe(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
ContentInfo[] array = new ContentInfo[asn1Encodable];
|
||||
int num = 0;
|
||||
this.info = array;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
ContentInfo contentInfo;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = contentInfo;
|
||||
ContentInfo[] array2 = this.info;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C93B RID: 51515 RVA: 0x002D9A88 File Offset: 0x002D7C88
|
||||
[Token(Token = "0x600C93B")]
|
||||
[Address(RVA = "0x2F7B9B0", Offset = "0x2F7A9B0", VA = "0x182F7B9B0")]
|
||||
public AuthenticatedSafe(ContentInfo[] info)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C93C RID: 51516 RVA: 0x002D9AA4 File Offset: 0x002D7CA4
|
||||
[Token(Token = "0x600C93C")]
|
||||
[Address(RVA = "0x2F7B7A0", Offset = "0x2F7A7A0", VA = "0x182F7B7A0")]
|
||||
public ContentInfo[] GetContentInfo()
|
||||
{
|
||||
ContentInfo[] array = this.info;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C93D RID: 51517 RVA: 0x002D9AC0 File Offset: 0x002D7CC0
|
||||
[Token(Token = "0x600C93D")]
|
||||
[Address(RVA = "0x2F7B820", Offset = "0x2F7A820", VA = "0x182F7B820", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C93D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.AuthenticatedSafe::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:BerSequence(var_0_0B, newobj:BerSequence(BerSequence::.ctor, ldfld:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.ContentInfo[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](AuthenticatedSafe::info, ldloc:AuthenticatedSafe(this))))
|
||||
}
|
||||
|
||||
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: 0x04007EB3 RID: 32435
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EB3")]
|
||||
private readonly ContentInfo[] info;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F66 RID: 8038
|
||||
[Token(Token = "0x2001F66")]
|
||||
public class CertBag : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C93E RID: 51518 RVA: 0x002D9AD8 File Offset: 0x002D7CD8
|
||||
[Token(Token = "0x600C93E")]
|
||||
[Address(RVA = "0x2F7C730", Offset = "0x2F7B730", VA = "0x182F7C730")]
|
||||
public CertBag(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C93E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertBag::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:ArgumentException(var_6_48, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C93F RID: 51519 RVA: 0x002D9B30 File Offset: 0x002D7D30
|
||||
[Token(Token = "0x600C93F")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public CertBag(DerObjectIdentifier certID, Asn1Object certValue)
|
||||
{
|
||||
this.certID = certID;
|
||||
this.certValue = certValue;
|
||||
}
|
||||
|
||||
// Token: 0x17001F35 RID: 7989
|
||||
// (get) Token: 0x0600C940 RID: 51520 RVA: 0x002D9B54 File Offset: 0x002D7D54
|
||||
[Token(Token = "0x17001F35")]
|
||||
public DerObjectIdentifier CertID
|
||||
{
|
||||
[Token(Token = "0x600C940")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.certID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F36 RID: 7990
|
||||
// (get) Token: 0x0600C941 RID: 51521 RVA: 0x002D9B68 File Offset: 0x002D7D68
|
||||
[Token(Token = "0x17001F36")]
|
||||
public Asn1Object CertValue
|
||||
{
|
||||
[Token(Token = "0x600C941")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.certValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C942 RID: 51522 RVA: 0x002D9B7C File Offset: 0x002D7D7C
|
||||
[Token(Token = "0x600C942")]
|
||||
[Address(RVA = "0x2F7C5F0", Offset = "0x2F7B5F0", VA = "0x182F7C5F0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.certID;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Object asn1Object = this.certValue;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num, asn1Object);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derTaggedObject;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EB4 RID: 32436
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EB4")]
|
||||
private readonly DerObjectIdentifier certID;
|
||||
|
||||
// Token: 0x04007EB5 RID: 32437
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EB5")]
|
||||
private readonly Asn1Object certValue;
|
||||
}
|
||||
}
|
||||
+160
@@ -0,0 +1,160 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F67 RID: 8039
|
||||
[Token(Token = "0x2001F67")]
|
||||
public class CertificationRequest : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C943 RID: 51523 RVA: 0x002D9BD0 File Offset: 0x002D7DD0
|
||||
[Token(Token = "0x600C943")]
|
||||
[Address(RVA = "0x2F7DC90", Offset = "0x2F7CC90", VA = "0x182F7DC90")]
|
||||
public static CertificationRequest GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
CertificationRequest certificationRequest;
|
||||
return certificationRequest;
|
||||
}
|
||||
}
|
||||
else if (obj != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C944 RID: 51524 RVA: 0x002D9BFC File Offset: 0x002D7DFC
|
||||
[Token(Token = "0x600C944")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
protected CertificationRequest()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C945 RID: 51525 RVA: 0x002D9C10 File Offset: 0x002D7E10
|
||||
[Token(Token = "0x600C945")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
public CertificationRequest(CertificationRequestInfo requestInfo, AlgorithmIdentifier algorithm, DerBitString signature)
|
||||
{
|
||||
this.reqInfo = requestInfo;
|
||||
this.sigAlgId = algorithm;
|
||||
this.sigBits = signature;
|
||||
}
|
||||
|
||||
// Token: 0x0600C946 RID: 51526 RVA: 0x002D9C38 File Offset: 0x002D7E38
|
||||
[Token(Token = "0x600C946")]
|
||||
[Address(RVA = "0x2F7DF40", Offset = "0x2F7CF40", VA = "0x182F7DF40")]
|
||||
[Obsolete]
|
||||
public CertificationRequest(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C946)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequest::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_61:
|
||||
stloc:ArgumentException(var_12_70, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C947 RID: 51527 RVA: 0x002D9CB8 File Offset: 0x002D7EB8
|
||||
[Token(Token = "0x600C947")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
public CertificationRequestInfo GetCertificationRequestInfo()
|
||||
{
|
||||
return this.reqInfo;
|
||||
}
|
||||
|
||||
// Token: 0x17001F37 RID: 7991
|
||||
// (get) Token: 0x0600C948 RID: 51528 RVA: 0x002D9CCC File Offset: 0x002D7ECC
|
||||
[Token(Token = "0x17001F37")]
|
||||
public AlgorithmIdentifier SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C948")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.sigAlgId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F38 RID: 7992
|
||||
// (get) Token: 0x0600C949 RID: 51529 RVA: 0x002D9CE0 File Offset: 0x002D7EE0
|
||||
[Token(Token = "0x17001F38")]
|
||||
public DerBitString Signature
|
||||
{
|
||||
[Token(Token = "0x600C949")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.sigBits;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C94A RID: 51530 RVA: 0x002D9CF4 File Offset: 0x002D7EF4
|
||||
[Token(Token = "0x600C94A")]
|
||||
[Address(RVA = "0xBDDB90", Offset = "0xBDCB90", VA = "0x180BDDB90")]
|
||||
public byte[] GetSignatureOctets()
|
||||
{
|
||||
Asn1Object asn1Object = this.sigBits.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C94B RID: 51531 RVA: 0x002D9D14 File Offset: 0x002D7F14
|
||||
[Token(Token = "0x600C94B")]
|
||||
[Address(RVA = "0x2F7DDD0", Offset = "0x2F7CDD0", VA = "0x182F7DDD0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
CertificationRequestInfo certificationRequestInfo = this.reqInfo;
|
||||
if (certificationRequestInfo != 0)
|
||||
{
|
||||
}
|
||||
array[0] = certificationRequestInfo;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.sigAlgId;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
DerBitString derBitString = this.sigBits;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derBitString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EB6 RID: 32438
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EB6")]
|
||||
protected CertificationRequestInfo reqInfo;
|
||||
|
||||
// Token: 0x04007EB7 RID: 32439
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EB7")]
|
||||
protected AlgorithmIdentifier sigAlgId;
|
||||
|
||||
// Token: 0x04007EB8 RID: 32440
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007EB8")]
|
||||
protected DerBitString sigBits;
|
||||
}
|
||||
}
|
||||
+245
@@ -0,0 +1,245 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F68 RID: 8040
|
||||
[Token(Token = "0x2001F68")]
|
||||
public class CertificationRequestInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C94C RID: 51532 RVA: 0x002D9D70 File Offset: 0x002D7F70
|
||||
[Token(Token = "0x600C94C")]
|
||||
[Address(RVA = "0x2F7D380", Offset = "0x2F7C380", VA = "0x182F7D380")]
|
||||
public static CertificationRequestInfo GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new CertificationRequestInfo(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C94D RID: 51533 RVA: 0x002D9DA4 File Offset: 0x002D7FA4
|
||||
[Token(Token = "0x600C94D")]
|
||||
[Address(RVA = "0x2F7DBB0", Offset = "0x2F7CBB0", VA = "0x182F7DBB0")]
|
||||
public CertificationRequestInfo(X509Name subject, SubjectPublicKeyInfo pkInfo, Asn1Set attributes)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C94D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequestInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectPublicKeyInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4C:
|
||||
stloc:ArgumentException(var_2_56, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not all mandatory fields set in CertificationRequestInfo generator.")))
|
||||
}
|
||||
|
||||
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: 0x0600C94E RID: 51534 RVA: 0x002D9E08 File Offset: 0x002D8008
|
||||
[Token(Token = "0x600C94E")]
|
||||
[Address(RVA = "0x2F7D960", Offset = "0x2F7C960", VA = "0x182F7D960")]
|
||||
private CertificationRequestInfo(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C94E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequestInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_9F:
|
||||
stloc:ArgumentException(var_12_A9, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not all mandatory fields set in CertificationRequestInfo generator.")))
|
||||
}
|
||||
|
||||
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: 0x17001F39 RID: 7993
|
||||
// (get) Token: 0x0600C94F RID: 51535 RVA: 0x002D9EC0 File Offset: 0x002D80C0
|
||||
[Token(Token = "0x17001F39")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C94F")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F3A RID: 7994
|
||||
// (get) Token: 0x0600C950 RID: 51536 RVA: 0x002D9ED4 File Offset: 0x002D80D4
|
||||
[Token(Token = "0x17001F3A")]
|
||||
public X509Name Subject
|
||||
{
|
||||
[Token(Token = "0x600C950")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.subject;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F3B RID: 7995
|
||||
// (get) Token: 0x0600C951 RID: 51537 RVA: 0x002D9EE8 File Offset: 0x002D80E8
|
||||
[Token(Token = "0x17001F3B")]
|
||||
public SubjectPublicKeyInfo SubjectPublicKeyInfo
|
||||
{
|
||||
[Token(Token = "0x600C951")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.subjectPKInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F3C RID: 7996
|
||||
// (get) Token: 0x0600C952 RID: 51538 RVA: 0x002D9EFC File Offset: 0x002D80FC
|
||||
[Token(Token = "0x17001F3C")]
|
||||
public Asn1Set Attributes
|
||||
{
|
||||
[Token(Token = "0x600C952")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.attributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C953 RID: 51539 RVA: 0x002D9F10 File Offset: 0x002D8110
|
||||
[Token(Token = "0x600C953")]
|
||||
[Address(RVA = "0x2F7D480", Offset = "0x2F7C480", VA = "0x182F7D480", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
X509Name x509Name = this.subject;
|
||||
if (x509Name != 0)
|
||||
{
|
||||
}
|
||||
array[1] = x509Name;
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo = this.subjectPKInfo;
|
||||
if (subjectPublicKeyInfo != 0)
|
||||
{
|
||||
}
|
||||
array[2] = subjectPublicKeyInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.attributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.attributes;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C954 RID: 51540 RVA: 0x002D9FBC File Offset: 0x002D81BC
|
||||
[Token(Token = "0x600C954")]
|
||||
[Address(RVA = "0x2F7D6D0", Offset = "0x2F7C6D0", VA = "0x182F7D6D0")]
|
||||
private static void ValidateAttributes(Asn1Set attributes)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (attributes == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IEnumerator enumerator = attributes.GetEnumerator();
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0 || enumerator == 0)
|
||||
{
|
||||
goto IL_5E;
|
||||
}
|
||||
AttributePkcs attributePkcs;
|
||||
DerObjectIdentifier attrType = attributePkcs.attrType;
|
||||
Asn1Set attrValues = attributePkcs.attrValues;
|
||||
if (asn1Encodable != (ulong)1L)
|
||||
{
|
||||
goto IL_40;
|
||||
}
|
||||
}
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_40:
|
||||
ArgumentException ex = new ArgumentException("challengePassword attribute must have one value");
|
||||
throw new NullReferenceException();
|
||||
IL_5E:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EB9 RID: 32441
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EB9")]
|
||||
internal DerInteger version;
|
||||
|
||||
// Token: 0x04007EBA RID: 32442
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EBA")]
|
||||
internal X509Name subject;
|
||||
|
||||
// Token: 0x04007EBB RID: 32443
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007EBB")]
|
||||
internal SubjectPublicKeyInfo subjectPKInfo;
|
||||
|
||||
// Token: 0x04007EBC RID: 32444
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007EBC")]
|
||||
internal Asn1Set attributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F69 RID: 8041
|
||||
[Token(Token = "0x2001F69")]
|
||||
public class ContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C955 RID: 51541 RVA: 0x002DA034 File Offset: 0x002D8234
|
||||
[Token(Token = "0x600C955")]
|
||||
[Address(RVA = "0x2F7E160", Offset = "0x2F7D160", VA = "0x182F7E160")]
|
||||
public static ContentInfo GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
return new ContentInfo(Asn1Sequence.GetInstance(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C956 RID: 51542 RVA: 0x002DA058 File Offset: 0x002D8258
|
||||
[Token(Token = "0x600C956")]
|
||||
[Address(RVA = "0x2F7E3B0", Offset = "0x2F7D3B0", VA = "0x182F7E3B0")]
|
||||
private ContentInfo(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.contentType = parser;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (ulong)1L)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1Object asn1Object;
|
||||
this.content = asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x0600C957 RID: 51543 RVA: 0x002DA0AC File Offset: 0x002D82AC
|
||||
[Token(Token = "0x600C957")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
// Token: 0x17001F3D RID: 7997
|
||||
// (get) Token: 0x0600C958 RID: 51544 RVA: 0x002DA0D0 File Offset: 0x002D82D0
|
||||
[Token(Token = "0x17001F3D")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C958")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F3E RID: 7998
|
||||
// (get) Token: 0x0600C959 RID: 51545 RVA: 0x002DA0E4 File Offset: 0x002D82E4
|
||||
[Token(Token = "0x17001F3E")]
|
||||
public Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600C959")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C95A RID: 51546 RVA: 0x002DA0F8 File Offset: 0x002D82F8
|
||||
[Token(Token = "0x600C95A")]
|
||||
[Address(RVA = "0x2F7E210", Offset = "0x2F7D210", VA = "0x182F7E210", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.content != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Encodable asn1Encodable = this.content;
|
||||
int num;
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(num, asn1Encodable);
|
||||
num = 0;
|
||||
if (berTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = berTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EBD RID: 32445
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EBD")]
|
||||
private readonly DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04007EBE RID: 32446
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EBE")]
|
||||
private readonly Asn1Encodable content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F6A RID: 8042
|
||||
[Token(Token = "0x2001F6A")]
|
||||
public class DHParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C95B RID: 51547 RVA: 0x002DA170 File Offset: 0x002D8370
|
||||
[Token(Token = "0x600C95B")]
|
||||
[Address(RVA = "0x2F7EE20", Offset = "0x2F7DE20", VA = "0x182F7EE20")]
|
||||
public DHParameter(BigInteger p, BigInteger g, int l)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(p);
|
||||
this.p = derInteger;
|
||||
DerInteger derInteger2 = new DerInteger(g);
|
||||
this.g = derInteger2;
|
||||
if (l != 0)
|
||||
{
|
||||
DerInteger derInteger3 = new DerInteger(l);
|
||||
this.l = derInteger3;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C95C RID: 51548 RVA: 0x002DA1B4 File Offset: 0x002D83B4
|
||||
[Token(Token = "0x600C95C")]
|
||||
[Address(RVA = "0x2F7EC20", Offset = "0x2F7DC20", VA = "0x182F7EC20")]
|
||||
public DHParameter(Asn1Sequence seq)
|
||||
{
|
||||
IEnumerator enumerator;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
enumerator = seq.GetEnumerator();
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
this.p = enumerator;
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
this.g = enumerator;
|
||||
if (enumerator == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (enumerator == 0 || enumerator != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.l = enumerator;
|
||||
}
|
||||
|
||||
// Token: 0x17001F3F RID: 7999
|
||||
// (get) Token: 0x0600C95D RID: 51549 RVA: 0x002DA20C File Offset: 0x002D840C
|
||||
[Token(Token = "0x17001F3F")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600C95D")]
|
||||
[Address(RVA = "0x2E78F50", Offset = "0x2E77F50", VA = "0x182E78F50")]
|
||||
get
|
||||
{
|
||||
return this.p.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F40 RID: 8000
|
||||
// (get) Token: 0x0600C95E RID: 51550 RVA: 0x002DA22C File Offset: 0x002D842C
|
||||
[Token(Token = "0x17001F40")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600C95E")]
|
||||
[Address(RVA = "0x2E78F70", Offset = "0x2E77F70", VA = "0x182E78F70")]
|
||||
get
|
||||
{
|
||||
return this.g.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F41 RID: 8001
|
||||
// (get) Token: 0x0600C95F RID: 51551 RVA: 0x002DA24C File Offset: 0x002D844C
|
||||
[Token(Token = "0x17001F41")]
|
||||
public BigInteger L
|
||||
{
|
||||
[Token(Token = "0x600C95F")]
|
||||
[Address(RVA = "0x2F7EEF0", Offset = "0x2F7DEF0", VA = "0x182F7EEF0")]
|
||||
get
|
||||
{
|
||||
DerInteger derInteger = this.l;
|
||||
if (derInteger == 0)
|
||||
{
|
||||
}
|
||||
return derInteger.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C960 RID: 51552 RVA: 0x002DA26C File Offset: 0x002D846C
|
||||
[Token(Token = "0x600C960")]
|
||||
[Address(RVA = "0x2F7EA60", Offset = "0x2F7DA60", VA = "0x182F7EA60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.p;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
DerInteger derInteger2 = this.g;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.l != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerInteger derInteger3 = this.l;
|
||||
if (derInteger3 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derInteger3;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EBF RID: 32447
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EBF")]
|
||||
internal DerInteger p;
|
||||
|
||||
// Token: 0x04007EC0 RID: 32448
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EC0")]
|
||||
internal DerInteger g;
|
||||
|
||||
// Token: 0x04007EC1 RID: 32449
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007EC1")]
|
||||
internal DerInteger l;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F6B RID: 8043
|
||||
[Token(Token = "0x2001F6B")]
|
||||
public class EncryptedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C961 RID: 51553 RVA: 0x002DA2EC File Offset: 0x002D84EC
|
||||
[Token(Token = "0x600C961")]
|
||||
[Address(RVA = "0x2F800C0", Offset = "0x2F7F0C0", VA = "0x182F800C0")]
|
||||
public static EncryptedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C961)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedData::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: 0x0600C962 RID: 51554 RVA: 0x002DA33C File Offset: 0x002D853C
|
||||
[Token(Token = "0x600C962")]
|
||||
[Address(RVA = "0x2F803E0", Offset = "0x2F7F3E0", VA = "0x182F803E0")]
|
||||
private EncryptedData(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C962)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedData::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4D:
|
||||
stloc:ArgumentException(var_7_57, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("sequence not version 0")))
|
||||
}
|
||||
|
||||
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: 0x0600C963 RID: 51555 RVA: 0x002DA3A4 File Offset: 0x002D85A4
|
||||
[Token(Token = "0x600C963")]
|
||||
[Address(RVA = "0x2F805F0", Offset = "0x2F7F5F0", VA = "0x182F805F0")]
|
||||
public EncryptedData(DerObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, Asn1Encodable content)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
if (contentType != 0)
|
||||
{
|
||||
}
|
||||
array[0] = contentType;
|
||||
Asn1Object asn1Object = encryptionAlgorithm.ToAsn1Object();
|
||||
if (asn1Object != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Object;
|
||||
int num;
|
||||
int num2;
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(num != 0, num2, content);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (berTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[2] = berTaggedObject;
|
||||
BerSequence berSequence = new BerSequence(array);
|
||||
this.data = berSequence;
|
||||
}
|
||||
|
||||
// Token: 0x17001F42 RID: 8002
|
||||
// (get) Token: 0x0600C964 RID: 51556 RVA: 0x002DA410 File Offset: 0x002D8610
|
||||
[Token(Token = "0x17001F42")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C964")]
|
||||
[Address(RVA = "0x2F807D0", Offset = "0x2F7F7D0", VA = "0x182F807D0")]
|
||||
get
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.data.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F43 RID: 8003
|
||||
// (get) Token: 0x0600C965 RID: 51557 RVA: 0x002DA438 File Offset: 0x002D8638
|
||||
[Token(Token = "0x17001F43")]
|
||||
public AlgorithmIdentifier EncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C965")]
|
||||
[Address(RVA = "0x2F80950", Offset = "0x2F7F950", VA = "0x182F80950")]
|
||||
get
|
||||
{
|
||||
Asn1SequenceParser parser = this.data.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
return algorithmIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F44 RID: 8004
|
||||
// (get) Token: 0x0600C966 RID: 51558 RVA: 0x002DA458 File Offset: 0x002D8658
|
||||
[Token(Token = "0x17001F44")]
|
||||
public Asn1OctetString Content
|
||||
{
|
||||
[Token(Token = "0x600C966")]
|
||||
[Address(RVA = "0x2F80870", Offset = "0x2F7F870", VA = "0x182F80870")]
|
||||
get
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.data;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)3L)
|
||||
{
|
||||
}
|
||||
Asn1SequenceParser parser = this.data.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
}
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
return Asn1OctetString.GetInstance(num, num2 != 0);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C967 RID: 51559 RVA: 0x002DA4A4 File Offset: 0x002D86A4
|
||||
[Token(Token = "0x600C967")]
|
||||
[Address(RVA = "0x2F802B0", Offset = "0x2F7F2B0", VA = "0x182F802B0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1Sequence asn1Sequence = this.data;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Sequence;
|
||||
BerSequence berSequence = new BerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EC2 RID: 32450
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EC2")]
|
||||
private readonly Asn1Sequence data;
|
||||
}
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F6C RID: 8044
|
||||
[Token(Token = "0x2001F6C")]
|
||||
public class EncryptedPrivateKeyInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C968 RID: 51560 RVA: 0x002DA4F0 File Offset: 0x002D86F0
|
||||
[Token(Token = "0x600C968")]
|
||||
[Address(RVA = "0x2F80DD0", Offset = "0x2F7FDD0", VA = "0x182F80DD0")]
|
||||
private EncryptedPrivateKeyInfo(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C968)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedPrivateKeyInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C969 RID: 51561 RVA: 0x002DA540 File Offset: 0x002D8740
|
||||
[Token(Token = "0x600C969")]
|
||||
[Address(RVA = "0x2F80D50", Offset = "0x2F7FD50", VA = "0x182F80D50")]
|
||||
public EncryptedPrivateKeyInfo(AlgorithmIdentifier algId, byte[] encoding)
|
||||
{
|
||||
this.algId = algId;
|
||||
DerOctetString derOctetString = new DerOctetString(encoding);
|
||||
this.data = derOctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C96A RID: 51562 RVA: 0x002DA568 File Offset: 0x002D8768
|
||||
[Token(Token = "0x600C96A")]
|
||||
[Address(RVA = "0x2F80990", Offset = "0x2F7F990", VA = "0x182F80990")]
|
||||
public static EncryptedPrivateKeyInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C96A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedPrivateKeyInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedPrivateKeyInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_32:
|
||||
stloc:string(var_8_38, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_50, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_8_38)), ldstr:string("obj")))
|
||||
stloc:ArgumentException(var_10_61, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x17001F45 RID: 8005
|
||||
// (get) Token: 0x0600C96B RID: 51563 RVA: 0x002DA5D8 File Offset: 0x002D87D8
|
||||
[Token(Token = "0x17001F45")]
|
||||
public AlgorithmIdentifier EncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C96B")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.algId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C96C RID: 51564 RVA: 0x002DA5EC File Offset: 0x002D87EC
|
||||
[Token(Token = "0x600C96C")]
|
||||
[Address(RVA = "0xA1ACA0", Offset = "0xA19CA0", VA = "0x180A1ACA0")]
|
||||
public byte[] GetEncryptedData()
|
||||
{
|
||||
Stream octetStream = ((Asn1OctetStringParser)this.data).GetOctetStream();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C96D RID: 51565 RVA: 0x002DA60C File Offset: 0x002D880C
|
||||
[Token(Token = "0x600C96D")]
|
||||
[Address(RVA = "0x2F80C40", Offset = "0x2F7FC40", VA = "0x182F80C40", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.algId;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = algorithmIdentifier;
|
||||
Asn1OctetString asn1OctetString = this.data;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1OctetString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EC3 RID: 32451
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EC3")]
|
||||
private readonly AlgorithmIdentifier algId;
|
||||
|
||||
// Token: 0x04007EC4 RID: 32452
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EC4")]
|
||||
private readonly Asn1OctetString data;
|
||||
}
|
||||
}
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F6D RID: 8045
|
||||
[Token(Token = "0x2001F6D")]
|
||||
public class EncryptionScheme : AlgorithmIdentifier
|
||||
{
|
||||
// Token: 0x0600C96E RID: 51566 RVA: 0x002DA654 File Offset: 0x002D8854
|
||||
[Token(Token = "0x600C96E")]
|
||||
[Address(RVA = "0xE603E0", Offset = "0xE5F3E0", VA = "0x180E603E0")]
|
||||
public EncryptionScheme(DerObjectIdentifier objectID)
|
||||
: base(objectID)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C96F RID: 51567 RVA: 0x002DA668 File Offset: 0x002D8868
|
||||
[Token(Token = "0x600C96F")]
|
||||
[Address(RVA = "0x2F81390", Offset = "0x2F80390", VA = "0x182F81390")]
|
||||
public EncryptionScheme(DerObjectIdentifier objectID, Asn1Encodable parameters)
|
||||
: base(objectID, parameters)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C970 RID: 51568 RVA: 0x002DA680 File Offset: 0x002D8880
|
||||
[Token(Token = "0x600C970")]
|
||||
[Address(RVA = "0x2F812A0", Offset = "0x2F802A0", VA = "0x182F812A0")]
|
||||
internal EncryptionScheme(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = seq.Parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600C971 RID: 51569 RVA: 0x002DA6AC File Offset: 0x002D88AC
|
||||
[Token(Token = "0x600C971")]
|
||||
[Address(RVA = "0x2F80EC0", Offset = "0x2F7FEC0", VA = "0x182F80EC0")]
|
||||
public new static EncryptionScheme GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C971)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptionScheme BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptionScheme::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_24:
|
||||
stloc:string(var_8_2A, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_42, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_8_2A)), 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: 0x17001F46 RID: 8006
|
||||
// (get) Token: 0x0600C972 RID: 51570 RVA: 0x002DA6FC File Offset: 0x002D88FC
|
||||
[Token(Token = "0x17001F46")]
|
||||
public Asn1Object Asn1Object
|
||||
{
|
||||
[Token(Token = "0x600C972")]
|
||||
[Address(RVA = "0x2F813A0", Offset = "0x2F803A0", VA = "0x182F813A0")]
|
||||
get
|
||||
{
|
||||
return this.ObjectID.ToAsn1Object();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C973 RID: 51571 RVA: 0x002DA71C File Offset: 0x002D891C
|
||||
[Token(Token = "0x600C973")]
|
||||
[Address(RVA = "0x2F81160", Offset = "0x2F80160", VA = "0x182F81160", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
Asn1Object asn1Object = this.ToAsn1Object();
|
||||
if (asn1Object != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1Object;
|
||||
DerObjectIdentifier objectID = this.ObjectID;
|
||||
if (objectID != 0)
|
||||
{
|
||||
}
|
||||
array[1] = objectID;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
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: 0x02001F6E RID: 8046
|
||||
[Token(Token = "0x2001F6E")]
|
||||
public class IssuerAndSerialNumber : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C974 RID: 51572 RVA: 0x002DA764 File Offset: 0x002D8964
|
||||
[Token(Token = "0x600C974")]
|
||||
[Address(RVA = "0x2F81890", Offset = "0x2F80890", VA = "0x182F81890")]
|
||||
public static IssuerAndSerialNumber GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C974)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.IssuerAndSerialNumber BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.IssuerAndSerialNumber::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2E:
|
||||
stloc:string(var_8_34, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_8_34)), ldstr:string("obj")))
|
||||
stloc:ArgumentException(var_10_5D, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C975 RID: 51573 RVA: 0x002DA7D0 File Offset: 0x002D89D0
|
||||
[Token(Token = "0x600C975")]
|
||||
[Address(RVA = "0x2F81CF0", Offset = "0x2F80CF0", VA = "0x182F81CF0")]
|
||||
private IssuerAndSerialNumber(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C975)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.IssuerAndSerialNumber::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C976 RID: 51574 RVA: 0x002DA820 File Offset: 0x002D8A20
|
||||
[Token(Token = "0x600C976")]
|
||||
[Address(RVA = "0x2F81C70", Offset = "0x2F80C70", VA = "0x182F81C70")]
|
||||
public IssuerAndSerialNumber(X509Name name, BigInteger certSerialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
DerInteger derInteger = new DerInteger(certSerialNumber);
|
||||
this.certSerialNumber = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C977 RID: 51575 RVA: 0x002DA848 File Offset: 0x002D8A48
|
||||
[Token(Token = "0x600C977")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public IssuerAndSerialNumber(X509Name name, DerInteger certSerialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
this.certSerialNumber = certSerialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x17001F47 RID: 8007
|
||||
// (get) Token: 0x0600C978 RID: 51576 RVA: 0x002DA86C File Offset: 0x002D8A6C
|
||||
[Token(Token = "0x17001F47")]
|
||||
public X509Name Name
|
||||
{
|
||||
[Token(Token = "0x600C978")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F48 RID: 8008
|
||||
// (get) Token: 0x0600C979 RID: 51577 RVA: 0x002DA880 File Offset: 0x002D8A80
|
||||
[Token(Token = "0x17001F48")]
|
||||
public DerInteger CertificateSerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C979")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.certSerialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C97A RID: 51578 RVA: 0x002DA894 File Offset: 0x002D8A94
|
||||
[Token(Token = "0x600C97A")]
|
||||
[Address(RVA = "0x2F81B60", Offset = "0x2F80B60", VA = "0x182F81B60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
X509Name x509Name = this.name;
|
||||
if (x509Name != 0)
|
||||
{
|
||||
}
|
||||
array[0] = x509Name;
|
||||
DerInteger derInteger = this.certSerialNumber;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EC5 RID: 32453
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EC5")]
|
||||
private readonly X509Name name;
|
||||
|
||||
// Token: 0x04007EC6 RID: 32454
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EC6")]
|
||||
private readonly DerInteger certSerialNumber;
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F6F RID: 8047
|
||||
[Token(Token = "0x2001F6F")]
|
||||
public class KeyDerivationFunc : AlgorithmIdentifier
|
||||
{
|
||||
// Token: 0x0600C97B RID: 51579 RVA: 0x002DA8DC File Offset: 0x002D8ADC
|
||||
[Token(Token = "0x600C97B")]
|
||||
[Address(RVA = "0x2F81E10", Offset = "0x2F80E10", VA = "0x182F81E10")]
|
||||
internal KeyDerivationFunc(Asn1Sequence seq)
|
||||
: base(seq)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C97C RID: 51580 RVA: 0x002DA8F0 File Offset: 0x002D8AF0
|
||||
[Token(Token = "0x600C97C")]
|
||||
[Address(RVA = "0x2F81390", Offset = "0x2F80390", VA = "0x182F81390")]
|
||||
public KeyDerivationFunc(DerObjectIdentifier id, Asn1Encodable parameters)
|
||||
: base(id, parameters)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F71 RID: 8049
|
||||
[Token(Token = "0x2001F71")]
|
||||
public class PbeParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C984 RID: 51588 RVA: 0x002DAAC4 File Offset: 0x002D8CC4
|
||||
[Token(Token = "0x600C984")]
|
||||
[Address(RVA = "0x2F867F0", Offset = "0x2F857F0", VA = "0x182F867F0")]
|
||||
public static PbeParameter GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C984)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PbeParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PbeParameter::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_9_3F)), ldstr:string("obj")))
|
||||
stloc:ArgumentException(var_11_68, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C985 RID: 51589 RVA: 0x002DAB3C File Offset: 0x002D8D3C
|
||||
[Token(Token = "0x600C985")]
|
||||
[Address(RVA = "0x2F86BB0", Offset = "0x2F85BB0", VA = "0x182F86BB0")]
|
||||
private PbeParameter(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C985)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PbeParameter::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C986 RID: 51590 RVA: 0x002DAB8C File Offset: 0x002D8D8C
|
||||
[Token(Token = "0x600C986")]
|
||||
[Address(RVA = "0x2F86CA0", Offset = "0x2F85CA0", VA = "0x182F86CA0")]
|
||||
public PbeParameter(byte[] salt, int iterationCount)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(salt);
|
||||
this.salt = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(iterationCount);
|
||||
this.iterationCount = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C987 RID: 51591 RVA: 0x002DABBC File Offset: 0x002D8DBC
|
||||
[Token(Token = "0x600C987")]
|
||||
[Address(RVA = "0x4DB0F0", Offset = "0x4DA0F0", VA = "0x1804DB0F0")]
|
||||
public byte[] GetSalt()
|
||||
{
|
||||
Stream octetStream = ((Asn1OctetStringParser)this.salt).GetOctetStream();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001F4B RID: 8011
|
||||
// (get) Token: 0x0600C988 RID: 51592 RVA: 0x002DABDC File Offset: 0x002D8DDC
|
||||
[Token(Token = "0x17001F4B")]
|
||||
public BigInteger IterationCount
|
||||
{
|
||||
[Token(Token = "0x600C988")]
|
||||
[Address(RVA = "0x2E80530", Offset = "0x2E7F530", VA = "0x182E80530")]
|
||||
get
|
||||
{
|
||||
return this.iterationCount.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C989 RID: 51593 RVA: 0x002DABFC File Offset: 0x002D8DFC
|
||||
[Token(Token = "0x600C989")]
|
||||
[Address(RVA = "0x2F86AA0", Offset = "0x2F85AA0", VA = "0x182F86AA0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
Asn1OctetString asn1OctetString = this.salt;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1OctetString;
|
||||
DerInteger derInteger = this.iterationCount;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007ECA RID: 32458
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007ECA")]
|
||||
private readonly Asn1OctetString salt;
|
||||
|
||||
// Token: 0x04007ECB RID: 32459
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007ECB")]
|
||||
private readonly DerInteger iterationCount;
|
||||
}
|
||||
}
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F72 RID: 8050
|
||||
[Token(Token = "0x2001F72")]
|
||||
public class PbeS2Parameters : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C98A RID: 51594 RVA: 0x002DAC44 File Offset: 0x002D8E44
|
||||
[Token(Token = "0x600C98A")]
|
||||
[Address(RVA = "0x2F86D40", Offset = "0x2F85D40", VA = "0x182F86D40")]
|
||||
public static PbeS2Parameters GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
return new PbeS2Parameters(Asn1Sequence.GetInstance(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C98B RID: 51595 RVA: 0x002DAC68 File Offset: 0x002D8E68
|
||||
[Token(Token = "0x600C98B")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public PbeS2Parameters(KeyDerivationFunc keyDevFunc, EncryptionScheme encScheme)
|
||||
{
|
||||
this.func = keyDevFunc;
|
||||
this.scheme = encScheme;
|
||||
}
|
||||
|
||||
// Token: 0x0600C98C RID: 51596 RVA: 0x002DAC8C File Offset: 0x002D8E8C
|
||||
[Token(Token = "0x600C98C")]
|
||||
[Address(RVA = "0x2F86F00", Offset = "0x2F85F00", VA = "0x182F86F00")]
|
||||
[Obsolete]
|
||||
public PbeS2Parameters(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C98C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PbeS2Parameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_48:
|
||||
stloc:ArgumentException(var_9_57, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x17001F4C RID: 8012
|
||||
// (get) Token: 0x0600C98D RID: 51597 RVA: 0x002DACF4 File Offset: 0x002D8EF4
|
||||
[Token(Token = "0x17001F4C")]
|
||||
public KeyDerivationFunc KeyDerivationFunc
|
||||
{
|
||||
[Token(Token = "0x600C98D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.func;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F4D RID: 8013
|
||||
// (get) Token: 0x0600C98E RID: 51598 RVA: 0x002DAD08 File Offset: 0x002D8F08
|
||||
[Token(Token = "0x17001F4D")]
|
||||
public EncryptionScheme EncryptionScheme
|
||||
{
|
||||
[Token(Token = "0x600C98E")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.scheme;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C98F RID: 51599 RVA: 0x002DAD1C File Offset: 0x002D8F1C
|
||||
[Token(Token = "0x600C98F")]
|
||||
[Address(RVA = "0x2F86DF0", Offset = "0x2F85DF0", VA = "0x182F86DF0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
KeyDerivationFunc keyDerivationFunc = this.func;
|
||||
if (keyDerivationFunc != 0)
|
||||
{
|
||||
}
|
||||
array[0] = keyDerivationFunc;
|
||||
EncryptionScheme encryptionScheme = this.scheme;
|
||||
if (encryptionScheme != 0)
|
||||
{
|
||||
}
|
||||
array[1] = encryptionScheme;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007ECC RID: 32460
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007ECC")]
|
||||
private readonly KeyDerivationFunc func;
|
||||
|
||||
// Token: 0x04007ECD RID: 32461
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007ECD")]
|
||||
private readonly EncryptionScheme scheme;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,278 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F73 RID: 8051
|
||||
[Token(Token = "0x2001F73")]
|
||||
public class Pbkdf2Params : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C990 RID: 51600 RVA: 0x002DAD64 File Offset: 0x002D8F64
|
||||
[Token(Token = "0x600C990")]
|
||||
[Address(RVA = "0x2F871C0", Offset = "0x2F861C0", VA = "0x182F871C0")]
|
||||
public static Pbkdf2Params GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C990)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pbkdf2Params BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pbkdf2Params::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_2C)), 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: 0x0600C991 RID: 51601 RVA: 0x002DADB8 File Offset: 0x002D8FB8
|
||||
[Token(Token = "0x600C991")]
|
||||
[Address(RVA = "0x2F87830", Offset = "0x2F86830", VA = "0x182F87830")]
|
||||
public Pbkdf2Params(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.octStr = parser;
|
||||
parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
}
|
||||
if (parser2 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.iterationCount = parser2;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)2L)
|
||||
{
|
||||
if (seq.Parser == 0)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
}
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
if (parser5 != 0)
|
||||
{
|
||||
this.keyLength = parser6;
|
||||
}
|
||||
if (parser6 != 0)
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.prf = algorithmIdentifier;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C992 RID: 51602 RVA: 0x002DAE50 File Offset: 0x002D9050
|
||||
[Token(Token = "0x600C992")]
|
||||
[Address(RVA = "0x2F87B60", Offset = "0x2F86B60", VA = "0x182F87B60")]
|
||||
public Pbkdf2Params(byte[] salt, int iterationCount)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(salt);
|
||||
this.octStr = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(iterationCount);
|
||||
this.iterationCount = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C993 RID: 51603 RVA: 0x002DAE80 File Offset: 0x002D9080
|
||||
[Token(Token = "0x600C993")]
|
||||
[Address(RVA = "0x2F87AD0", Offset = "0x2F86AD0", VA = "0x182F87AD0")]
|
||||
public Pbkdf2Params(byte[] salt, int iterationCount, int keyLength)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(keyLength);
|
||||
this.keyLength = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C994 RID: 51604 RVA: 0x002DAE9C File Offset: 0x002D909C
|
||||
[Token(Token = "0x600C994")]
|
||||
[Address(RVA = "0x2F877A0", Offset = "0x2F867A0", VA = "0x182F877A0")]
|
||||
public Pbkdf2Params(byte[] salt, int iterationCount, int keyLength, AlgorithmIdentifier prf)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(keyLength);
|
||||
this.keyLength = derInteger;
|
||||
this.prf = 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600C995 RID: 51605 RVA: 0x002DAEC0 File Offset: 0x002D90C0
|
||||
[Token(Token = "0x600C995")]
|
||||
[Address(RVA = "0x2F87770", Offset = "0x2F86770", VA = "0x182F87770")]
|
||||
public Pbkdf2Params(byte[] salt, int iterationCount, AlgorithmIdentifier prf)
|
||||
{
|
||||
this.prf = prf;
|
||||
}
|
||||
|
||||
// Token: 0x0600C996 RID: 51606 RVA: 0x002DAED4 File Offset: 0x002D90D4
|
||||
[Token(Token = "0x600C996")]
|
||||
[Address(RVA = "0x4DB0F0", Offset = "0x4DA0F0", VA = "0x1804DB0F0")]
|
||||
public byte[] GetSalt()
|
||||
{
|
||||
Stream octetStream = ((Asn1OctetStringParser)this.octStr).GetOctetStream();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001F4E RID: 8014
|
||||
// (get) Token: 0x0600C997 RID: 51607 RVA: 0x002DAEF4 File Offset: 0x002D90F4
|
||||
[Token(Token = "0x17001F4E")]
|
||||
public BigInteger IterationCount
|
||||
{
|
||||
[Token(Token = "0x600C997")]
|
||||
[Address(RVA = "0x2E80530", Offset = "0x2E7F530", VA = "0x182E80530")]
|
||||
get
|
||||
{
|
||||
return this.iterationCount.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F4F RID: 8015
|
||||
// (get) Token: 0x0600C998 RID: 51608 RVA: 0x002DAF14 File Offset: 0x002D9114
|
||||
[Token(Token = "0x17001F4F")]
|
||||
public BigInteger KeyLength
|
||||
{
|
||||
[Token(Token = "0x600C998")]
|
||||
[Address(RVA = "0x2D85730", Offset = "0x2D84730", VA = "0x182D85730")]
|
||||
get
|
||||
{
|
||||
DerInteger derInteger = this.keyLength;
|
||||
if (derInteger == 0)
|
||||
{
|
||||
}
|
||||
return derInteger.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F50 RID: 8016
|
||||
// (get) Token: 0x0600C999 RID: 51609 RVA: 0x002DAF34 File Offset: 0x002D9134
|
||||
[Token(Token = "0x17001F50")]
|
||||
public bool IsDefaultPrf
|
||||
{
|
||||
[Token(Token = "0x600C999")]
|
||||
[Address(RVA = "0x2F87C00", Offset = "0x2F86C00", VA = "0x182F87C00")]
|
||||
get
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier = this.prf;
|
||||
if (algorithmIdentifier == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
Asn1Object asn1Object = algorithmIdentifier.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F51 RID: 8017
|
||||
// (get) Token: 0x0600C99A RID: 51610 RVA: 0x002DAF5C File Offset: 0x002D915C
|
||||
[Token(Token = "0x17001F51")]
|
||||
public AlgorithmIdentifier Prf
|
||||
{
|
||||
[Token(Token = "0x600C99A")]
|
||||
[Address(RVA = "0x2F87C90", Offset = "0x2F86C90", VA = "0x182F87C90")]
|
||||
get
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier = this.prf;
|
||||
if (algorithmIdentifier == 0)
|
||||
{
|
||||
}
|
||||
return algorithmIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C99B RID: 51611 RVA: 0x002DAF78 File Offset: 0x002D9178
|
||||
[Token(Token = "0x600C99B")]
|
||||
[Address(RVA = "0x2F873C0", Offset = "0x2F863C0", VA = "0x182F873C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
Asn1OctetString asn1OctetString = this.octStr;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1OctetString;
|
||||
DerInteger derInteger = this.iterationCount;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.keyLength != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerInteger derInteger2 = this.keyLength;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derInteger2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.prf != 0)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.prf;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = algorithmIdentifier;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C99C RID: 51612 RVA: 0x002DB028 File Offset: 0x002D9228
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C99C")]
|
||||
[Address(RVA = "0x2F87690", Offset = "0x2F86690", VA = "0x182F87690")]
|
||||
static Pbkdf2Params()
|
||||
{
|
||||
DerObjectIdentifier idHmacWithSha = PkcsObjectIdentifiers.IdHmacWithSha1;
|
||||
DerNull instance = DerNull.Instance;
|
||||
Pbkdf2Params.algid_hmacWithSHA1 = new AlgorithmIdentifier(idHmacWithSha, instance);
|
||||
}
|
||||
|
||||
// Token: 0x04007ECE RID: 32462
|
||||
[Token(Token = "0x4007ECE")]
|
||||
private static AlgorithmIdentifier algid_hmacWithSHA1;
|
||||
|
||||
// Token: 0x04007ECF RID: 32463
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007ECF")]
|
||||
private readonly Asn1OctetString octStr;
|
||||
|
||||
// Token: 0x04007ED0 RID: 32464
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007ED0")]
|
||||
private readonly DerInteger iterationCount;
|
||||
|
||||
// Token: 0x04007ED1 RID: 32465
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007ED1")]
|
||||
private readonly DerInteger keyLength;
|
||||
|
||||
// Token: 0x04007ED2 RID: 32466
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007ED2")]
|
||||
private readonly AlgorithmIdentifier prf;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F76 RID: 8054
|
||||
[Token(Token = "0x2001F76")]
|
||||
public class Pfx : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9A5 RID: 51621 RVA: 0x002DB6D4 File Offset: 0x002D98D4
|
||||
[Token(Token = "0x600C9A5")]
|
||||
[Address(RVA = "0x2F87EF0", Offset = "0x2F86EF0", VA = "0x182F87EF0")]
|
||||
public Pfx(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
BigInteger bigInteger;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
parser = seq.Parser;
|
||||
}
|
||||
while (parser == 0 || parser == 0 || bigInteger.IntValue != 3);
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
ContentInfo contentInfo;
|
||||
this.contentInfo = contentInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable == (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
MacData macData;
|
||||
this.macData = macData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A6 RID: 51622 RVA: 0x002DB730 File Offset: 0x002D9930
|
||||
[Token(Token = "0x600C9A6")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public Pfx(ContentInfo contentInfo, MacData macData)
|
||||
{
|
||||
this.contentInfo = contentInfo;
|
||||
this.macData = macData;
|
||||
}
|
||||
|
||||
// Token: 0x17001F53 RID: 8019
|
||||
// (get) Token: 0x0600C9A7 RID: 51623 RVA: 0x002DB754 File Offset: 0x002D9954
|
||||
[Token(Token = "0x17001F53")]
|
||||
public ContentInfo AuthSafe
|
||||
{
|
||||
[Token(Token = "0x600C9A7")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.contentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F54 RID: 8020
|
||||
// (get) Token: 0x0600C9A8 RID: 51624 RVA: 0x002DB768 File Offset: 0x002D9968
|
||||
[Token(Token = "0x17001F54")]
|
||||
public MacData MacData
|
||||
{
|
||||
[Token(Token = "0x600C9A8")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.macData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A9 RID: 51625 RVA: 0x002DB77C File Offset: 0x002D997C
|
||||
[Token(Token = "0x600C9A9")]
|
||||
[Address(RVA = "0x2F87D00", Offset = "0x2F86D00", VA = "0x182F87D00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = new DerInteger(3);
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
ContentInfo contentInfo = this.contentInfo;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
}
|
||||
array[1] = contentInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.macData != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
MacData macData = this.macData;
|
||||
if (macData != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = macData;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007F65 RID: 32613
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F65")]
|
||||
private ContentInfo contentInfo;
|
||||
|
||||
// Token: 0x04007F66 RID: 32614
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F66")]
|
||||
private MacData macData;
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F74 RID: 8052
|
||||
[Token(Token = "0x2001F74")]
|
||||
public class Pkcs12PbeParams : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C99D RID: 51613 RVA: 0x002DB050 File Offset: 0x002D9250
|
||||
[Token(Token = "0x600C99D")]
|
||||
[Address(RVA = "0x2F88460", Offset = "0x2F87460", VA = "0x182F88460")]
|
||||
public Pkcs12PbeParams(byte[] salt, int iterations)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(salt);
|
||||
this.iv = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(iterations);
|
||||
this.iterations = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C99E RID: 51614 RVA: 0x002DB080 File Offset: 0x002D9280
|
||||
[Token(Token = "0x600C99E")]
|
||||
[Address(RVA = "0x2F88500", Offset = "0x2F87500", VA = "0x182F88500")]
|
||||
private Pkcs12PbeParams(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C99E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pkcs12PbeParams::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C99F RID: 51615 RVA: 0x002DB0D0 File Offset: 0x002D92D0
|
||||
[Token(Token = "0x600C99F")]
|
||||
[Address(RVA = "0x2F880A0", Offset = "0x2F870A0", VA = "0x182F880A0")]
|
||||
public static Pkcs12PbeParams GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C99F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pkcs12PbeParams BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pkcs12PbeParams::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_32:
|
||||
stloc:string(var_8_38, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_50, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_8_38)), ldstr:string("obj")))
|
||||
stloc:ArgumentException(var_10_61, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x17001F52 RID: 8018
|
||||
// (get) Token: 0x0600C9A0 RID: 51616 RVA: 0x002DB140 File Offset: 0x002D9340
|
||||
[Token(Token = "0x17001F52")]
|
||||
public BigInteger Iterations
|
||||
{
|
||||
[Token(Token = "0x600C9A0")]
|
||||
[Address(RVA = "0x2EAFE00", Offset = "0x2EAEE00", VA = "0x182EAFE00")]
|
||||
get
|
||||
{
|
||||
return this.iterations.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A1 RID: 51617 RVA: 0x002DB160 File Offset: 0x002D9360
|
||||
[Token(Token = "0x600C9A1")]
|
||||
[Address(RVA = "0xA1ACA0", Offset = "0xA19CA0", VA = "0x180A1ACA0")]
|
||||
public byte[] GetIV()
|
||||
{
|
||||
Stream octetStream = ((Asn1OctetStringParser)this.iv).GetOctetStream();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A2 RID: 51618 RVA: 0x002DB180 File Offset: 0x002D9380
|
||||
[Token(Token = "0x600C9A2")]
|
||||
[Address(RVA = "0x2F88350", Offset = "0x2F87350", VA = "0x182F88350", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
Asn1OctetString asn1OctetString = this.iv;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1OctetString;
|
||||
DerInteger derInteger = this.iterations;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007ED3 RID: 32467
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007ED3")]
|
||||
private readonly DerInteger iterations;
|
||||
|
||||
// Token: 0x04007ED4 RID: 32468
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007ED4")]
|
||||
private readonly Asn1OctetString iv;
|
||||
}
|
||||
}
|
||||
+708
@@ -0,0 +1,708 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F75 RID: 8053
|
||||
[Token(Token = "0x2001F75")]
|
||||
public abstract class PkcsObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600C9A3 RID: 51619 RVA: 0x002DB1C8 File Offset: 0x002D93C8
|
||||
[Token(Token = "0x600C9A3")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected PkcsObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A4 RID: 51620 RVA: 0x002DB1DC File Offset: 0x002D93DC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C9A4")]
|
||||
[Address(RVA = "0x2F885F0", Offset = "0x2F875F0", VA = "0x182F885F0")]
|
||||
static PkcsObjectIdentifiers()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9A4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PkcsObjectIdentifiers::.cctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.1")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::RsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD4WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SrsaOaepEncryptionSet, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsaesOaep, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdMgf1, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdPSpecified, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512_224WithRSAEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512_256WithRSAEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::DhKeyAgreement, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.3.1")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD2AndDesCbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.1")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD2AndRC2Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.4")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD5AndDesCbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.3")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD5AndRC2Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.6")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithSha1AndDesCbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.10")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithSha1AndRC2Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.11")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdPbeS2, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.13")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdPbkdf2, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.12")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::DesEde3Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.3.7")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::RC2Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.3.2")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.2")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD4, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.4")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.5")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha1, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.7")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha224, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.8")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha256, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.9")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha384, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.10")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha512, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.11")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Data, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.1")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SignedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.2")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::EnvelopedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.3")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SignedAndEnvelopedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.4")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::DigestedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.5")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::EncryptedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.6")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtEmailAddress, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.1")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtUnstructuredName, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.2")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtContentType, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.3")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtMessageDigest, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.4")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSigningTime, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.5")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtCounterSignature, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.6")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtChallengePassword, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.7")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtUnstructuredAddress, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.8")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtExtendedCertificateAttributes, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.9")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSigningDescription, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.13")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtExtensionRequest, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.14")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSmimeCapabilities, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.15")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdSmime, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtFriendlyName, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.20")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtLocalKeyID, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.21")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::X509CertType, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.22.1")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::X509Certificate, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.22.1")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SdsiCertificate, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.22.2")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::X509Crl, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.23.1")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdSmime)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgEsdh, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgCms3DesWrap, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgCmsRC2Wrap, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgPwriKek, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgSsdh, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsaKem, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PreferSignedData, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSmimeCapabilities)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::CannotDecryptAny, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSmimeCapabilities)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SmimeCapabilitiesVersions, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSmimeCapabilities)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAAReceiptRequest, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdSmime)))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTAuthData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.2")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTTstInfo, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.4")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTCompressedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.9")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTAuthEnvelopedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.23")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTTimestampedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.31")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfOrigin, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.1")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfReceipt, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.2")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfDelivery, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.3")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfSender, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.4")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfApproval, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.5")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfCreation, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.6")))
|
||||
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAAOid, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.2")))
|
||||
}
|
||||
|
||||
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: 0x04007ED5 RID: 32469
|
||||
[Token(Token = "0x4007ED5")]
|
||||
public const string Pkcs1 = "1.2.840.113549.1.1";
|
||||
|
||||
// Token: 0x04007ED6 RID: 32470
|
||||
[Token(Token = "0x4007ED6")]
|
||||
internal static readonly DerObjectIdentifier Pkcs1Oid;
|
||||
|
||||
// Token: 0x04007ED7 RID: 32471
|
||||
[Token(Token = "0x4007ED7")]
|
||||
public static readonly DerObjectIdentifier RsaEncryption;
|
||||
|
||||
// Token: 0x04007ED8 RID: 32472
|
||||
[Token(Token = "0x4007ED8")]
|
||||
public static readonly DerObjectIdentifier MD2WithRsaEncryption;
|
||||
|
||||
// Token: 0x04007ED9 RID: 32473
|
||||
[Token(Token = "0x4007ED9")]
|
||||
public static readonly DerObjectIdentifier MD4WithRsaEncryption;
|
||||
|
||||
// Token: 0x04007EDA RID: 32474
|
||||
[Token(Token = "0x4007EDA")]
|
||||
public static readonly DerObjectIdentifier MD5WithRsaEncryption;
|
||||
|
||||
// Token: 0x04007EDB RID: 32475
|
||||
[Token(Token = "0x4007EDB")]
|
||||
public static readonly DerObjectIdentifier Sha1WithRsaEncryption;
|
||||
|
||||
// Token: 0x04007EDC RID: 32476
|
||||
[Token(Token = "0x4007EDC")]
|
||||
public static readonly DerObjectIdentifier SrsaOaepEncryptionSet;
|
||||
|
||||
// Token: 0x04007EDD RID: 32477
|
||||
[Token(Token = "0x4007EDD")]
|
||||
public static readonly DerObjectIdentifier IdRsaesOaep;
|
||||
|
||||
// Token: 0x04007EDE RID: 32478
|
||||
[Token(Token = "0x4007EDE")]
|
||||
public static readonly DerObjectIdentifier IdMgf1;
|
||||
|
||||
// Token: 0x04007EDF RID: 32479
|
||||
[Token(Token = "0x4007EDF")]
|
||||
public static readonly DerObjectIdentifier IdPSpecified;
|
||||
|
||||
// Token: 0x04007EE0 RID: 32480
|
||||
[Token(Token = "0x4007EE0")]
|
||||
public static readonly DerObjectIdentifier IdRsassaPss;
|
||||
|
||||
// Token: 0x04007EE1 RID: 32481
|
||||
[Token(Token = "0x4007EE1")]
|
||||
public static readonly DerObjectIdentifier Sha256WithRsaEncryption;
|
||||
|
||||
// Token: 0x04007EE2 RID: 32482
|
||||
[Token(Token = "0x4007EE2")]
|
||||
public static readonly DerObjectIdentifier Sha384WithRsaEncryption;
|
||||
|
||||
// Token: 0x04007EE3 RID: 32483
|
||||
[Token(Token = "0x4007EE3")]
|
||||
public static readonly DerObjectIdentifier Sha512WithRsaEncryption;
|
||||
|
||||
// Token: 0x04007EE4 RID: 32484
|
||||
[Token(Token = "0x4007EE4")]
|
||||
public static readonly DerObjectIdentifier Sha224WithRsaEncryption;
|
||||
|
||||
// Token: 0x04007EE5 RID: 32485
|
||||
[Token(Token = "0x4007EE5")]
|
||||
public static readonly DerObjectIdentifier Sha512_224WithRSAEncryption;
|
||||
|
||||
// Token: 0x04007EE6 RID: 32486
|
||||
[Token(Token = "0x4007EE6")]
|
||||
public static readonly DerObjectIdentifier Sha512_256WithRSAEncryption;
|
||||
|
||||
// Token: 0x04007EE7 RID: 32487
|
||||
[Token(Token = "0x4007EE7")]
|
||||
public const string Pkcs3 = "1.2.840.113549.1.3";
|
||||
|
||||
// Token: 0x04007EE8 RID: 32488
|
||||
[Token(Token = "0x4007EE8")]
|
||||
public static readonly DerObjectIdentifier DhKeyAgreement;
|
||||
|
||||
// Token: 0x04007EE9 RID: 32489
|
||||
[Token(Token = "0x4007EE9")]
|
||||
public const string Pkcs5 = "1.2.840.113549.1.5";
|
||||
|
||||
// Token: 0x04007EEA RID: 32490
|
||||
[Token(Token = "0x4007EEA")]
|
||||
public static readonly DerObjectIdentifier PbeWithMD2AndDesCbc;
|
||||
|
||||
// Token: 0x04007EEB RID: 32491
|
||||
[Token(Token = "0x4007EEB")]
|
||||
public static readonly DerObjectIdentifier PbeWithMD2AndRC2Cbc;
|
||||
|
||||
// Token: 0x04007EEC RID: 32492
|
||||
[Token(Token = "0x4007EEC")]
|
||||
public static readonly DerObjectIdentifier PbeWithMD5AndDesCbc;
|
||||
|
||||
// Token: 0x04007EED RID: 32493
|
||||
[Token(Token = "0x4007EED")]
|
||||
public static readonly DerObjectIdentifier PbeWithMD5AndRC2Cbc;
|
||||
|
||||
// Token: 0x04007EEE RID: 32494
|
||||
[Token(Token = "0x4007EEE")]
|
||||
public static readonly DerObjectIdentifier PbeWithSha1AndDesCbc;
|
||||
|
||||
// Token: 0x04007EEF RID: 32495
|
||||
[Token(Token = "0x4007EEF")]
|
||||
public static readonly DerObjectIdentifier PbeWithSha1AndRC2Cbc;
|
||||
|
||||
// Token: 0x04007EF0 RID: 32496
|
||||
[Token(Token = "0x4007EF0")]
|
||||
public static readonly DerObjectIdentifier IdPbeS2;
|
||||
|
||||
// Token: 0x04007EF1 RID: 32497
|
||||
[Token(Token = "0x4007EF1")]
|
||||
public static readonly DerObjectIdentifier IdPbkdf2;
|
||||
|
||||
// Token: 0x04007EF2 RID: 32498
|
||||
[Token(Token = "0x4007EF2")]
|
||||
public const string EncryptionAlgorithm = "1.2.840.113549.3";
|
||||
|
||||
// Token: 0x04007EF3 RID: 32499
|
||||
[Token(Token = "0x4007EF3")]
|
||||
public static readonly DerObjectIdentifier DesEde3Cbc;
|
||||
|
||||
// Token: 0x04007EF4 RID: 32500
|
||||
[Token(Token = "0x4007EF4")]
|
||||
public static readonly DerObjectIdentifier RC2Cbc;
|
||||
|
||||
// Token: 0x04007EF5 RID: 32501
|
||||
[Token(Token = "0x4007EF5")]
|
||||
public const string DigestAlgorithm = "1.2.840.113549.2";
|
||||
|
||||
// Token: 0x04007EF6 RID: 32502
|
||||
[Token(Token = "0x4007EF6")]
|
||||
public static readonly DerObjectIdentifier MD2;
|
||||
|
||||
// Token: 0x04007EF7 RID: 32503
|
||||
[Token(Token = "0x4007EF7")]
|
||||
public static readonly DerObjectIdentifier MD4;
|
||||
|
||||
// Token: 0x04007EF8 RID: 32504
|
||||
[Token(Token = "0x4007EF8")]
|
||||
public static readonly DerObjectIdentifier MD5;
|
||||
|
||||
// Token: 0x04007EF9 RID: 32505
|
||||
[Token(Token = "0x4007EF9")]
|
||||
public static readonly DerObjectIdentifier IdHmacWithSha1;
|
||||
|
||||
// Token: 0x04007EFA RID: 32506
|
||||
[Token(Token = "0x4007EFA")]
|
||||
public static readonly DerObjectIdentifier IdHmacWithSha224;
|
||||
|
||||
// Token: 0x04007EFB RID: 32507
|
||||
[Token(Token = "0x4007EFB")]
|
||||
public static readonly DerObjectIdentifier IdHmacWithSha256;
|
||||
|
||||
// Token: 0x04007EFC RID: 32508
|
||||
[Token(Token = "0x4007EFC")]
|
||||
public static readonly DerObjectIdentifier IdHmacWithSha384;
|
||||
|
||||
// Token: 0x04007EFD RID: 32509
|
||||
[Token(Token = "0x4007EFD")]
|
||||
public static readonly DerObjectIdentifier IdHmacWithSha512;
|
||||
|
||||
// Token: 0x04007EFE RID: 32510
|
||||
[Token(Token = "0x4007EFE")]
|
||||
public const string Pkcs7 = "1.2.840.113549.1.7";
|
||||
|
||||
// Token: 0x04007EFF RID: 32511
|
||||
[Token(Token = "0x4007EFF")]
|
||||
public static readonly DerObjectIdentifier Data;
|
||||
|
||||
// Token: 0x04007F00 RID: 32512
|
||||
[Token(Token = "0x4007F00")]
|
||||
public static readonly DerObjectIdentifier SignedData;
|
||||
|
||||
// Token: 0x04007F01 RID: 32513
|
||||
[Token(Token = "0x4007F01")]
|
||||
public static readonly DerObjectIdentifier EnvelopedData;
|
||||
|
||||
// Token: 0x04007F02 RID: 32514
|
||||
[Token(Token = "0x4007F02")]
|
||||
public static readonly DerObjectIdentifier SignedAndEnvelopedData;
|
||||
|
||||
// Token: 0x04007F03 RID: 32515
|
||||
[Token(Token = "0x4007F03")]
|
||||
public static readonly DerObjectIdentifier DigestedData;
|
||||
|
||||
// Token: 0x04007F04 RID: 32516
|
||||
[Token(Token = "0x4007F04")]
|
||||
public static readonly DerObjectIdentifier EncryptedData;
|
||||
|
||||
// Token: 0x04007F05 RID: 32517
|
||||
[Token(Token = "0x4007F05")]
|
||||
public const string Pkcs9 = "1.2.840.113549.1.9";
|
||||
|
||||
// Token: 0x04007F06 RID: 32518
|
||||
[Token(Token = "0x4007F06")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtEmailAddress;
|
||||
|
||||
// Token: 0x04007F07 RID: 32519
|
||||
[Token(Token = "0x4007F07")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtUnstructuredName;
|
||||
|
||||
// Token: 0x04007F08 RID: 32520
|
||||
[Token(Token = "0x4007F08")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtContentType;
|
||||
|
||||
// Token: 0x04007F09 RID: 32521
|
||||
[Token(Token = "0x4007F09")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtMessageDigest;
|
||||
|
||||
// Token: 0x04007F0A RID: 32522
|
||||
[Token(Token = "0x4007F0A")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtSigningTime;
|
||||
|
||||
// Token: 0x04007F0B RID: 32523
|
||||
[Token(Token = "0x4007F0B")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtCounterSignature;
|
||||
|
||||
// Token: 0x04007F0C RID: 32524
|
||||
[Token(Token = "0x4007F0C")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtChallengePassword;
|
||||
|
||||
// Token: 0x04007F0D RID: 32525
|
||||
[Token(Token = "0x4007F0D")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtUnstructuredAddress;
|
||||
|
||||
// Token: 0x04007F0E RID: 32526
|
||||
[Token(Token = "0x4007F0E")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtExtendedCertificateAttributes;
|
||||
|
||||
// Token: 0x04007F0F RID: 32527
|
||||
[Token(Token = "0x4007F0F")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtSigningDescription;
|
||||
|
||||
// Token: 0x04007F10 RID: 32528
|
||||
[Token(Token = "0x4007F10")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtExtensionRequest;
|
||||
|
||||
// Token: 0x04007F11 RID: 32529
|
||||
[Token(Token = "0x4007F11")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtSmimeCapabilities;
|
||||
|
||||
// Token: 0x04007F12 RID: 32530
|
||||
[Token(Token = "0x4007F12")]
|
||||
public static readonly DerObjectIdentifier IdSmime;
|
||||
|
||||
// Token: 0x04007F13 RID: 32531
|
||||
[Token(Token = "0x4007F13")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtFriendlyName;
|
||||
|
||||
// Token: 0x04007F14 RID: 32532
|
||||
[Token(Token = "0x4007F14")]
|
||||
public static readonly DerObjectIdentifier Pkcs9AtLocalKeyID;
|
||||
|
||||
// Token: 0x04007F15 RID: 32533
|
||||
[Token(Token = "0x4007F15")]
|
||||
[Obsolete]
|
||||
public static readonly DerObjectIdentifier X509CertType;
|
||||
|
||||
// Token: 0x04007F16 RID: 32534
|
||||
[Token(Token = "0x4007F16")]
|
||||
public const string CertTypes = "1.2.840.113549.1.9.22";
|
||||
|
||||
// Token: 0x04007F17 RID: 32535
|
||||
[Token(Token = "0x4007F17")]
|
||||
public static readonly DerObjectIdentifier X509Certificate;
|
||||
|
||||
// Token: 0x04007F18 RID: 32536
|
||||
[Token(Token = "0x4007F18")]
|
||||
public static readonly DerObjectIdentifier SdsiCertificate;
|
||||
|
||||
// Token: 0x04007F19 RID: 32537
|
||||
[Token(Token = "0x4007F19")]
|
||||
public const string CrlTypes = "1.2.840.113549.1.9.23";
|
||||
|
||||
// Token: 0x04007F1A RID: 32538
|
||||
[Token(Token = "0x4007F1A")]
|
||||
public static readonly DerObjectIdentifier X509Crl;
|
||||
|
||||
// Token: 0x04007F1B RID: 32539
|
||||
[Token(Token = "0x4007F1B")]
|
||||
public static readonly DerObjectIdentifier IdAlg;
|
||||
|
||||
// Token: 0x04007F1C RID: 32540
|
||||
[Token(Token = "0x4007F1C")]
|
||||
public static readonly DerObjectIdentifier IdAlgEsdh;
|
||||
|
||||
// Token: 0x04007F1D RID: 32541
|
||||
[Token(Token = "0x4007F1D")]
|
||||
public static readonly DerObjectIdentifier IdAlgCms3DesWrap;
|
||||
|
||||
// Token: 0x04007F1E RID: 32542
|
||||
[Token(Token = "0x4007F1E")]
|
||||
public static readonly DerObjectIdentifier IdAlgCmsRC2Wrap;
|
||||
|
||||
// Token: 0x04007F1F RID: 32543
|
||||
[Token(Token = "0x4007F1F")]
|
||||
public static readonly DerObjectIdentifier IdAlgPwriKek;
|
||||
|
||||
// Token: 0x04007F20 RID: 32544
|
||||
[Token(Token = "0x4007F20")]
|
||||
public static readonly DerObjectIdentifier IdAlgSsdh;
|
||||
|
||||
// Token: 0x04007F21 RID: 32545
|
||||
[Token(Token = "0x4007F21")]
|
||||
public static readonly DerObjectIdentifier IdRsaKem;
|
||||
|
||||
// Token: 0x04007F22 RID: 32546
|
||||
[Token(Token = "0x4007F22")]
|
||||
public static readonly DerObjectIdentifier PreferSignedData;
|
||||
|
||||
// Token: 0x04007F23 RID: 32547
|
||||
[Token(Token = "0x4007F23")]
|
||||
public static readonly DerObjectIdentifier CannotDecryptAny;
|
||||
|
||||
// Token: 0x04007F24 RID: 32548
|
||||
[Token(Token = "0x4007F24")]
|
||||
public static readonly DerObjectIdentifier SmimeCapabilitiesVersions;
|
||||
|
||||
// Token: 0x04007F25 RID: 32549
|
||||
[Token(Token = "0x4007F25")]
|
||||
public static readonly DerObjectIdentifier IdAAReceiptRequest;
|
||||
|
||||
// Token: 0x04007F26 RID: 32550
|
||||
[Token(Token = "0x4007F26")]
|
||||
public const string IdCT = "1.2.840.113549.1.9.16.1";
|
||||
|
||||
// Token: 0x04007F27 RID: 32551
|
||||
[Token(Token = "0x4007F27")]
|
||||
public static readonly DerObjectIdentifier IdCTAuthData;
|
||||
|
||||
// Token: 0x04007F28 RID: 32552
|
||||
[Token(Token = "0x4007F28")]
|
||||
public static readonly DerObjectIdentifier IdCTTstInfo;
|
||||
|
||||
// Token: 0x04007F29 RID: 32553
|
||||
[Token(Token = "0x4007F29")]
|
||||
public static readonly DerObjectIdentifier IdCTCompressedData;
|
||||
|
||||
// Token: 0x04007F2A RID: 32554
|
||||
[Token(Token = "0x4007F2A")]
|
||||
public static readonly DerObjectIdentifier IdCTAuthEnvelopedData;
|
||||
|
||||
// Token: 0x04007F2B RID: 32555
|
||||
[Token(Token = "0x4007F2B")]
|
||||
public static readonly DerObjectIdentifier IdCTTimestampedData;
|
||||
|
||||
// Token: 0x04007F2C RID: 32556
|
||||
[Token(Token = "0x4007F2C")]
|
||||
public const string IdCti = "1.2.840.113549.1.9.16.6";
|
||||
|
||||
// Token: 0x04007F2D RID: 32557
|
||||
[Token(Token = "0x4007F2D")]
|
||||
public static readonly DerObjectIdentifier IdCtiEtsProofOfOrigin;
|
||||
|
||||
// Token: 0x04007F2E RID: 32558
|
||||
[Token(Token = "0x4007F2E")]
|
||||
public static readonly DerObjectIdentifier IdCtiEtsProofOfReceipt;
|
||||
|
||||
// Token: 0x04007F2F RID: 32559
|
||||
[Token(Token = "0x4007F2F")]
|
||||
public static readonly DerObjectIdentifier IdCtiEtsProofOfDelivery;
|
||||
|
||||
// Token: 0x04007F30 RID: 32560
|
||||
[Token(Token = "0x4007F30")]
|
||||
public static readonly DerObjectIdentifier IdCtiEtsProofOfSender;
|
||||
|
||||
// Token: 0x04007F31 RID: 32561
|
||||
[Token(Token = "0x4007F31")]
|
||||
public static readonly DerObjectIdentifier IdCtiEtsProofOfApproval;
|
||||
|
||||
// Token: 0x04007F32 RID: 32562
|
||||
[Token(Token = "0x4007F32")]
|
||||
public static readonly DerObjectIdentifier IdCtiEtsProofOfCreation;
|
||||
|
||||
// Token: 0x04007F33 RID: 32563
|
||||
[Token(Token = "0x4007F33")]
|
||||
public const string IdAA = "1.2.840.113549.1.9.16.2";
|
||||
|
||||
// Token: 0x04007F34 RID: 32564
|
||||
[Token(Token = "0x4007F34")]
|
||||
public static readonly DerObjectIdentifier IdAAOid;
|
||||
|
||||
// Token: 0x04007F35 RID: 32565
|
||||
[Token(Token = "0x4007F35")]
|
||||
public static readonly DerObjectIdentifier IdAAContentHint;
|
||||
|
||||
// Token: 0x04007F36 RID: 32566
|
||||
[Token(Token = "0x4007F36")]
|
||||
public static readonly DerObjectIdentifier IdAAMsgSigDigest;
|
||||
|
||||
// Token: 0x04007F37 RID: 32567
|
||||
[Token(Token = "0x4007F37")]
|
||||
public static readonly DerObjectIdentifier IdAAContentReference;
|
||||
|
||||
// Token: 0x04007F38 RID: 32568
|
||||
[Token(Token = "0x4007F38")]
|
||||
public static readonly DerObjectIdentifier IdAAEncrypKeyPref;
|
||||
|
||||
// Token: 0x04007F39 RID: 32569
|
||||
[Token(Token = "0x4007F39")]
|
||||
public static readonly DerObjectIdentifier IdAASigningCertificate;
|
||||
|
||||
// Token: 0x04007F3A RID: 32570
|
||||
[Token(Token = "0x4007F3A")]
|
||||
public static readonly DerObjectIdentifier IdAASigningCertificateV2;
|
||||
|
||||
// Token: 0x04007F3B RID: 32571
|
||||
[Token(Token = "0x4007F3B")]
|
||||
public static readonly DerObjectIdentifier IdAAContentIdentifier;
|
||||
|
||||
// Token: 0x04007F3C RID: 32572
|
||||
[Token(Token = "0x4007F3C")]
|
||||
public static readonly DerObjectIdentifier IdAASignatureTimeStampToken;
|
||||
|
||||
// Token: 0x04007F3D RID: 32573
|
||||
[Token(Token = "0x4007F3D")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsSigPolicyID;
|
||||
|
||||
// Token: 0x04007F3E RID: 32574
|
||||
[Token(Token = "0x4007F3E")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsCommitmentType;
|
||||
|
||||
// Token: 0x04007F3F RID: 32575
|
||||
[Token(Token = "0x4007F3F")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsSignerLocation;
|
||||
|
||||
// Token: 0x04007F40 RID: 32576
|
||||
[Token(Token = "0x4007F40")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsSignerAttr;
|
||||
|
||||
// Token: 0x04007F41 RID: 32577
|
||||
[Token(Token = "0x4007F41")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsOtherSigCert;
|
||||
|
||||
// Token: 0x04007F42 RID: 32578
|
||||
[Token(Token = "0x4007F42")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsContentTimestamp;
|
||||
|
||||
// Token: 0x04007F43 RID: 32579
|
||||
[Token(Token = "0x4007F43")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsCertificateRefs;
|
||||
|
||||
// Token: 0x04007F44 RID: 32580
|
||||
[Token(Token = "0x4007F44")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsRevocationRefs;
|
||||
|
||||
// Token: 0x04007F45 RID: 32581
|
||||
[Token(Token = "0x4007F45")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsCertValues;
|
||||
|
||||
// Token: 0x04007F46 RID: 32582
|
||||
[Token(Token = "0x4007F46")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsRevocationValues;
|
||||
|
||||
// Token: 0x04007F47 RID: 32583
|
||||
[Token(Token = "0x4007F47")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsEscTimeStamp;
|
||||
|
||||
// Token: 0x04007F48 RID: 32584
|
||||
[Token(Token = "0x4007F48")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsCertCrlTimestamp;
|
||||
|
||||
// Token: 0x04007F49 RID: 32585
|
||||
[Token(Token = "0x4007F49")]
|
||||
public static readonly DerObjectIdentifier IdAAEtsArchiveTimestamp;
|
||||
|
||||
// Token: 0x04007F4A RID: 32586
|
||||
[Token(Token = "0x4007F4A")]
|
||||
public static readonly DerObjectIdentifier IdAADecryptKeyID;
|
||||
|
||||
// Token: 0x04007F4B RID: 32587
|
||||
[Token(Token = "0x4007F4B")]
|
||||
public static readonly DerObjectIdentifier IdAAImplCryptoAlgs;
|
||||
|
||||
// Token: 0x04007F4C RID: 32588
|
||||
[Token(Token = "0x4007F4C")]
|
||||
public static readonly DerObjectIdentifier IdAAAsymmDecryptKeyID;
|
||||
|
||||
// Token: 0x04007F4D RID: 32589
|
||||
[Token(Token = "0x4007F4D")]
|
||||
public static readonly DerObjectIdentifier IdAAImplCompressAlgs;
|
||||
|
||||
// Token: 0x04007F4E RID: 32590
|
||||
[Token(Token = "0x4007F4E")]
|
||||
public static readonly DerObjectIdentifier IdAACommunityIdentifiers;
|
||||
|
||||
// Token: 0x04007F4F RID: 32591
|
||||
[Token(Token = "0x4007F4F")]
|
||||
[Obsolete]
|
||||
public static readonly DerObjectIdentifier IdAASigPolicyID;
|
||||
|
||||
// Token: 0x04007F50 RID: 32592
|
||||
[Token(Token = "0x4007F50")]
|
||||
[Obsolete]
|
||||
public static readonly DerObjectIdentifier IdAACommitmentType;
|
||||
|
||||
// Token: 0x04007F51 RID: 32593
|
||||
[Token(Token = "0x4007F51")]
|
||||
[Obsolete]
|
||||
public static readonly DerObjectIdentifier IdAASignerLocation;
|
||||
|
||||
// Token: 0x04007F52 RID: 32594
|
||||
[Token(Token = "0x4007F52")]
|
||||
[Obsolete]
|
||||
public static readonly DerObjectIdentifier IdAAOtherSigCert;
|
||||
|
||||
// Token: 0x04007F53 RID: 32595
|
||||
[Token(Token = "0x4007F53")]
|
||||
public const string IdSpq = "1.2.840.113549.1.9.16.5";
|
||||
|
||||
// Token: 0x04007F54 RID: 32596
|
||||
[Token(Token = "0x4007F54")]
|
||||
public static readonly DerObjectIdentifier IdSpqEtsUri;
|
||||
|
||||
// Token: 0x04007F55 RID: 32597
|
||||
[Token(Token = "0x4007F55")]
|
||||
public static readonly DerObjectIdentifier IdSpqEtsUNotice;
|
||||
|
||||
// Token: 0x04007F56 RID: 32598
|
||||
[Token(Token = "0x4007F56")]
|
||||
public const string Pkcs12 = "1.2.840.113549.1.12";
|
||||
|
||||
// Token: 0x04007F57 RID: 32599
|
||||
[Token(Token = "0x4007F57")]
|
||||
public const string BagTypes = "1.2.840.113549.1.12.10.1";
|
||||
|
||||
// Token: 0x04007F58 RID: 32600
|
||||
[Token(Token = "0x4007F58")]
|
||||
public static readonly DerObjectIdentifier KeyBag;
|
||||
|
||||
// Token: 0x04007F59 RID: 32601
|
||||
[Token(Token = "0x4007F59")]
|
||||
public static readonly DerObjectIdentifier Pkcs8ShroudedKeyBag;
|
||||
|
||||
// Token: 0x04007F5A RID: 32602
|
||||
[Token(Token = "0x4007F5A")]
|
||||
public static readonly DerObjectIdentifier CertBag;
|
||||
|
||||
// Token: 0x04007F5B RID: 32603
|
||||
[Token(Token = "0x4007F5B")]
|
||||
public static readonly DerObjectIdentifier CrlBag;
|
||||
|
||||
// Token: 0x04007F5C RID: 32604
|
||||
[Token(Token = "0x4007F5C")]
|
||||
public static readonly DerObjectIdentifier SecretBag;
|
||||
|
||||
// Token: 0x04007F5D RID: 32605
|
||||
[Token(Token = "0x4007F5D")]
|
||||
public static readonly DerObjectIdentifier SafeContentsBag;
|
||||
|
||||
// Token: 0x04007F5E RID: 32606
|
||||
[Token(Token = "0x4007F5E")]
|
||||
public const string Pkcs12PbeIds = "1.2.840.113549.1.12.1";
|
||||
|
||||
// Token: 0x04007F5F RID: 32607
|
||||
[Token(Token = "0x4007F5F")]
|
||||
public static readonly DerObjectIdentifier PbeWithShaAnd128BitRC4;
|
||||
|
||||
// Token: 0x04007F60 RID: 32608
|
||||
[Token(Token = "0x4007F60")]
|
||||
public static readonly DerObjectIdentifier PbeWithShaAnd40BitRC4;
|
||||
|
||||
// Token: 0x04007F61 RID: 32609
|
||||
[Token(Token = "0x4007F61")]
|
||||
public static readonly DerObjectIdentifier PbeWithShaAnd3KeyTripleDesCbc;
|
||||
|
||||
// Token: 0x04007F62 RID: 32610
|
||||
[Token(Token = "0x4007F62")]
|
||||
public static readonly DerObjectIdentifier PbeWithShaAnd2KeyTripleDesCbc;
|
||||
|
||||
// Token: 0x04007F63 RID: 32611
|
||||
[Token(Token = "0x4007F63")]
|
||||
public static readonly DerObjectIdentifier PbeWithShaAnd128BitRC2Cbc;
|
||||
|
||||
// Token: 0x04007F64 RID: 32612
|
||||
[Token(Token = "0x4007F64")]
|
||||
public static readonly DerObjectIdentifier PbewithShaAnd40BitRC2Cbc;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,294 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F77 RID: 8055
|
||||
[Token(Token = "0x2001F77")]
|
||||
public class PrivateKeyInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9AA RID: 51626 RVA: 0x002DB7FC File Offset: 0x002D99FC
|
||||
[Token(Token = "0x600C9AA")]
|
||||
[Address(RVA = "0x2F8A3D0", Offset = "0x2F893D0", VA = "0x182F8A3D0")]
|
||||
public static PrivateKeyInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
Asn1Sequence instance2;
|
||||
for (;;)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj, explicitly);
|
||||
if (instance == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
instance2 = Asn1Sequence.GetInstance(instance);
|
||||
return new PrivateKeyInfo(instance2);
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AB RID: 51627 RVA: 0x002DB838 File Offset: 0x002D9A38
|
||||
[Token(Token = "0x600C9AB")]
|
||||
[Address(RVA = "0x2F8A2D0", Offset = "0x2F892D0", VA = "0x182F8A2D0")]
|
||||
public static PrivateKeyInfo GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new PrivateKeyInfo(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AC RID: 51628 RVA: 0x002DB86C File Offset: 0x002D9A6C
|
||||
[Token(Token = "0x600C9AC")]
|
||||
[Address(RVA = "0x2F8A4D0", Offset = "0x2F894D0", VA = "0x182F8A4D0")]
|
||||
private static int GetVersionValue(DerInteger version)
|
||||
{
|
||||
BigInteger value = version.Value;
|
||||
BigInteger zero = BigInteger.Zero;
|
||||
int num = value.CompareTo(zero);
|
||||
BigInteger one = BigInteger.One;
|
||||
int num2 = value.CompareTo(one);
|
||||
return value.IntValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AD RID: 51629 RVA: 0x002DB8AC File Offset: 0x002D9AAC
|
||||
[Token(Token = "0x600C9AD")]
|
||||
[Address(RVA = "0x2F8AE70", Offset = "0x2F89E70", VA = "0x182F8AE70")]
|
||||
public PrivateKeyInfo(AlgorithmIdentifier privateKeyAlgorithm, Asn1Encodable privateKey)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(BigInteger.Zero);
|
||||
this.version = derInteger;
|
||||
this.privateKeyAlgorithm = privateKeyAlgorithm;
|
||||
DerOctetString derOctetString = new DerOctetString(privateKey);
|
||||
int num = 0;
|
||||
this.privateKey = derOctetString;
|
||||
this.attributes = num;
|
||||
this.publicKey = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AE RID: 51630 RVA: 0x002DB8FC File Offset: 0x002D9AFC
|
||||
[Token(Token = "0x600C9AE")]
|
||||
[Address(RVA = "0x2F8A970", Offset = "0x2F89970", VA = "0x182F8A970")]
|
||||
public PrivateKeyInfo(AlgorithmIdentifier privateKeyAlgorithm, Asn1Encodable privateKey, Asn1Set attributes)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AF RID: 51631 RVA: 0x002DB90C File Offset: 0x002D9B0C
|
||||
[Token(Token = "0x600C9AF")]
|
||||
[Address(RVA = "0x2F8AD10", Offset = "0x2F89D10", VA = "0x182F8AD10")]
|
||||
public PrivateKeyInfo(AlgorithmIdentifier privateKeyAlgorithm, Asn1Encodable privateKey, Asn1Set attributes, byte[] publicKey)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(BigInteger.Zero);
|
||||
this.version = derInteger;
|
||||
this.privateKeyAlgorithm = privateKeyAlgorithm;
|
||||
DerOctetString derOctetString = new DerOctetString(privateKey);
|
||||
this.privateKey = derOctetString;
|
||||
this.attributes = attributes;
|
||||
DerBitString derBitString;
|
||||
this.publicKey = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9B0 RID: 51632 RVA: 0x002DB95C File Offset: 0x002D9B5C
|
||||
[Token(Token = "0x600C9B0")]
|
||||
[Address(RVA = "0x2F8A990", Offset = "0x2F89990", VA = "0x182F8A990")]
|
||||
private PrivateKeyInfo(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9B0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PrivateKeyInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_C9:
|
||||
stloc:ArgumentException(var_15_D8, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown optional field in private key info"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x17001F55 RID: 8021
|
||||
// (get) Token: 0x0600C9B1 RID: 51633 RVA: 0x002DBA44 File Offset: 0x002D9C44
|
||||
[Token(Token = "0x17001F55")]
|
||||
public virtual Asn1Set Attributes
|
||||
{
|
||||
[Token(Token = "0x600C9B1")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.attributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F56 RID: 8022
|
||||
// (get) Token: 0x0600C9B2 RID: 51634 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17001F56")]
|
||||
public virtual bool HasPublicKey
|
||||
{
|
||||
[Token(Token = "0x600C9B2")]
|
||||
[Address(RVA = "0xABDDD0", Offset = "0xABCDD0", VA = "0x180ABDDD0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F57 RID: 8023
|
||||
// (get) Token: 0x0600C9B3 RID: 51635 RVA: 0x002DBA58 File Offset: 0x002D9C58
|
||||
[Token(Token = "0x17001F57")]
|
||||
public virtual AlgorithmIdentifier PrivateKeyAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9B3")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.privateKeyAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9B4 RID: 51636 RVA: 0x002DBA6C File Offset: 0x002D9C6C
|
||||
[Token(Token = "0x600C9B4")]
|
||||
[Address(RVA = "0x2F8A5E0", Offset = "0x2F895E0", VA = "0x182F8A5E0", Slot = "9")]
|
||||
public virtual Asn1Object ParsePrivateKey()
|
||||
{
|
||||
Stream octetStream = this.privateKey.GetOctetStream();
|
||||
Asn1Object asn1Object;
|
||||
return asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9B5 RID: 51637 RVA: 0x002DBA8C File Offset: 0x002D9C8C
|
||||
[Token(Token = "0x600C9B5")]
|
||||
[Address(RVA = "0x2F8A620", Offset = "0x2F89620", VA = "0x182F8A620", Slot = "10")]
|
||||
public virtual Asn1Object ParsePublicKey()
|
||||
{
|
||||
DerBitString derBitString = this.publicKey;
|
||||
if (derBitString == 0)
|
||||
{
|
||||
}
|
||||
string @string = derBitString.GetString();
|
||||
Asn1Object asn1Object;
|
||||
return asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x17001F58 RID: 8024
|
||||
// (get) Token: 0x0600C9B6 RID: 51638 RVA: 0x002DBAB0 File Offset: 0x002D9CB0
|
||||
[Token(Token = "0x17001F58")]
|
||||
public virtual DerBitString PublicKeyData
|
||||
{
|
||||
[Token(Token = "0x600C9B6")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return this.publicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9B7 RID: 51639 RVA: 0x002DBAC4 File Offset: 0x002D9CC4
|
||||
[Token(Token = "0x600C9B7")]
|
||||
[Address(RVA = "0x2F8A660", Offset = "0x2F89660", VA = "0x182F8A660", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.privateKeyAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
Asn1OctetString asn1OctetString = this.privateKey;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[2] = asn1OctetString;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.attributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.attributes;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.publicKey != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerBitString derBitString = this.publicKey;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, derBitString);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007F67 RID: 32615
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F67")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x04007F68 RID: 32616
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F68")]
|
||||
private readonly AlgorithmIdentifier privateKeyAlgorithm;
|
||||
|
||||
// Token: 0x04007F69 RID: 32617
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007F69")]
|
||||
private readonly Asn1OctetString privateKey;
|
||||
|
||||
// Token: 0x04007F6A RID: 32618
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007F6A")]
|
||||
private readonly Asn1Set attributes;
|
||||
|
||||
// Token: 0x04007F6B RID: 32619
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007F6B")]
|
||||
private readonly DerBitString publicKey;
|
||||
}
|
||||
}
|
||||
+163
@@ -0,0 +1,163 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F78 RID: 8056
|
||||
[Token(Token = "0x2001F78")]
|
||||
public class RC2CbcParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9B8 RID: 51640 RVA: 0x002DBBB0 File Offset: 0x002D9DB0
|
||||
[Token(Token = "0x600C9B8")]
|
||||
[Address(RVA = "0x2F8B2B0", Offset = "0x2F8A2B0", VA = "0x182F8B2B0")]
|
||||
public static RC2CbcParameter GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9B8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RC2CbcParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RC2CbcParameter::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:string(var_3_18, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_4_2E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_3_18)), 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: 0x0600C9B9 RID: 51641 RVA: 0x002DBBEC File Offset: 0x002D9DEC
|
||||
[Token(Token = "0x600C9B9")]
|
||||
[Address(RVA = "0x2F8B810", Offset = "0x2F8A810", VA = "0x182F8B810")]
|
||||
public RC2CbcParameter(byte[] iv)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(iv);
|
||||
this.iv = derOctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9BA RID: 51642 RVA: 0x002DBC10 File Offset: 0x002D9E10
|
||||
[Token(Token = "0x600C9BA")]
|
||||
[Address(RVA = "0x2F8B770", Offset = "0x2F8A770", VA = "0x182F8B770")]
|
||||
public RC2CbcParameter(int parameterVersion, byte[] iv)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(parameterVersion);
|
||||
this.version = derInteger;
|
||||
DerOctetString derOctetString = new DerOctetString(iv);
|
||||
this.iv = derOctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9BB RID: 51643 RVA: 0x002DBC40 File Offset: 0x002D9E40
|
||||
[Token(Token = "0x600C9BB")]
|
||||
[Address(RVA = "0x2F8B5C0", Offset = "0x2F8A5C0", VA = "0x182F8B5C0")]
|
||||
private RC2CbcParameter(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser3;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (parser2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
parser3 = seq.Parser;
|
||||
if (parser3 == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser3 == 0);
|
||||
this.iv = parser3;
|
||||
}
|
||||
|
||||
// Token: 0x17001F59 RID: 8025
|
||||
// (get) Token: 0x0600C9BC RID: 51644 RVA: 0x002DBCA8 File Offset: 0x002D9EA8
|
||||
[Token(Token = "0x17001F59")]
|
||||
public BigInteger RC2ParameterVersion
|
||||
{
|
||||
[Token(Token = "0x600C9BC")]
|
||||
[Address(RVA = "0x2F8B880", Offset = "0x2F8A880", VA = "0x182F8B880")]
|
||||
get
|
||||
{
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger == 0)
|
||||
{
|
||||
}
|
||||
return derInteger.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9BD RID: 51645 RVA: 0x002DBCC8 File Offset: 0x002D9EC8
|
||||
[Token(Token = "0x600C9BD")]
|
||||
[Address(RVA = "0x2F8B230", Offset = "0x2F8A230", VA = "0x182F8B230")]
|
||||
public byte[] GetIV()
|
||||
{
|
||||
Stream octetStream = this.iv.GetOctetStream();
|
||||
byte[] array;
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9BE RID: 51646 RVA: 0x002DBCE8 File Offset: 0x002D9EE8
|
||||
[Token(Token = "0x600C9BE")]
|
||||
[Address(RVA = "0x2F8B420", Offset = "0x2F8A420", VA = "0x182F8B420", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.version != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.iv;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007F6C RID: 32620
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F6C")]
|
||||
internal DerInteger version;
|
||||
|
||||
// Token: 0x04007F6D RID: 32621
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F6D")]
|
||||
internal Asn1OctetString iv;
|
||||
}
|
||||
}
|
||||
+340
@@ -0,0 +1,340 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F7A RID: 8058
|
||||
[Token(Token = "0x2001F7A")]
|
||||
public class RsaPrivateKeyStructure : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9C8 RID: 51656 RVA: 0x002DC010 File Offset: 0x002DA210
|
||||
[Token(Token = "0x600C9C8")]
|
||||
[Address(RVA = "0x2F8E4E0", Offset = "0x2F8D4E0", VA = "0x182F8E4E0")]
|
||||
public static RsaPrivateKeyStructure GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
Asn1Sequence instance2;
|
||||
for (;;)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj, isExplicit);
|
||||
if (instance == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
instance2 = Asn1Sequence.GetInstance(instance);
|
||||
return new RsaPrivateKeyStructure(instance2);
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C9 RID: 51657 RVA: 0x002DC04C File Offset: 0x002DA24C
|
||||
[Token(Token = "0x600C9C9")]
|
||||
[Address(RVA = "0x2F8E3E0", Offset = "0x2F8D3E0", VA = "0x182F8E3E0")]
|
||||
public static RsaPrivateKeyStructure GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new RsaPrivateKeyStructure(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9CA RID: 51658 RVA: 0x002DC080 File Offset: 0x002DA280
|
||||
[Token(Token = "0x600C9CA")]
|
||||
[Address(RVA = "0x2F8EA40", Offset = "0x2F8DA40", VA = "0x182F8EA40")]
|
||||
public RsaPrivateKeyStructure(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient)
|
||||
{
|
||||
this.prime1 = 0;
|
||||
this.prime2 = 0;
|
||||
this.exponent1 = 0;
|
||||
this.exponent2 = 0;
|
||||
this.modulus = modulus;
|
||||
this.privateExponent = privateExponent;
|
||||
this.coefficient = 0;
|
||||
this.publicExponent = publicExponent;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9CB RID: 51659 RVA: 0x002DC0CC File Offset: 0x002DA2CC
|
||||
[Token(Token = "0x600C9CB")]
|
||||
[Address(RVA = "0x2F8EAC0", Offset = "0x2F8DAC0", VA = "0x182F8EAC0")]
|
||||
[Obsolete]
|
||||
public RsaPrivateKeyStructure(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
BigInteger bigInteger;
|
||||
if (parser != 0 && parser != 0 && bigInteger.IntValue == 0)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
BigInteger bigInteger2;
|
||||
this.modulus = bigInteger2;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
if (parser3 != 0 && parser3 != 0)
|
||||
{
|
||||
BigInteger bigInteger3;
|
||||
this.publicExponent = bigInteger3;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
if (parser4 != 0 && parser4 != 0)
|
||||
{
|
||||
BigInteger bigInteger4;
|
||||
this.privateExponent = bigInteger4;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 != 0 && parser5 != 0)
|
||||
{
|
||||
BigInteger bigInteger5;
|
||||
this.prime1 = bigInteger5;
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
if (parser6 != 0 && parser6 != 0)
|
||||
{
|
||||
BigInteger bigInteger6;
|
||||
this.prime2 = bigInteger6;
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
if (parser7 != 0 && parser7 != 0)
|
||||
{
|
||||
BigInteger bigInteger7;
|
||||
this.exponent1 = bigInteger7;
|
||||
Asn1SequenceParser parser8 = seq.Parser;
|
||||
if (parser8 != 0 && parser8 != 0)
|
||||
{
|
||||
BigInteger bigInteger8;
|
||||
this.exponent2 = bigInteger8;
|
||||
Asn1SequenceParser parser9 = seq.Parser;
|
||||
if (parser9 != 0 && parser9 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BigInteger bigInteger9;
|
||||
this.coefficient = bigInteger9;
|
||||
}
|
||||
|
||||
// Token: 0x17001F5D RID: 8029
|
||||
// (get) Token: 0x0600C9CC RID: 51660 RVA: 0x002DC220 File Offset: 0x002DA420
|
||||
[Token(Token = "0x17001F5D")]
|
||||
public BigInteger Modulus
|
||||
{
|
||||
[Token(Token = "0x600C9CC")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.modulus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F5E RID: 8030
|
||||
// (get) Token: 0x0600C9CD RID: 51661 RVA: 0x002DC234 File Offset: 0x002DA434
|
||||
[Token(Token = "0x17001F5E")]
|
||||
public BigInteger PublicExponent
|
||||
{
|
||||
[Token(Token = "0x600C9CD")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.publicExponent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F5F RID: 8031
|
||||
// (get) Token: 0x0600C9CE RID: 51662 RVA: 0x002DC248 File Offset: 0x002DA448
|
||||
[Token(Token = "0x17001F5F")]
|
||||
public BigInteger PrivateExponent
|
||||
{
|
||||
[Token(Token = "0x600C9CE")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.privateExponent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F60 RID: 8032
|
||||
// (get) Token: 0x0600C9CF RID: 51663 RVA: 0x002DC25C File Offset: 0x002DA45C
|
||||
[Token(Token = "0x17001F60")]
|
||||
public BigInteger Prime1
|
||||
{
|
||||
[Token(Token = "0x600C9CF")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.prime1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F61 RID: 8033
|
||||
// (get) Token: 0x0600C9D0 RID: 51664 RVA: 0x002DC270 File Offset: 0x002DA470
|
||||
[Token(Token = "0x17001F61")]
|
||||
public BigInteger Prime2
|
||||
{
|
||||
[Token(Token = "0x600C9D0")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.prime2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F62 RID: 8034
|
||||
// (get) Token: 0x0600C9D1 RID: 51665 RVA: 0x002DC284 File Offset: 0x002DA484
|
||||
[Token(Token = "0x17001F62")]
|
||||
public BigInteger Exponent1
|
||||
{
|
||||
[Token(Token = "0x600C9D1")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.exponent1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F63 RID: 8035
|
||||
// (get) Token: 0x0600C9D2 RID: 51666 RVA: 0x002DC298 File Offset: 0x002DA498
|
||||
[Token(Token = "0x17001F63")]
|
||||
public BigInteger Exponent2
|
||||
{
|
||||
[Token(Token = "0x600C9D2")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.exponent2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F64 RID: 8036
|
||||
// (get) Token: 0x0600C9D3 RID: 51667 RVA: 0x002DC2AC File Offset: 0x002DA4AC
|
||||
[Token(Token = "0x17001F64")]
|
||||
public BigInteger Coefficient
|
||||
{
|
||||
[Token(Token = "0x600C9D3")]
|
||||
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0")]
|
||||
get
|
||||
{
|
||||
return this.coefficient;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9D4 RID: 51668 RVA: 0x002DC2C0 File Offset: 0x002DA4C0
|
||||
[Token(Token = "0x600C9D4")]
|
||||
[Address(RVA = "0x2F8E5E0", Offset = "0x2F8D5E0", VA = "0x182F8E5E0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[9];
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
DerInteger derInteger2 = new DerInteger(this.modulus);
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger2;
|
||||
DerInteger derInteger3 = new DerInteger(this.publicExponent);
|
||||
if (derInteger3 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derInteger3;
|
||||
DerInteger derInteger4 = new DerInteger(this.privateExponent);
|
||||
if (derInteger4 != 0)
|
||||
{
|
||||
}
|
||||
array[3] = derInteger4;
|
||||
DerInteger derInteger5 = new DerInteger(this.prime1);
|
||||
if (derInteger5 != 0)
|
||||
{
|
||||
}
|
||||
array[4] = derInteger5;
|
||||
DerInteger derInteger6 = new DerInteger(this.prime2);
|
||||
if (derInteger6 != 0)
|
||||
{
|
||||
}
|
||||
array[5] = derInteger6;
|
||||
DerInteger derInteger7 = new DerInteger(this.exponent1);
|
||||
if (derInteger7 != 0)
|
||||
{
|
||||
}
|
||||
array[6] = derInteger7;
|
||||
DerInteger derInteger8 = new DerInteger(this.exponent2);
|
||||
if (derInteger8 != 0)
|
||||
{
|
||||
}
|
||||
array[7] = derInteger8;
|
||||
DerInteger derInteger9 = new DerInteger(this.coefficient);
|
||||
if (derInteger9 != 0)
|
||||
{
|
||||
}
|
||||
array[8] = derInteger9;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007F74 RID: 32628
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F74")]
|
||||
private readonly BigInteger modulus;
|
||||
|
||||
// Token: 0x04007F75 RID: 32629
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F75")]
|
||||
private readonly BigInteger publicExponent;
|
||||
|
||||
// Token: 0x04007F76 RID: 32630
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007F76")]
|
||||
private readonly BigInteger privateExponent;
|
||||
|
||||
// Token: 0x04007F77 RID: 32631
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007F77")]
|
||||
private readonly BigInteger prime1;
|
||||
|
||||
// Token: 0x04007F78 RID: 32632
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007F78")]
|
||||
private readonly BigInteger prime2;
|
||||
|
||||
// Token: 0x04007F79 RID: 32633
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007F79")]
|
||||
private readonly BigInteger exponent1;
|
||||
|
||||
// Token: 0x04007F7A RID: 32634
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007F7A")]
|
||||
private readonly BigInteger exponent2;
|
||||
|
||||
// Token: 0x04007F7B RID: 32635
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007F7B")]
|
||||
private readonly BigInteger coefficient;
|
||||
}
|
||||
}
|
||||
+220
@@ -0,0 +1,220 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F79 RID: 8057
|
||||
[Token(Token = "0x2001F79")]
|
||||
public class RsaesOaepParameters : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9BF RID: 51647 RVA: 0x002DBD54 File Offset: 0x002D9F54
|
||||
[Token(Token = "0x600C9BF")]
|
||||
[Address(RVA = "0x2F8F1E0", Offset = "0x2F8E1E0", VA = "0x182F8F1E0")]
|
||||
public static RsaesOaepParameters GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9BF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsaesOaepParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsaesOaepParameters::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: 0x0600C9C0 RID: 51648 RVA: 0x002DBDA4 File Offset: 0x002D9FA4
|
||||
[Token(Token = "0x600C9C0")]
|
||||
[Address(RVA = "0x2F8FB30", Offset = "0x2F8EB30", VA = "0x182F8FB30")]
|
||||
public RsaesOaepParameters()
|
||||
{
|
||||
AlgorithmIdentifier defaultHashAlgorithm = RsaesOaepParameters.DefaultHashAlgorithm;
|
||||
this.hashAlgorithm = defaultHashAlgorithm;
|
||||
AlgorithmIdentifier defaultMaskGenFunction = RsaesOaepParameters.DefaultMaskGenFunction;
|
||||
this.maskGenAlgorithm = defaultMaskGenFunction;
|
||||
AlgorithmIdentifier defaultPSourceAlgorithm = RsaesOaepParameters.DefaultPSourceAlgorithm;
|
||||
this.pSourceAlgorithm = defaultPSourceAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C1 RID: 51649 RVA: 0x002DBDE0 File Offset: 0x002D9FE0
|
||||
[Token(Token = "0x600C9C1")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
public RsaesOaepParameters(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, AlgorithmIdentifier pSourceAlgorithm)
|
||||
{
|
||||
this.hashAlgorithm = hashAlgorithm;
|
||||
this.maskGenAlgorithm = maskGenAlgorithm;
|
||||
this.pSourceAlgorithm = pSourceAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C2 RID: 51650 RVA: 0x002DBE08 File Offset: 0x002DA008
|
||||
[Token(Token = "0x600C9C2")]
|
||||
[Address(RVA = "0x2F8F950", Offset = "0x2F8E950", VA = "0x182F8F950")]
|
||||
public RsaesOaepParameters(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9C2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsaesOaepParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_7E:
|
||||
stloc:ArgumentException(var_11_88, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown tag")))
|
||||
}
|
||||
|
||||
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.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.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: 0x17001F5A RID: 8026
|
||||
// (get) Token: 0x0600C9C3 RID: 51651 RVA: 0x002DBEA0 File Offset: 0x002DA0A0
|
||||
[Token(Token = "0x17001F5A")]
|
||||
public AlgorithmIdentifier HashAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9C3")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.hashAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F5B RID: 8027
|
||||
// (get) Token: 0x0600C9C4 RID: 51652 RVA: 0x002DBEB4 File Offset: 0x002DA0B4
|
||||
[Token(Token = "0x17001F5B")]
|
||||
public AlgorithmIdentifier MaskGenAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9C4")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.maskGenAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F5C RID: 8028
|
||||
// (get) Token: 0x0600C9C5 RID: 51653 RVA: 0x002DBEC8 File Offset: 0x002DA0C8
|
||||
[Token(Token = "0x17001F5C")]
|
||||
public AlgorithmIdentifier PSourceAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9C5")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.pSourceAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C6 RID: 51654 RVA: 0x002DBEDC File Offset: 0x002DA0DC
|
||||
[Token(Token = "0x600C9C6")]
|
||||
[Address(RVA = "0x2F8F3D0", Offset = "0x2F8E3D0", VA = "0x182F8F3D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier = this.hashAlgorithm;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.hashAlgorithm;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, algorithmIdentifier2);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array);
|
||||
AlgorithmIdentifier algorithmIdentifier3 = this.maskGenAlgorithm;
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier4 = this.maskGenAlgorithm;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, algorithmIdentifier4);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
AlgorithmIdentifier algorithmIdentifier5 = this.pSourceAlgorithm;
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier6 = this.pSourceAlgorithm;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, algorithmIdentifier6);
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C7 RID: 51655 RVA: 0x002DBFAC File Offset: 0x002DA1AC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C9C7")]
|
||||
[Address(RVA = "0x2F8F790", Offset = "0x2F8E790", VA = "0x182F8F790")]
|
||||
static RsaesOaepParameters()
|
||||
{
|
||||
DerObjectIdentifier idSha = OiwObjectIdentifiers.IdSha1;
|
||||
DerNull instance = DerNull.Instance;
|
||||
RsaesOaepParameters.DefaultHashAlgorithm = new AlgorithmIdentifier(idSha, instance);
|
||||
DerObjectIdentifier idMgf = PkcsObjectIdentifiers.IdMgf1;
|
||||
AlgorithmIdentifier defaultHashAlgorithm = RsaesOaepParameters.DefaultHashAlgorithm;
|
||||
RsaesOaepParameters.DefaultMaskGenFunction = new AlgorithmIdentifier(idMgf, defaultHashAlgorithm);
|
||||
int num = 0;
|
||||
DerObjectIdentifier idPSpecified = PkcsObjectIdentifiers.IdPSpecified;
|
||||
DerOctetString derOctetString = new DerOctetString(new byte[num]);
|
||||
RsaesOaepParameters.DefaultPSourceAlgorithm = new AlgorithmIdentifier(idPSpecified, derOctetString);
|
||||
}
|
||||
|
||||
// Token: 0x04007F6E RID: 32622
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F6E")]
|
||||
private AlgorithmIdentifier hashAlgorithm;
|
||||
|
||||
// Token: 0x04007F6F RID: 32623
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F6F")]
|
||||
private AlgorithmIdentifier maskGenAlgorithm;
|
||||
|
||||
// Token: 0x04007F70 RID: 32624
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007F70")]
|
||||
private AlgorithmIdentifier pSourceAlgorithm;
|
||||
|
||||
// Token: 0x04007F71 RID: 32625
|
||||
[Token(Token = "0x4007F71")]
|
||||
public static readonly AlgorithmIdentifier DefaultHashAlgorithm;
|
||||
|
||||
// Token: 0x04007F72 RID: 32626
|
||||
[Token(Token = "0x4007F72")]
|
||||
public static readonly AlgorithmIdentifier DefaultMaskGenFunction;
|
||||
|
||||
// Token: 0x04007F73 RID: 32627
|
||||
[Token(Token = "0x4007F73")]
|
||||
public static readonly AlgorithmIdentifier DefaultPSourceAlgorithm;
|
||||
}
|
||||
}
|
||||
+255
@@ -0,0 +1,255 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F7B RID: 8059
|
||||
[Token(Token = "0x2001F7B")]
|
||||
public class RsassaPssParameters : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9D5 RID: 51669 RVA: 0x002DC3CC File Offset: 0x002DA5CC
|
||||
[Token(Token = "0x600C9D5")]
|
||||
[Address(RVA = "0x2F8FBD0", Offset = "0x2F8EBD0", VA = "0x182F8FBD0")]
|
||||
public static RsassaPssParameters GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9D5)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsassaPssParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsassaPssParameters::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_2C)), 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: 0x0600C9D6 RID: 51670 RVA: 0x002DC420 File Offset: 0x002DA620
|
||||
[Token(Token = "0x600C9D6")]
|
||||
[Address(RVA = "0x2F90650", Offset = "0x2F8F650", VA = "0x182F90650")]
|
||||
public RsassaPssParameters()
|
||||
{
|
||||
AlgorithmIdentifier defaultHashAlgorithm = RsassaPssParameters.DefaultHashAlgorithm;
|
||||
this.hashAlgorithm = defaultHashAlgorithm;
|
||||
AlgorithmIdentifier defaultMaskGenFunction = RsassaPssParameters.DefaultMaskGenFunction;
|
||||
this.maskGenAlgorithm = defaultMaskGenFunction;
|
||||
DerInteger defaultSaltLength = RsassaPssParameters.DefaultSaltLength;
|
||||
this.saltLength = defaultSaltLength;
|
||||
DerInteger defaultTrailerField = RsassaPssParameters.DefaultTrailerField;
|
||||
this.trailerField = defaultTrailerField;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9D7 RID: 51671 RVA: 0x002DC468 File Offset: 0x002DA668
|
||||
[Token(Token = "0x600C9D7")]
|
||||
[Address(RVA = "0xC5DB60", Offset = "0xC5CB60", VA = "0x180C5DB60")]
|
||||
public RsassaPssParameters(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, DerInteger saltLength, DerInteger trailerField)
|
||||
{
|
||||
this.hashAlgorithm = hashAlgorithm;
|
||||
this.saltLength = saltLength;
|
||||
this.trailerField = 0;
|
||||
this.maskGenAlgorithm = maskGenAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9D8 RID: 51672 RVA: 0x002DC498 File Offset: 0x002DA698
|
||||
[Token(Token = "0x600C9D8")]
|
||||
[Address(RVA = "0x2F90430", Offset = "0x2F8F430", VA = "0x182F90430")]
|
||||
public RsassaPssParameters(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9D8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsassaPssParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_9E:
|
||||
stloc:ArgumentException(var_13_A8, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown tag")))
|
||||
}
|
||||
|
||||
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.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.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.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: 0x17001F65 RID: 8037
|
||||
// (get) Token: 0x0600C9D9 RID: 51673 RVA: 0x002DC550 File Offset: 0x002DA750
|
||||
[Token(Token = "0x17001F65")]
|
||||
public AlgorithmIdentifier HashAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9D9")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.hashAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F66 RID: 8038
|
||||
// (get) Token: 0x0600C9DA RID: 51674 RVA: 0x002DC564 File Offset: 0x002DA764
|
||||
[Token(Token = "0x17001F66")]
|
||||
public AlgorithmIdentifier MaskGenAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9DA")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.maskGenAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F67 RID: 8039
|
||||
// (get) Token: 0x0600C9DB RID: 51675 RVA: 0x002DC578 File Offset: 0x002DA778
|
||||
[Token(Token = "0x17001F67")]
|
||||
public DerInteger SaltLength
|
||||
{
|
||||
[Token(Token = "0x600C9DB")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.saltLength;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F68 RID: 8040
|
||||
// (get) Token: 0x0600C9DC RID: 51676 RVA: 0x002DC58C File Offset: 0x002DA78C
|
||||
[Token(Token = "0x17001F68")]
|
||||
public DerInteger TrailerField
|
||||
{
|
||||
[Token(Token = "0x600C9DC")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.trailerField;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9DD RID: 51677 RVA: 0x002DC5A0 File Offset: 0x002DA7A0
|
||||
[Token(Token = "0x600C9DD")]
|
||||
[Address(RVA = "0x2F8FDD0", Offset = "0x2F8EDD0", VA = "0x182F8FDD0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier = this.hashAlgorithm;
|
||||
Asn1Encodable[] array = new Asn1Encodable[0];
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.hashAlgorithm;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, algorithmIdentifier2);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array);
|
||||
AlgorithmIdentifier algorithmIdentifier3 = this.maskGenAlgorithm;
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier4 = this.maskGenAlgorithm;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, algorithmIdentifier4);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
DerInteger derInteger = this.saltLength;
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerInteger derInteger2 = this.saltLength;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, derInteger2);
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerInteger derInteger3 = this.trailerField;
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
DerInteger derInteger4 = this.trailerField;
|
||||
DerTaggedObject derTaggedObject4 = new DerTaggedObject(true, 3, derInteger4);
|
||||
if (derTaggedObject4 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject4;
|
||||
asn1EncodableVector.Add(array4);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C9DE RID: 51678 RVA: 0x002DC6AC File Offset: 0x002DA8AC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C9DE")]
|
||||
[Address(RVA = "0x2F90280", Offset = "0x2F8F280", VA = "0x182F90280")]
|
||||
static RsassaPssParameters()
|
||||
{
|
||||
DerObjectIdentifier idSha = OiwObjectIdentifiers.IdSha1;
|
||||
DerNull instance = DerNull.Instance;
|
||||
RsassaPssParameters.DefaultHashAlgorithm = new AlgorithmIdentifier(idSha, instance);
|
||||
DerObjectIdentifier idMgf = PkcsObjectIdentifiers.IdMgf1;
|
||||
AlgorithmIdentifier defaultHashAlgorithm = RsassaPssParameters.DefaultHashAlgorithm;
|
||||
RsassaPssParameters.DefaultMaskGenFunction = new AlgorithmIdentifier(idMgf, defaultHashAlgorithm);
|
||||
RsassaPssParameters.DefaultSaltLength = new DerInteger(20);
|
||||
RsassaPssParameters.DefaultTrailerField = new DerInteger(1);
|
||||
}
|
||||
|
||||
// Token: 0x04007F7C RID: 32636
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F7C")]
|
||||
private AlgorithmIdentifier hashAlgorithm;
|
||||
|
||||
// Token: 0x04007F7D RID: 32637
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F7D")]
|
||||
private AlgorithmIdentifier maskGenAlgorithm;
|
||||
|
||||
// Token: 0x04007F7E RID: 32638
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007F7E")]
|
||||
private DerInteger saltLength;
|
||||
|
||||
// Token: 0x04007F7F RID: 32639
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007F7F")]
|
||||
private DerInteger trailerField;
|
||||
|
||||
// Token: 0x04007F80 RID: 32640
|
||||
[Token(Token = "0x4007F80")]
|
||||
public static readonly AlgorithmIdentifier DefaultHashAlgorithm;
|
||||
|
||||
// Token: 0x04007F81 RID: 32641
|
||||
[Token(Token = "0x4007F81")]
|
||||
public static readonly AlgorithmIdentifier DefaultMaskGenFunction;
|
||||
|
||||
// Token: 0x04007F82 RID: 32642
|
||||
[Token(Token = "0x4007F82")]
|
||||
public static readonly DerInteger DefaultSaltLength;
|
||||
|
||||
// Token: 0x04007F83 RID: 32643
|
||||
[Token(Token = "0x4007F83")]
|
||||
public static readonly DerInteger DefaultTrailerField;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F7C RID: 8060
|
||||
[Token(Token = "0x2001F7C")]
|
||||
public class SafeBag : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9DF RID: 51679 RVA: 0x002DC700 File Offset: 0x002DA900
|
||||
[Token(Token = "0x600C9DF")]
|
||||
[Address(RVA = "0x2E8C5B0", Offset = "0x2E8B5B0", VA = "0x182E8C5B0")]
|
||||
public SafeBag(DerObjectIdentifier oid, Asn1Object obj)
|
||||
{
|
||||
this.bagID = oid;
|
||||
this.bagValue = obj;
|
||||
this.bagAttributes = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E0 RID: 51680 RVA: 0x002DC72C File Offset: 0x002DA92C
|
||||
[Token(Token = "0x600C9E0")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
public SafeBag(DerObjectIdentifier oid, Asn1Object obj, Asn1Set bagAttributes)
|
||||
{
|
||||
this.bagID = oid;
|
||||
this.bagValue = obj;
|
||||
this.bagAttributes = bagAttributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E1 RID: 51681 RVA: 0x002DC754 File Offset: 0x002DA954
|
||||
[Token(Token = "0x600C9E1")]
|
||||
[Address(RVA = "0x2F908F0", Offset = "0x2F8F8F0", VA = "0x182F908F0")]
|
||||
public SafeBag(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser3;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.bagID = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
this.bagValue = asn1Object;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)3L)
|
||||
{
|
||||
return;
|
||||
}
|
||||
parser3 = seq.Parser;
|
||||
if (parser3 == 0 || parser3 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.bagAttributes = parser3;
|
||||
}
|
||||
|
||||
// Token: 0x17001F69 RID: 8041
|
||||
// (get) Token: 0x0600C9E2 RID: 51682 RVA: 0x002DC7C8 File Offset: 0x002DA9C8
|
||||
[Token(Token = "0x17001F69")]
|
||||
public DerObjectIdentifier BagID
|
||||
{
|
||||
[Token(Token = "0x600C9E2")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.bagID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F6A RID: 8042
|
||||
// (get) Token: 0x0600C9E3 RID: 51683 RVA: 0x002DC7DC File Offset: 0x002DA9DC
|
||||
[Token(Token = "0x17001F6A")]
|
||||
public Asn1Object BagValue
|
||||
{
|
||||
[Token(Token = "0x600C9E3")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.bagValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F6B RID: 8043
|
||||
// (get) Token: 0x0600C9E4 RID: 51684 RVA: 0x002DC7F0 File Offset: 0x002DA9F0
|
||||
[Token(Token = "0x17001F6B")]
|
||||
public Asn1Set BagAttributes
|
||||
{
|
||||
[Token(Token = "0x600C9E4")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.bagAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E5 RID: 51685 RVA: 0x002DC804 File Offset: 0x002DAA04
|
||||
[Token(Token = "0x600C9E5")]
|
||||
[Address(RVA = "0x2F90700", Offset = "0x2F8F700", VA = "0x182F90700", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.bagID;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Object asn1Object = this.bagValue;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num, asn1Object);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derTaggedObject;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.bagAttributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.bagAttributes;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1Set;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007F84 RID: 32644
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F84")]
|
||||
private readonly DerObjectIdentifier bagID;
|
||||
|
||||
// Token: 0x04007F85 RID: 32645
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F85")]
|
||||
private readonly Asn1Object bagValue;
|
||||
|
||||
// Token: 0x04007F86 RID: 32646
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007F86")]
|
||||
private readonly Asn1Set bagAttributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,254 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F7D RID: 8061
|
||||
[Token(Token = "0x2001F7D")]
|
||||
public class SignedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9E6 RID: 51686 RVA: 0x002DC894 File Offset: 0x002DAA94
|
||||
[Token(Token = "0x600C9E6")]
|
||||
[Address(RVA = "0x2F93040", Offset = "0x2F92040", VA = "0x182F93040")]
|
||||
public static SignedData GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
return new SignedData(Asn1Sequence.GetInstance(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E7 RID: 51687 RVA: 0x002DC8B8 File Offset: 0x002DAAB8
|
||||
[Token(Token = "0x600C9E7")]
|
||||
[Address(RVA = "0x2F93480", Offset = "0x2F92480", VA = "0x182F93480")]
|
||||
public SignedData(DerInteger _version, Asn1Set _digestAlgorithms, ContentInfo _contentInfo, Asn1Set _certificates, Asn1Set _crls, Asn1Set _signerInfos)
|
||||
{
|
||||
this.certificates = 0;
|
||||
this.crls = 0;
|
||||
this.version = _version;
|
||||
this.contentInfo = _contentInfo;
|
||||
this.signerInfos = 0;
|
||||
this.digestAlgorithms = _digestAlgorithms;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E8 RID: 51688 RVA: 0x002DC8F8 File Offset: 0x002DAAF8
|
||||
[Token(Token = "0x600C9E8")]
|
||||
[Address(RVA = "0x2F934F0", Offset = "0x2F924F0", VA = "0x182F934F0")]
|
||||
private SignedData(Asn1Sequence seq)
|
||||
{
|
||||
ContentInfo contentInfo;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator == 0 || enumerator != 0)
|
||||
{
|
||||
this.version = enumerator;
|
||||
if (enumerator == 0 || enumerator != 0)
|
||||
{
|
||||
this.digestAlgorithms = enumerator;
|
||||
this.contentInfo = contentInfo;
|
||||
if (contentInfo == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (contentInfo == 0)
|
||||
{
|
||||
}
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
if (contentInfo == 0)
|
||||
{
|
||||
this.signerInfos = contentInfo;
|
||||
}
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (contentInfo.contentType == 0)
|
||||
{
|
||||
Asn1Set asn1Set;
|
||||
this.certificates = asn1Set;
|
||||
}
|
||||
Asn1Set asn1Set2;
|
||||
this.crls = asn1Set2;
|
||||
}
|
||||
|
||||
// Token: 0x17001F6C RID: 8044
|
||||
// (get) Token: 0x0600C9E9 RID: 51689 RVA: 0x002DC994 File Offset: 0x002DAB94
|
||||
[Token(Token = "0x17001F6C")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9E9")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F6D RID: 8045
|
||||
// (get) Token: 0x0600C9EA RID: 51690 RVA: 0x002DC9A8 File Offset: 0x002DABA8
|
||||
[Token(Token = "0x17001F6D")]
|
||||
public Asn1Set DigestAlgorithms
|
||||
{
|
||||
[Token(Token = "0x600C9EA")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithms;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F6E RID: 8046
|
||||
// (get) Token: 0x0600C9EB RID: 51691 RVA: 0x002DC9BC File Offset: 0x002DABBC
|
||||
[Token(Token = "0x17001F6E")]
|
||||
public ContentInfo ContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C9EB")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.contentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F6F RID: 8047
|
||||
// (get) Token: 0x0600C9EC RID: 51692 RVA: 0x002DC9D0 File Offset: 0x002DABD0
|
||||
[Token(Token = "0x17001F6F")]
|
||||
public Asn1Set Certificates
|
||||
{
|
||||
[Token(Token = "0x600C9EC")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.certificates;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F70 RID: 8048
|
||||
// (get) Token: 0x0600C9ED RID: 51693 RVA: 0x002DC9E4 File Offset: 0x002DABE4
|
||||
[Token(Token = "0x17001F70")]
|
||||
public Asn1Set Crls
|
||||
{
|
||||
[Token(Token = "0x600C9ED")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.crls;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F71 RID: 8049
|
||||
// (get) Token: 0x0600C9EE RID: 51694 RVA: 0x002DC9F8 File Offset: 0x002DABF8
|
||||
[Token(Token = "0x17001F71")]
|
||||
public Asn1Set SignerInfos
|
||||
{
|
||||
[Token(Token = "0x600C9EE")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.signerInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9EF RID: 51695 RVA: 0x002DCA0C File Offset: 0x002DAC0C
|
||||
[Token(Token = "0x600C9EF")]
|
||||
[Address(RVA = "0x2F930F0", Offset = "0x2F920F0", VA = "0x182F930F0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1Set asn1Set = this.digestAlgorithms;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Set;
|
||||
ContentInfo contentInfo = this.contentInfo;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
}
|
||||
array[2] = contentInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.certificates != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.certificates;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set2);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.crls != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set3 = this.crls;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set3);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set4 = this.signerInfos;
|
||||
if (asn1Set4 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = asn1Set4;
|
||||
asn1EncodableVector.Add(array4);
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007F87 RID: 32647
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F87")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x04007F88 RID: 32648
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F88")]
|
||||
private readonly Asn1Set digestAlgorithms;
|
||||
|
||||
// Token: 0x04007F89 RID: 32649
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007F89")]
|
||||
private readonly ContentInfo contentInfo;
|
||||
|
||||
// Token: 0x04007F8A RID: 32650
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007F8A")]
|
||||
private readonly Asn1Set certificates;
|
||||
|
||||
// Token: 0x04007F8B RID: 32651
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007F8B")]
|
||||
private readonly Asn1Set crls;
|
||||
|
||||
// Token: 0x04007F8C RID: 32652
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007F8C")]
|
||||
private readonly Asn1Set signerInfos;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,297 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F7E RID: 8062
|
||||
[Token(Token = "0x2001F7E")]
|
||||
public class SignerInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9F0 RID: 51696 RVA: 0x002DCB20 File Offset: 0x002DAD20
|
||||
[Token(Token = "0x600C9F0")]
|
||||
[Address(RVA = "0x2F93850", Offset = "0x2F92850", VA = "0x182F93850")]
|
||||
public static SignerInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9F0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.SignerInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.SignerInfo::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: 0x0600C9F1 RID: 51697 RVA: 0x002DCB70 File Offset: 0x002DAD70
|
||||
[Token(Token = "0x600C9F1")]
|
||||
[Address(RVA = "0x2F94150", Offset = "0x2F93150", VA = "0x182F94150")]
|
||||
public SignerInfo(DerInteger version, IssuerAndSerialNumber issuerAndSerialNumber, AlgorithmIdentifier digAlgorithm, Asn1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Asn1Set unauthenticatedAttributes)
|
||||
{
|
||||
this.authenticatedAttributes = 0;
|
||||
this.digEncryptionAlgorithm = 0;
|
||||
this.encryptedDigest = 0;
|
||||
this.version = version;
|
||||
this.digAlgorithm = digAlgorithm;
|
||||
this.unauthenticatedAttributes = 0;
|
||||
this.issuerAndSerialNumber = issuerAndSerialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9F2 RID: 51698 RVA: 0x002DCBB4 File Offset: 0x002DADB4
|
||||
[Token(Token = "0x600C9F2")]
|
||||
[Address(RVA = "0x2F93E20", Offset = "0x2F92E20", VA = "0x182F93E20")]
|
||||
public SignerInfo(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
num = 0;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
this.version = enumerator;
|
||||
IssuerAndSerialNumber issuerAndSerialNumber;
|
||||
this.issuerAndSerialNumber = issuerAndSerialNumber;
|
||||
AlgorithmIdentifier instance = AlgorithmIdentifier.GetInstance(issuerAndSerialNumber);
|
||||
this.digAlgorithm = instance;
|
||||
Asn1Set asn1Set;
|
||||
if (instance != 0 && instance != 0)
|
||||
{
|
||||
if (instance == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
this.authenticatedAttributes = asn1Set;
|
||||
}
|
||||
this.authenticatedAttributes = num;
|
||||
AlgorithmIdentifier instance2 = AlgorithmIdentifier.GetInstance(asn1Set);
|
||||
this.digEncryptionAlgorithm = instance2;
|
||||
Asn1OctetString instance3 = Asn1OctetString.GetInstance(instance2);
|
||||
this.encryptedDigest = instance3;
|
||||
if (instance3 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance3 == 0 || instance3 != 0)
|
||||
{
|
||||
goto IL_9A;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.unauthenticatedAttributes = num;
|
||||
return;
|
||||
IL_9A:
|
||||
Asn1Set asn1Set2;
|
||||
this.unauthenticatedAttributes = asn1Set2;
|
||||
}
|
||||
|
||||
// Token: 0x17001F72 RID: 8050
|
||||
// (get) Token: 0x0600C9F3 RID: 51699 RVA: 0x002DCC6C File Offset: 0x002DAE6C
|
||||
[Token(Token = "0x17001F72")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9F3")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F73 RID: 8051
|
||||
// (get) Token: 0x0600C9F4 RID: 51700 RVA: 0x002DCC80 File Offset: 0x002DAE80
|
||||
[Token(Token = "0x17001F73")]
|
||||
public IssuerAndSerialNumber IssuerAndSerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C9F4")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.issuerAndSerialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F74 RID: 8052
|
||||
// (get) Token: 0x0600C9F5 RID: 51701 RVA: 0x002DCC94 File Offset: 0x002DAE94
|
||||
[Token(Token = "0x17001F74")]
|
||||
public Asn1Set AuthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600C9F5")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.authenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F75 RID: 8053
|
||||
// (get) Token: 0x0600C9F6 RID: 51702 RVA: 0x002DCCA8 File Offset: 0x002DAEA8
|
||||
[Token(Token = "0x17001F75")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9F6")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.digAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F76 RID: 8054
|
||||
// (get) Token: 0x0600C9F7 RID: 51703 RVA: 0x002DCCBC File Offset: 0x002DAEBC
|
||||
[Token(Token = "0x17001F76")]
|
||||
public Asn1OctetString EncryptedDigest
|
||||
{
|
||||
[Token(Token = "0x600C9F7")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F77 RID: 8055
|
||||
// (get) Token: 0x0600C9F8 RID: 51704 RVA: 0x002DCCD0 File Offset: 0x002DAED0
|
||||
[Token(Token = "0x17001F77")]
|
||||
public AlgorithmIdentifier DigestEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9F8")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.digEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F78 RID: 8056
|
||||
// (get) Token: 0x0600C9F9 RID: 51705 RVA: 0x002DCCE4 File Offset: 0x002DAEE4
|
||||
[Token(Token = "0x17001F78")]
|
||||
public Asn1Set UnauthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600C9F9")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9FA RID: 51706 RVA: 0x002DCCF8 File Offset: 0x002DAEF8
|
||||
[Token(Token = "0x600C9FA")]
|
||||
[Address(RVA = "0x2F93A40", Offset = "0x2F92A40", VA = "0x182F93A40", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
IssuerAndSerialNumber issuerAndSerialNumber = this.issuerAndSerialNumber;
|
||||
if (issuerAndSerialNumber != 0)
|
||||
{
|
||||
}
|
||||
array[1] = issuerAndSerialNumber;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.digAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[2] = algorithmIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.authenticatedAttributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.authenticatedAttributes;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.digEncryptionAlgorithm;
|
||||
if (algorithmIdentifier2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = algorithmIdentifier2;
|
||||
Asn1OctetString asn1OctetString = this.encryptedDigest;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.unauthenticatedAttributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.unauthenticatedAttributes;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007F8D RID: 32653
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F8D")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007F8E RID: 32654
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F8E")]
|
||||
private IssuerAndSerialNumber issuerAndSerialNumber;
|
||||
|
||||
// Token: 0x04007F8F RID: 32655
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007F8F")]
|
||||
private AlgorithmIdentifier digAlgorithm;
|
||||
|
||||
// Token: 0x04007F90 RID: 32656
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007F90")]
|
||||
private Asn1Set authenticatedAttributes;
|
||||
|
||||
// Token: 0x04007F91 RID: 32657
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007F91")]
|
||||
private AlgorithmIdentifier digEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04007F92 RID: 32658
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007F92")]
|
||||
private Asn1OctetString encryptedDigest;
|
||||
|
||||
// Token: 0x04007F93 RID: 32659
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007F93")]
|
||||
private Asn1Set unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user