despite its simplicity, for some reason, my code refuses to work, even though the encryption works
# add() is just (a+b)%2**32. for some reason, without the function, it doesnt work
delta = 0x9e3779b9
sum = 0xc6ef3720
for x in range(cycles): # 32
data[1] = add(-add(data[0]<<4, key[2]) ^ add(data[0], sum) ^ add(data[0]>>5, key[3]), data[1])
data[0] = add(-add(data[1]<<4, key[0]) ^ add(data[1], sum) ^ add(data[1]>>5, key[1]), data[0])
sum -= delta
can anyone tell me why?