示例#1
0
        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));
            }
        }
            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));
                }
            }
示例#3
0
 public AsnKeyParser(ICollection <byte> contents)
 {
     _parser = new AsnParser(contents);
 }
 public AsnKeyParser(ICollection<byte> contents)
 {
     _parser = new AsnParser(contents);
 }