def METHOD_NAME(i):
    u = salt + struct.pack(b'>I', i)
    result = 0
    for j in range(int(iterations)):
        dig1, dig2 = inner.copy(), outer.copy()
        dig1.update(u)
        dig2.update(dig1.digest())
        u = dig2.digest()
        result ^= _bin_to_long(u)
    return _long_to_bin(result, hex_format_string)