using System; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs { // Token: 0x020018BC RID: 6332 [Token(Token = "0x20018BC")] [StructLayout(3)] public class RsaesOaepParameters : Asn1Encodable { // Token: 0x0600AA17 RID: 43543 RVA: 0x0027AFD4 File Offset: 0x002791D4 [Token(Token = "0x600AA17")] [Address(RVA = "0x262B4C0", Offset = "0x2629EC0", VA = "0x18262B4C0")] public static RsaesOaepParameters GetInstance(object obj) { /* An exception occurred when decompiling this method (0600AA17) 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: 0x0600AA18 RID: 43544 RVA: 0x0027B024 File Offset: 0x00279224 [Token(Token = "0x600AA18")] [Address(RVA = "0x262BE10", Offset = "0x262A810", VA = "0x18262BE10")] public RsaesOaepParameters() { AlgorithmIdentifier defaultHashAlgorithm = RsaesOaepParameters.DefaultHashAlgorithm; this.hashAlgorithm = defaultHashAlgorithm; AlgorithmIdentifier defaultMaskGenFunction = RsaesOaepParameters.DefaultMaskGenFunction; this.maskGenAlgorithm = defaultMaskGenFunction; AlgorithmIdentifier defaultPSourceAlgorithm = RsaesOaepParameters.DefaultPSourceAlgorithm; this.pSourceAlgorithm = defaultPSourceAlgorithm; } // Token: 0x0600AA19 RID: 43545 RVA: 0x0027B060 File Offset: 0x00279260 [Token(Token = "0x600AA19")] [Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")] public RsaesOaepParameters(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, AlgorithmIdentifier pSourceAlgorithm) { this.hashAlgorithm = hashAlgorithm; this.maskGenAlgorithm = maskGenAlgorithm; this.pSourceAlgorithm = pSourceAlgorithm; } // Token: 0x0600AA1A RID: 43546 RVA: 0x0027B088 File Offset: 0x00279288 [Token(Token = "0x600AA1A")] [Address(RVA = "0x262BC30", Offset = "0x262A630", VA = "0x18262BC30")] public RsaesOaepParameters(Asn1Sequence seq) { /* An exception occurred when decompiling this method (0600AA1A) 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: 0x17001ABC RID: 6844 // (get) Token: 0x0600AA1B RID: 43547 RVA: 0x0027B120 File Offset: 0x00279320 [Token(Token = "0x17001ABC")] public AlgorithmIdentifier HashAlgorithm { [Token(Token = "0x600AA1B")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")] get { return this.hashAlgorithm; } } // Token: 0x17001ABD RID: 6845 // (get) Token: 0x0600AA1C RID: 43548 RVA: 0x0027B134 File Offset: 0x00279334 [Token(Token = "0x17001ABD")] public AlgorithmIdentifier MaskGenAlgorithm { [Token(Token = "0x600AA1C")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this.maskGenAlgorithm; } } // Token: 0x17001ABE RID: 6846 // (get) Token: 0x0600AA1D RID: 43549 RVA: 0x0027B148 File Offset: 0x00279348 [Token(Token = "0x17001ABE")] public AlgorithmIdentifier PSourceAlgorithm { [Token(Token = "0x600AA1D")] [Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")] get { return this.pSourceAlgorithm; } } // Token: 0x0600AA1E RID: 43550 RVA: 0x0027B15C File Offset: 0x0027935C [Token(Token = "0x600AA1E")] [Address(RVA = "0x262B6B0", Offset = "0x262A0B0", VA = "0x18262B6B0", 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: 0x0600AA1F RID: 43551 RVA: 0x0027B22C File Offset: 0x0027942C // Note: this type is marked as 'beforefieldinit'. [Token(Token = "0x600AA1F")] [Address(RVA = "0x262BA70", Offset = "0x262A470", VA = "0x18262BA70")] 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: 0x04006F72 RID: 28530 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006F72")] private AlgorithmIdentifier hashAlgorithm; // Token: 0x04006F73 RID: 28531 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4006F73")] private AlgorithmIdentifier maskGenAlgorithm; // Token: 0x04006F74 RID: 28532 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4006F74")] private AlgorithmIdentifier pSourceAlgorithm; // Token: 0x04006F75 RID: 28533 [Token(Token = "0x4006F75")] public static readonly AlgorithmIdentifier DefaultHashAlgorithm; // Token: 0x04006F76 RID: 28534 [Token(Token = "0x4006F76")] public static readonly AlgorithmIdentifier DefaultMaskGenFunction; // Token: 0x04006F77 RID: 28535 [Token(Token = "0x4006F77")] public static readonly AlgorithmIdentifier DefaultPSourceAlgorithm; } }