105 lines
5.0 KiB
C#
105 lines
5.0 KiB
C#
using System;
|
|
using System.IO;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
|
{
|
|
// Token: 0x02001D75 RID: 7541
|
|
[Token(Token = "0x2001D75")]
|
|
public abstract class Asn1Encodable : IAsn1Convertible
|
|
{
|
|
// Token: 0x0600BEE5 RID: 48869 RVA: 0x002B7F4C File Offset: 0x002B614C
|
|
[Token(Token = "0x600BEE5")]
|
|
[Address(RVA = "0x263D480", Offset = "0x263C280", VA = "0x18263D480")]
|
|
public byte[] GetEncoded()
|
|
{
|
|
MemoryStream memoryStream = new MemoryStream();
|
|
new Asn1OutputStream(memoryStream).WriteObject(this);
|
|
((IDisposable)memoryStream).Dispose();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600BEE6 RID: 48870 RVA: 0x002B7F78 File Offset: 0x002B6178
|
|
[Token(Token = "0x600BEE6")]
|
|
[Address(RVA = "0x263D370", Offset = "0x263C170", VA = "0x18263D370")]
|
|
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: 0x0600BEE7 RID: 48871 RVA: 0x002B7FB8 File Offset: 0x002B61B8
|
|
[Token(Token = "0x600BEE7")]
|
|
[Address(RVA = "0x263D310", Offset = "0x263C110", VA = "0x18263D310")]
|
|
public byte[] GetDerEncoded()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600BEE7)
|
|
|
|
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: 0x0600BEE8 RID: 48872 RVA: 0x002B7FD4 File Offset: 0x002B61D4
|
|
[Token(Token = "0x600BEE8")]
|
|
[Address(RVA = "0x263D530", Offset = "0x263C330", VA = "0x18263D530", Slot = "2")]
|
|
public sealed override int GetHashCode()
|
|
{
|
|
return this.ToAsn1Object().Asn1GetHashCode();
|
|
}
|
|
|
|
// Token: 0x0600BEE9 RID: 48873 RVA: 0x002B7FF4 File Offset: 0x002B61F4
|
|
[Token(Token = "0x600BEE9")]
|
|
[Address(RVA = "0x263D230", Offset = "0x263C030", VA = "0x18263D230", 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: 0x0600BEEA RID: 48874
|
|
[Token(Token = "0x600BEEA")]
|
|
[Address(Slot = "5")]
|
|
public abstract Asn1Object ToAsn1Object();
|
|
|
|
// Token: 0x0600BEEB RID: 48875 RVA: 0x002B8020 File Offset: 0x002B6220
|
|
[Token(Token = "0x600BEEB")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
protected Asn1Encodable()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04007957 RID: 31063
|
|
[Token(Token = "0x4007957")]
|
|
public const string Der = "DER";
|
|
|
|
// Token: 0x04007958 RID: 31064
|
|
[Token(Token = "0x4007958")]
|
|
public const string Ber = "BER";
|
|
}
|
|
}
|