示例#1
0
 private void BgwArgon2Benchmark_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     Settings.SaveSettings();
     // Deallocate RAM for Argon2
     GC.Collect();
     Argon2Benchmark.DeleteFirstRunFile();
     this.Hide();
     DisplayMessage.InformationMessageBox($"Argon2 will use a memory size of {Invariant.ToString(Globals.MemorySize / Constants.Mebibyte)} MiB. This value can be changed in the settings.{Environment.NewLine}{Environment.NewLine}For the full benchmark results, please view: {Constants.KryptorDirectory}\\benchmark.txt", "Argon2 Benchmark Results");
     ShowOtherForms();
     this.Close();
 }
示例#2
0
        private void BgwArgon2Benchmark_DoWork(object sender, DoWorkEventArgs e)
        {
            bool speedMode = (bool)e.Argument;

            Argon2Benchmark.RunBenchmark(speedMode);
        }
示例#3
0
 private void BgwTestArgon2Parameters_DoWork(object sender, DoWorkEventArgs e)
 {
     e.Result = Argon2Benchmark.TestArgon2Parameters();
 }