void AES::encrypt() { round = 0; keyAdd(); round++; for (; round < 10; round++) runRound(); subBytes(); shiftRows(); keyAdd(); printData(); }
void GuiPlay::executeRound() { if ( timerCount_ < game_.getIterations() ) { game_.executeRound(); bool updateScore = timerCount_ % 500 == 0 || timerCount_ == game_.getIterations() - 1; if ( timerCount_ % updateFrequency_ == 0 ) { runRound( game_.minScore(), game_.maxScore(), updateScore ); } ++timerCount_; progressBar_->setValue( timerCount_ ); } else { timeBetweenRounds_->stop(); paused_ = false; stopped_ = true; emit stopPlaying(); } }