miracl / MIRACL

MIRACL Cryptographic SDK: Multiprecision Integer and Rational Arithmetic Cryptographic Library is a C software library that is widely regarded by developers as the gold standard open source SDK for elliptic curve cryptography (ECC).
https://miracl.com
654 stars 242 forks source link

Error in function maxb in mrfpe.c #22

Open johandroz opened 8 years ago

johandroz commented 8 years ago

According to Table 1 in [1], when we use AES and the set cardinality s is 2, the function maxb should return 192. When I tested the function maxb implemented in mrfpe.c, I got 190.

[1] BPS: a Format-Preserving Encryption Proposal, Eric Brier, Thomas Peyrin and Jacques Stern, http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/bps/bps-spec.pdf