xor static method
Performs a bitwise XOR operation on two lists of bytes.
Takes two lists of bytes and returns a new list where each byte is the result of the XOR operation between the corresponding bytes in the input lists.
Implementation
static List<int> xor(List<int> dataBytes1, List<int> dataBytes2) {
return List<int>.from(List<int>.generate(
dataBytes1.length, (index) => dataBytes1[index] ^ dataBytes2[index]));
}