rho method

void rho(
  1. Register64List A
)
inherited

Implementation

void rho(Register64List A) {
  final r = Register64();

  for (var x = 0; x < 5; x++) {
    for (var y = 0; y < 5; y++) {
      final index = x + 5 * y;

      if (_keccakRhoOffsets[index] != 0) {
        r.set(A[index]);
        r.shiftr(64 - _keccakRhoOffsets[index]);

        A[index].shiftl(_keccakRhoOffsets[index]);
        A[index].xor(r);
      }
    }
  }
}