예제 #1
0
        public RarCryptoBinaryReader(Stream stream, string password)
            : base(stream)
        {
            _password = password;

            // coderb: not sure why this was being done at this logical point
            //SkipQueue();
            byte[] salt = ReadBytes(8);

            _salt     = salt;
            _rijndael = RarRijndael.InitializeFrom(_password, salt);
        }
예제 #2
0
 public RarCryptoWrapper(Stream actualStream, string password, byte[] salt)
 {
     _actualStream = actualStream;
     _salt         = salt;
     _rijndael     = RarRijndael.InitializeFrom(password, salt);
 }
예제 #3
0
 internal void InitializeAes(byte[] salt)
 {
     this.salt = salt;
     rijndael  = RarRijndael.InitializeFrom(password, salt);
 }
예제 #4
0
 internal void InitializeAes(byte[] salt)
 {
     _salt     = salt;
     _rijndael = RarRijndael.InitializeFrom(_password, salt);
 }