m
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E55 RID: 7765
|
||||
[Token(Token = "0x2001E55")]
|
||||
public abstract class Asn1Encodable : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C2B3 RID: 49843 RVA: 0x002C0844 File Offset: 0x002BEA44
|
||||
[Token(Token = "0x600C2B3")]
|
||||
[Address(RVA = "0x228D800", Offset = "0x228C800", VA = "0x18228D800")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
new Asn1OutputStream(memoryStream).WriteObject(this);
|
||||
((IDisposable)memoryStream).Dispose();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B4 RID: 49844 RVA: 0x002C0870 File Offset: 0x002BEA70
|
||||
[Token(Token = "0x600C2B4")]
|
||||
[Address(RVA = "0x228D6F0", Offset = "0x228C6F0", VA = "0x18228D6F0")]
|
||||
public byte[] GetEncoded(string encoding)
|
||||
{
|
||||
if (!encoding.Equals("DER"))
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
}
|
||||
MemoryStream memoryStream2 = new MemoryStream();
|
||||
new DerOutputStream(memoryStream2).WriteObject(this);
|
||||
((IDisposable)memoryStream2).Dispose();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B5 RID: 49845 RVA: 0x002C08B0 File Offset: 0x002BEAB0
|
||||
[Token(Token = "0x600C2B5")]
|
||||
[Address(RVA = "0x228D690", Offset = "0x228C690", VA = "0x18228D690")]
|
||||
public byte[] GetDerEncoded()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2B5)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable::GetDerEncoded()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:uint8[](var_0_0B, call:uint8[](Asn1Encodable::GetEncoded, ldloc:Asn1Encodable(this), ldstr:string("DER")))
|
||||
}
|
||||
|
||||
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: 0x0600C2B6 RID: 49846 RVA: 0x002C08CC File Offset: 0x002BEACC
|
||||
[Token(Token = "0x600C2B6")]
|
||||
[Address(RVA = "0x228D8B0", Offset = "0x228C8B0", VA = "0x18228D8B0", Slot = "2")]
|
||||
public sealed override int GetHashCode()
|
||||
{
|
||||
return this.ToAsn1Object().Asn1GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B7 RID: 49847 RVA: 0x002C08EC File Offset: 0x002BEAEC
|
||||
[Token(Token = "0x600C2B7")]
|
||||
[Address(RVA = "0x228D5B0", Offset = "0x228C5B0", VA = "0x18228D5B0", Slot = "0")]
|
||||
public sealed override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
Asn1Object asn1Object = this.ToAsn1Object();
|
||||
return asn1Object == null || asn1Object.Asn1Equals(asn1Object);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B8 RID: 49848
|
||||
[Token(Token = "0x600C2B8")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract Asn1Object ToAsn1Object();
|
||||
|
||||
// Token: 0x0600C2B9 RID: 49849 RVA: 0x002C0918 File Offset: 0x002BEB18
|
||||
[Token(Token = "0x600C2B9")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected Asn1Encodable()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007B10 RID: 31504
|
||||
[Token(Token = "0x4007B10")]
|
||||
public const string Der = "DER";
|
||||
|
||||
// Token: 0x04007B11 RID: 31505
|
||||
[Token(Token = "0x4007B11")]
|
||||
public const string Ber = "BER";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user