Skip to content

OpenFHE for pke schemes does not work correctly when NATIVE_SIZE=64 and 128-bit integers are disabled #667

Open
@j2kun

Description

@j2kun

I have the following code pulled from the BGV tutorial:

CCParams<CryptoContextBGVRNS> parameters;
parameters.SetMultiplicativeDepth(2);
parameters.SetPlaintextModulus(65537);
CryptoContext<DCRTPoly> cryptoContext = GenCryptoContext(parameters);

This fails with the error

"external/openfhe/src/core/include/math/nbtheory-impl.h:332 
FirstPrime: Requested bit length 60 exceeds maximum allowed length 57"

My OpenFHE version is pinned to v1.1.2 (b2869ae) and I'm running with

MATHBACKEND=2

My config_core.h is

#define WITH_BE2
#define WITH_BE4
/* #undef WITH_NTL */
/* #undef WITH_TCM */

#define HAVE_INT64 TRUE
#define NATIVEINT 64
#define CKKS_M_FACTOR 1

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions