Open AlexDanDuna opened 6 years ago
GenSecKey
firstFHEPubKey const& publicKey{secretKey};
I.. I .. I would've never guessed that was the problem. Thank you SO much! using GenSecKey actually solved the problem. I'll also use the reference advice!
@PhantomR You can think in this way
It makes a lot of sense now! Thak you! :)
I'm really not sure why, but this code gives me an NTL division by zero error upon attempting to encrypt a 1 :(. It appears to be because for some reason in the public key, the 'ptxtSpace' is zero and it reaches a point where a division by this value is done.. NOTE: I generated m, gens, ords, mvec using
parmams.cpp
.`#include
include
include <NTL/BasicThreadPool.h>
NTL_CLIENT
include "FHE.h"
include "EncryptedArray.h"
include "intraSlot.h"
include "binaryArith.h"
include "binaryCompare.h"
typedef unsigned long uLong;
using namespace std; using namespace NTL;
int main() { SetNumThreads(12);
}`