""" some tools for binary operations, i found python to be weird about """ def rotl32(value: int, count: int) -> int: """ left bitwise rotation / circular shift :param value: the value that will be shifted :param count: how far the value will be shifted """ ... def rotr32(value: int, count: int) -> int: """ right bitwise rotation / circular shift :param value: the value that will be shifted :param count: how far the value will be shifted """ ...