Skip to content

Incorrect algo implementation (signed vs unsigned) #2

@remittor

Description

@remittor

Lines that contain errors:

hash ^= (int(binascii.hexlify(data[2]), 16) << 18) & 0xFFFFFFFF

hash += int(binascii.hexlify(data[0]), 16)

Correct implementation:
https://github.com/openwrt-xiaomi/xmir-patcher/blob/main/po2lmo.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions