CRC-32 #
The standard CRC-32 (IEEE 802.3, reflected polynomial 0xEDB88320), as used by zip and PNG.
It is used only to detect accidents (typos, truncation, mixing up shares), never as a security check: anyone can recompute it (see README: Threat model).
The implementation is bitwise and branch-free (the conditional XOR uses a mask). That matters because the secret's integrity tag is a CRC of secret data. A lookup table indexed by secret bytes could leak them through cache timing.