Example #1
0
 public Asn1Node GetNodeFromBytes(byte[] bytes)
 {
     using (var stream = new MemoryStream(bytes))
     {
         var resultNode = new Asn1Node();
         try
         {
             resultNode.RequireRecalculatePar = false;
             resultNode.InternalLoadData(stream);
             return(resultNode);
         }
         finally
         {
             resultNode.RequireRecalculatePar = true;
             resultNode.RecalculateTreePar();
         }
     }
 }