Пример #1
0
        public static RarRijndael InitializeFrom(string password, byte[] salt)
        {
            var rijndael = new RarRijndael(password, salt);

            rijndael.Initialize();
            return(rijndael);
        }
Пример #2
0
 protected override void Dispose(bool disposing)
 {
     if (rijndael != null)
     {
         rijndael.Dispose();
         rijndael = null;
     }
     base.Dispose(disposing);
 }
Пример #3
0
 public RarCryptoWrapper(Stream actualStream, string password, byte[] salt)
 {
     this.actualStream = actualStream;
     this.salt         = salt;
     rijndael          = RarRijndael.InitializeFrom(password, salt);
 }
Пример #4
0
 internal void InitializeAes(byte[] salt)
 {
     this.salt = salt;
     rijndael  = RarRijndael.InitializeFrom(password, salt);
 }