using System; using System.Collections; using System.Text; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Utilities { // Token: 0x02001E41 RID: 7745 [Token(Token = "0x2001E41")] public sealed class Asn1Dump { // Token: 0x0600C453 RID: 50259 RVA: 0x002CC988 File Offset: 0x002CAB88 [Token(Token = "0x600C453")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] private Asn1Dump() { } // Token: 0x0600C454 RID: 50260 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x600C454")] [Address(RVA = "0x2719E70", Offset = "0x2718C70", VA = "0x182719E70")] private static void AsString(string indent, bool verbose, Asn1Object obj, StringBuilder buf) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x0600C455 RID: 50261 RVA: 0x002CC99C File Offset: 0x002CAB9C [Token(Token = "0x600C455")] [Address(RVA = "0x271D5D0", Offset = "0x271C3D0", VA = "0x18271D5D0")] private static string outputApplicationSpecific(string type, string indent, bool verbose, DerApplicationSpecific app) { StringBuilder stringBuilder; for (;;) { int num = 0; stringBuilder = new StringBuilder(); if ((app.isConstructed ? 1 : 0) == num) { break; } Asn1Sequence instance = Asn1Sequence.GetInstance(app.GetObject(16)); object[] array = new object[6]; if (indent != 0) { } array[0] = indent; if (type != 0) { } array[1] = type; if (" ApplicationSpecific[" != 0) { } array[2] = " ApplicationSpecific["; int tag = app.tag; if (tag != 0) { } array[3] = tag; if ("]" != 0) { } array[4] = "]"; if (tag != 0) { } array[5] = tag; string text = string.Concat(array); StringBuilder stringBuilder2 = stringBuilder.Append(text); IEnumerator enumerator = instance.GetEnumerator(); if (enumerator != 0) { if (enumerator == 0) { } if (enumerator == 0) { continue; } string text2 = indent + " "; } if (num == 0) { goto Block_3; } } object[] array2 = new object[0]; if (indent != 0) { } array2[0] = indent; if (type != 0) { } array2[1] = type; if (" ApplicationSpecific[" != 0) { } array2[2] = " ApplicationSpecific["; int tag2 = app.tag; if (tag2 != 0) { } array2[3] = tag2; if ("] (" != 0) { } array2[4] = "] ("; string text3 = Hex.ToHexString(app.octets); if (text3 != 0) { } array2[5] = text3; if (")" != 0) { } array2[6] = ")"; if (text3 != 0) { } array2[7] = text3; return string.Concat(array2); Block_3: int hashCode = stringBuilder.GetHashCode(); throw new NullReferenceException(); } // Token: 0x0600C456 RID: 50262 RVA: 0x002CCB30 File Offset: 0x002CAD30 [Token(Token = "0x600C456")] [Address(RVA = "0x271CE90", Offset = "0x271BC90", VA = "0x18271CE90")] [Obsolete] public static string DumpAsString(object obj) { while (obj != 0) { StringBuilder stringBuilder = new StringBuilder(); if (obj != 0 && obj != 0) { throw new NullReferenceException(); } } int hashCode = obj.GetHashCode(); string text; return text; } // Token: 0x0600C457 RID: 50263 RVA: 0x002CCB68 File Offset: 0x002CAD68 [Token(Token = "0x600C457")] [Address(RVA = "0x271D110", Offset = "0x271BF10", VA = "0x18271D110")] public static string DumpAsString(Asn1Encodable obj) { StringBuilder stringBuilder = new StringBuilder(); Asn1Object asn1Object = obj.ToAsn1Object(); int num = 0; Asn1Dump.AsString("", num != 0, asn1Object, stringBuilder); throw new NullReferenceException(); } // Token: 0x0600C458 RID: 50264 RVA: 0x002CCB98 File Offset: 0x002CAD98 [Token(Token = "0x600C458")] [Address(RVA = "0x271D040", Offset = "0x271BE40", VA = "0x18271D040")] public static string DumpAsString(Asn1Encodable obj, bool verbose) { StringBuilder stringBuilder = new StringBuilder(); Asn1Object asn1Object = obj.ToAsn1Object(); Asn1Dump.AsString("", verbose, asn1Object, stringBuilder); throw new NullReferenceException(); } // Token: 0x0600C459 RID: 50265 RVA: 0x002CCBC4 File Offset: 0x002CADC4 [Token(Token = "0x600C459")] [Address(RVA = "0x271D350", Offset = "0x271C150", VA = "0x18271D350")] private static string dumpBinaryDataAsString(string indent, byte[] bytes) { string text = indent + " "; StringBuilder stringBuilder = new StringBuilder(" "); int num = 0; int num2 = bytes.Length; if (num < num2) { num2 -= num; StringBuilder stringBuilder2 = stringBuilder.Append(text); int num3 = bytes.Length; num3 -= num; string text2 = Hex.ToHexString(bytes, num, num3); StringBuilder stringBuilder3 = stringBuilder.Append(text2); int num4 = bytes.Length; num4 -= num; if (num4 != 32) { uint num5; num5 -= (uint)num4; StringBuilder stringBuilder4 = stringBuilder.Append(" "); while (num4 != 32) { } } StringBuilder stringBuilder5 = stringBuilder.Append(" "); int num6 = bytes.Length; num6 -= num; string text3 = Hex.ToHexString(bytes, num, 32); StringBuilder stringBuilder6 = stringBuilder.Append(text3); StringBuilder stringBuilder7 = stringBuilder.Append(" "); uint num7; string text4 = Asn1Dump.calculateAscString(bytes, num, (int)num7); StringBuilder stringBuilder8 = stringBuilder.Append(text4); num += 32; } throw new NullReferenceException(); } // Token: 0x0600C45A RID: 50266 RVA: 0x002CCCB4 File Offset: 0x002CAEB4 [Token(Token = "0x600C45A")] [Address(RVA = "0x271D280", Offset = "0x271C080", VA = "0x18271D280")] private static string calculateAscString(byte[] bytes, int off, int len) { StringBuilder stringBuilder = new StringBuilder(); if (off != len) { if (off <= 94) { byte b; StringBuilder stringBuilder2 = stringBuilder.Append((char)b); } while (off != len) { } } throw new NullReferenceException(); } // Token: 0x0600C45B RID: 50267 RVA: 0x002CCCE4 File Offset: 0x002CAEE4 // Note: this type is marked as 'beforefieldinit'. [Token(Token = "0x600C45B")] [Address(RVA = "0x271D210", Offset = "0x271C010", VA = "0x18271D210")] static Asn1Dump() { string newLine = Platform.NewLine; } // Token: 0x04007BDD RID: 31709 [Token(Token = "0x4007BDD")] private static readonly string NewLine; // Token: 0x04007BDE RID: 31710 [Token(Token = "0x4007BDE")] private const string Tab = " "; // Token: 0x04007BDF RID: 31711 [Token(Token = "0x4007BDF")] private const int SampleSize = 32; } }