chi method

void chi(
  1. Register64List A
)
inherited

Implementation

void chi(Register64List A) {
  final chiC = Register64List(5);

  for (var y = 0; y < 5; y++) {
    for (var x = 0; x < 5; x++) {
      chiC[x].set(A[((x + 1) % 5) + (5 * y)]);
      chiC[x].not();
      chiC[x].and(A[((x + 2) % 5) + (5 * y)]);
      chiC[x].xor(A[x + 5 * y]);
    }
    for (var x = 0; x < 5; x++) {
      A[x + 5 * y].set(chiC[x]);
    }
  }
}