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).
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.
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