致所有同态加密专家:
我正在使用 PALISADE 库:
int plaintextModulus = 65537;
float sigma = 3.2;
SecurityLevel securityLevel = HEStd_128_classic;
uint32_t depth = 2;
//Instantiate the crypto context
CryptoContext<DCRTPoly> cc = CryptoContextFactory<DCRTPoly>::genCryptoContextBFVrns(
plaintextModulus, securityLevel, sigma, 0, depth, 0, OPTIMIZED);
Run Code Online (Sandbox Code Playgroud)
您能解释一下(所有)特别关注 ptm、深度和 sigma 的参数吗?
其次,我试图用上面的 cc 制作一个打包明文。
cc->MakePackedPlaintext(array);
Run Code Online (Sandbox Code Playgroud)
数组的最大尺寸是多少?在我的本地计算机(8GB RAM)上,当数组大于 ~8000 int64 时,我收到free(): invalid next size (normal)错误