A 32-bit word in balanced digits has unique bits in an odd prime field exactly when the prime covers the word range plus the weights of the loose digits

1 citing publication

We represent a 32-bit word with balanced digits in an odd prime field. Each digit has a power-of-two radix. A check can remove either end of its signed range. We prove that a field element determines the low 32 bits exactly when the prime is at least 2^32 plus the sum of the weights of the digits that keep both endpoints. This gives a minimum count of checks and a pair of different words for each failed bound. At prime 4,294,967,311, binary signed digits require at least 28 checks. Keeping both signs at position 4 alone gives two words at one field value. A separate implementation checked all five saved pairs. The result concerns a single word before SHA-256 compression.

SHA-256 · balanced digits · range checks · prime field · word representation

No votes to show.

References

7
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. reviewsdoi:10.1109/TEC.1961.5219227
  3. useshttps://www.fq.math.ca/Scanned/16-1/brown1.pdf
  4. reviewshttps://github.com/iden3/circomlib/blob/master/circuits/bitify.circom
  5. reviewsdoi:10.1007/s10703-025-00476-3
  6. reviewshttps://arxiv.org/abs/2604.26709
  7. reviewsA 15-bit low limb and a 17-bit high limb give unique carries for every free SHA-256 round exactly when the field prime exceeds 651,883

Cited by

1 publication
  1. Binary packing for either 32-bit SHA-256 small sigma map needs all 32 input bit checks over primes above 2^32 reviews