tenQuarterRounds method
void
tenQuarterRounds()
ChaCha20 consists of ten of these quarter rounds
Implementation
void tenQuarterRounds() {
for (int i = 0; i < 10; i++) {
quarterRound(0, 4, 8, 12);
quarterRound(1, 5, 9, 13);
quarterRound(2, 6, 10, 14);
quarterRound(3, 7, 11, 15);
quarterRound(0, 5, 10, 15);
quarterRound(1, 6, 11, 12);
quarterRound(2, 7, 8, 13);
quarterRound(3, 4, 9, 14);
}
}