scripts
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001798 RID: 6040
|
||||
[Token(Token = "0x2001798")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Asn1Encodable : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A30B RID: 41739 RVA: 0x0025FB3C File Offset: 0x0025DD3C
|
||||
[Token(Token = "0x600A30B")]
|
||||
[Address(RVA = "0x2675140", Offset = "0x2673B40", VA = "0x182675140")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
new Asn1OutputStream(memoryStream).WriteObject(this);
|
||||
((IDisposable)memoryStream).Dispose();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A30C RID: 41740 RVA: 0x0025FB68 File Offset: 0x0025DD68
|
||||
[Token(Token = "0x600A30C")]
|
||||
[Address(RVA = "0x2675030", Offset = "0x2673A30", VA = "0x182675030")]
|
||||
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: 0x0600A30D RID: 41741 RVA: 0x0025FBA8 File Offset: 0x0025DDA8
|
||||
[Token(Token = "0x600A30D")]
|
||||
[Address(RVA = "0x2674FD0", Offset = "0x26739D0", VA = "0x182674FD0")]
|
||||
public byte[] GetDerEncoded()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A30D)
|
||||
|
||||
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: 0x0600A30E RID: 41742 RVA: 0x0025FBC4 File Offset: 0x0025DDC4
|
||||
[Token(Token = "0x600A30E")]
|
||||
[Address(RVA = "0x26751F0", Offset = "0x2673BF0", VA = "0x1826751F0", Slot = "2")]
|
||||
public sealed override int GetHashCode()
|
||||
{
|
||||
return this.ToAsn1Object().Asn1GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600A30F RID: 41743 RVA: 0x0025FBE4 File Offset: 0x0025DDE4
|
||||
[Token(Token = "0x600A30F")]
|
||||
[Address(RVA = "0x2674EF0", Offset = "0x26738F0", VA = "0x182674EF0", 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: 0x0600A310 RID: 41744
|
||||
[Token(Token = "0x600A310")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract Asn1Object ToAsn1Object();
|
||||
|
||||
// Token: 0x0600A311 RID: 41745 RVA: 0x0025FC10 File Offset: 0x0025DE10
|
||||
[Token(Token = "0x600A311")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected Asn1Encodable()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04006B14 RID: 27412
|
||||
[Token(Token = "0x4006B14")]
|
||||
public const string Der = "DER";
|
||||
|
||||
// Token: 0x04006B15 RID: 27413
|
||||
[Token(Token = "0x4006B15")]
|
||||
public const string Ber = "BER";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user