chaCha20 method

void chaCha20()

Performs the ChaCha20 algorithm

Implementation

void chaCha20() {
  Uint32List initialStateCopy = Uint32List.fromList(chaChaState.toList());
  tenQuarterRounds();

  for (int i = 0; i < chaChaState.length; i++) {
    chaChaState[i] += initialStateCopy[i];
  }
}