acceptableWindows method
Returns the list of acceptable windows for verification.
Example: w=100, skew=1 => 99, 100, 101
HINT: Decryptor should iterate these when verifying tags.
Implementation
List<int> acceptableWindows(int receivedWindow) {
if (verificationSkewWindows == 0) return [receivedWindow];
final List<int> ws = <int>[];
for (int d = -verificationSkewWindows; d <= verificationSkewWindows; d++) {
ws.add(receivedWindow + d);
}
return ws;
}