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