#include <NTL/ZZ.h>
#include <NTL/BasicThreadPool.h>
#include "FHE.h"
#include "timing.h"
#include "EncryptedArray.h"
#include <NTL/lzz_pXFactoring.h>
#include <iostream>
#include <cassert>
#include <cstdio>
#include "ArgMap.h"
#include "fhe_stats.h"
#include <vector>
using namespace helib;
using namespace NTL;
using namespace std;
int main(){
long R=1;//number of rounds [ default=1 ]
long p=29;//plaintext base,p决定了进行同态加密的数值可以有多大
long r=1;//lifting [ default=1 ]
long d=1;//degree of the field extension [ default=1 ]
// d == 0 => factors[0] defines extension
long c=2; //number of columns in the key-switching matrices [ default=2 ]
long k=80; //security parameter [ default=80 ]
long w=64;// Hamming weight of secret key
long L=6;//# of bits in the modulus chain [ default=heuristic ]
long m
HElib测试—多组数计算
最新推荐文章于 2024-05-09 10:05:55 发布