Exemple #1
0
        /// <summary>
        /// ANS.1 key parser.
        /// </summary>
        /// <param name="pathname">The path and name of the file.</param>
        public AsnKeyParser(String pathname)
        {
            using (var reader = new BinaryReader(
                       new FileStream(pathname, FileMode.Open, FileAccess.Read)))
            {
                var info = new FileInfo(pathname);

                parser = new AsnParser(reader.ReadBytes((int)info.Length));
            }
        }
Exemple #2
0
 /// <summary>
 /// ANS.1 key parser.
 /// </summary>
 /// <param name="contents">The raw contents.</param>
 public AsnKeyParser(byte[] contents)
 {
     parser = new AsnParser(contents);
 }