public static void DumpDERToFile(ASN1Object ob, String filename) { try { FileStream fs = new FileStream(filename, FileMode.Create, FileAccess.Write); BERWriter br = new BERWriter(fs); br.Write(ob.asDER().GetBERCode()); fs.Close(); br.Close(); } catch { Console.WriteLine("Failed at writing Data BER to file."); } }
public static void DumpHEX(ASN1Object ob) { DumpHEX(ob.asDER()); }