Files

2 lines
63 B
Python

def calc_sum(data: bytes) -> int:
return sum(data) & 0xFFFF