checkComply method
Implementation
List<int> checkComply(List<int> cand, List<int> s0) {
int sum = 5; //5
while (sum > s) {
sum = 0;
for (int i = 0; i < cand.length; i++) {
sum = sum + (cand[i] * s0[i]);
sum = sum % 2;
}
if (sum != s) {
cand = generateArray(AddressConstant().v8, 8);
cand = checkComply(cand, s0);
}
}
return cand;
}