a
This commit is contained in:
+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: 0x02001E99 RID: 7833
|
||||
[Token(Token = "0x2001E99")]
|
||||
public class RsaesOaepParameters : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C5F1 RID: 50673 RVA: 0x002D34E0 File Offset: 0x002D16E0
|
||||
[Token(Token = "0x600C5F1")]
|
||||
[Address(RVA = "0x2BCBC80", Offset = "0x2BCAA80", VA = "0x182BCBC80")]
|
||||
public static RsaesOaepParameters GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C5F1)
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600C5F2 RID: 50674 RVA: 0x002D3530 File Offset: 0x002D1730
|
||||
[Token(Token = "0x600C5F2")]
|
||||
[Address(RVA = "0x2BCC5D0", Offset = "0x2BCB3D0", VA = "0x182BCC5D0")]
|
||||
public RsaesOaepParameters()
|
||||
{
|
||||
AlgorithmIdentifier defaultHashAlgorithm = RsaesOaepParameters.DefaultHashAlgorithm;
|
||||
this.hashAlgorithm = defaultHashAlgorithm;
|
||||
AlgorithmIdentifier defaultMaskGenFunction = RsaesOaepParameters.DefaultMaskGenFunction;
|
||||
this.maskGenAlgorithm = defaultMaskGenFunction;
|
||||
AlgorithmIdentifier defaultPSourceAlgorithm = RsaesOaepParameters.DefaultPSourceAlgorithm;
|
||||
this.pSourceAlgorithm = defaultPSourceAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600C5F3 RID: 50675 RVA: 0x002D356C File Offset: 0x002D176C
|
||||
[Token(Token = "0x600C5F3")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
public RsaesOaepParameters(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, AlgorithmIdentifier pSourceAlgorithm)
|
||||
{
|
||||
this.hashAlgorithm = hashAlgorithm;
|
||||
this.maskGenAlgorithm = maskGenAlgorithm;
|
||||
this.pSourceAlgorithm = pSourceAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600C5F4 RID: 50676 RVA: 0x002D3594 File Offset: 0x002D1794
|
||||
[Token(Token = "0x600C5F4")]
|
||||
[Address(RVA = "0x2BCC3F0", Offset = "0x2BCB1F0", VA = "0x182BCC3F0")]
|
||||
public RsaesOaepParameters(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C5F4)
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001EBD RID: 7869
|
||||
// (get) Token: 0x0600C5F5 RID: 50677 RVA: 0x002D362C File Offset: 0x002D182C
|
||||
[Token(Token = "0x17001EBD")]
|
||||
public AlgorithmIdentifier HashAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C5F5")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.hashAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001EBE RID: 7870
|
||||
// (get) Token: 0x0600C5F6 RID: 50678 RVA: 0x002D3640 File Offset: 0x002D1840
|
||||
[Token(Token = "0x17001EBE")]
|
||||
public AlgorithmIdentifier MaskGenAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C5F6")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.maskGenAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001EBF RID: 7871
|
||||
// (get) Token: 0x0600C5F7 RID: 50679 RVA: 0x002D3654 File Offset: 0x002D1854
|
||||
[Token(Token = "0x17001EBF")]
|
||||
public AlgorithmIdentifier PSourceAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C5F7")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.pSourceAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C5F8 RID: 50680 RVA: 0x002D3668 File Offset: 0x002D1868
|
||||
[Token(Token = "0x600C5F8")]
|
||||
[Address(RVA = "0x2BCBE70", Offset = "0x2BCAC70", VA = "0x182BCBE70", 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: 0x0600C5F9 RID: 50681 RVA: 0x002D3738 File Offset: 0x002D1938
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C5F9")]
|
||||
[Address(RVA = "0x2BCC230", Offset = "0x2BCB030", VA = "0x182BCC230")]
|
||||
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: 0x04007DB5 RID: 32181
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007DB5")]
|
||||
private AlgorithmIdentifier hashAlgorithm;
|
||||
|
||||
// Token: 0x04007DB6 RID: 32182
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007DB6")]
|
||||
private AlgorithmIdentifier maskGenAlgorithm;
|
||||
|
||||
// Token: 0x04007DB7 RID: 32183
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007DB7")]
|
||||
private AlgorithmIdentifier pSourceAlgorithm;
|
||||
|
||||
// Token: 0x04007DB8 RID: 32184
|
||||
[Token(Token = "0x4007DB8")]
|
||||
public static readonly AlgorithmIdentifier DefaultHashAlgorithm;
|
||||
|
||||
// Token: 0x04007DB9 RID: 32185
|
||||
[Token(Token = "0x4007DB9")]
|
||||
public static readonly AlgorithmIdentifier DefaultMaskGenFunction;
|
||||
|
||||
// Token: 0x04007DBA RID: 32186
|
||||
[Token(Token = "0x4007DBA")]
|
||||
public static readonly AlgorithmIdentifier DefaultPSourceAlgorithm;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user