Example #1
0
		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.");
			}
		}
Example #2
0
		public static void DumpHEX(ASN1Object ob) 
		{
			DumpHEX(ob.asDER());
		}