public SCrypt(byte[] password, byte[] salt, int cost, int blockSize, int parallelization) { Password = password; Salt = salt; Cost = cost; BlockSize = blockSize; Parallelization = parallelization; PBKDF2 = new PBKDF2(new HMAC(new SHA256(), password), password, salt, 1); Reset(); }