221 lines
13 KiB
C#
221 lines
13 KiB
C#
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;
|
|
}
|
|
}
|