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