def tea_decipher(v, key):
DELTA = <NUM_LIT><EOL>n = len(v)<EOL>rounds = <NUM_LIT:6> + <NUM_LIT>//n<EOL>sum = (rounds*DELTA)<EOL>y = v[<NUM_LIT:0>]<EOL>while sum != <NUM_LIT:0>:<EOL><INDENT>e = (sum >> <NUM_LIT:2>) & <NUM_LIT:3><EOL>for p in range(n-<NUM_LIT:1>, -<NUM_LIT:1>, -<NUM_LIT:1>):<EOL><INDENT>z = v[(n + p - <NUM_LIT:1>) % n]<EOL>v[p] = (v[p] - MX(z, y, sum, key, p, e)) & <NUM_LIT><EOL>y = v[p]<EOL><DEDENT>sum -= DELTA<EOL><DEDENT>return v<EOL>
Tiny Decryption Algorithm decription (TEA)
See https://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm