问题标签 [palisade]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
102 浏览

android - 交叉编译 PALSIADE for android

我们正在尝试为 Android构建 PALISADE ( https://git.njit.edu/palisade/PALISADE )。通过为 Android 成功构建“gmp”和“ntl”,我们取得了一些进展。

GMP 能够开箱即用地交叉编译。NTL 有点棘手。我们使用了https://github.com/nemirst/ntl-android但将标头和 src 更改为 PALISADE (10.5.0) 中提供的版本

我们还对 PALISADE makefile 进行了一些更改,因此它们支持使用 android 独立工具链进行交叉编译。现在的问题是,当尝试使用交叉编译的 NTL 和 GMP lib 编译 PALISADE 时,我们会收到以下错误:

我们将非常感谢任何帮助让这个库为 Android 构建。

编辑:拼写

0 投票
3 回答
553 浏览

cryptography - 使用 Palisade 库的同态加密

致所有同态加密专家:

我正在使用 PALISADE 库:

您能否解释一下(所有)参数,尤其是对 ptm、深度和 sigma 感兴趣的参数。

其次,我试图用上面的 cc 制作一个打包的明文。

数组的最大大小是多少?因为在我的本地机器上,当数组大于 ~ 8000 int64 时,我会遇到一些奇怪的错误,例如free(): invalid next size (normal)

0 投票
1 回答
601 浏览

matrix - 同态加密:使用 PALISADE 库的矩阵向量乘法

致所有他的专家:

我想用非常大的矩阵(600000 x 55)实现矩阵向量乘法。目前,我能够以少量输入执行加法、乘法、内积等运算。当我尝试将这些操作应用于较大的输入时,我会遇到错误,Invalid next size (normal)或者我的主内存用完了,直到操作系统终止进程(退出代码 9)。

您是否有任何建议/示例如何归档实现矩阵向量乘法或类似方法的有效方法?(使用 BFV 和 CKKS)。

PS:我正在使用 PALISADE 库,但如果您有更好的建议,例如 SEAL 或 Helib,我也很乐意使用它们。

0 投票
1 回答
168 浏览

c++ - Palisade development library can't compile example code

OS: Linux

I have been trying to run this example code from the Palisade FHE library for days. After successfully compiling the library itself, I tried to make a makefile for one of its example programs and get this very long error about a missing namespace. I am a begginer at C++, and cannot decipher this error message. For anyone who is specifically familiar with this library, g++ cannot find lbcrypto. I searched my entire system and did not find a file with this name. I don't know where the namespace is located or how to include it in my makefile. Here is the makefile and the error when I run make.

Makefile

Error

The sample code I tried to compile

Some errors were ommited for brevity.

0 投票
1 回答
113 浏览

c++ - VSCode 找不到包,但 CLion 可以(CMake)

我想知道在 VSCode 中使用cmakeand ( compile_commandsand ) 有什么区别?compile_flags我遇到了一个问题,即使我的 CMake 设置正确(在 Clion 上构建得很好),我在尝试在 VSCode 中使用完全相同的代码时遇到了问题。

我有下面的违规行

#include "palisade.h"

palisade安装在哪里"/usr/local/include/palisade",我的 CMake 明确查找并找到它

find_package(Palisade)


我也生成了文件compile_commands.json

通过cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1

但我仍然遇到找不到图书馆的问题

0 投票
1 回答
50 浏览

fhe - Palisade:明文和密文之间的 EvalMult 导致塔大小不匹配

我希望有人能帮助我理解我在使用 Palisades 时遇到的错误。我只想使用 BGV 密文的前 329 个插槽,其余部分归零(在某些时候包含一些“垃圾”,我不想在旋转时重新输入前 329 个插槽)。所以我创建了一个名为掩码的明文,我在前 329 个插槽中填充了 1,然后在密文上相乘以将这些插槽之外的所有内容归零。生成错误的完整代码在这里:

这会导致错误

塔架尺寸不匹配;无法添加

如果屏蔽被注释掉,一切正常,除了 c1 将包含我想要删除的垃圾。我应该如何正确地进行掩蔽?

0 投票
0 回答
10 浏览

palisade - 有没有在 PALISADE 中使用 CKKS 进行机器学习的资源?

如标题所示。

我对 CKKS 或一般的 FHE 不太熟悉,但我很想在 PALISADE 的背景下了解更多有关它的信息。是否有这样做的“现实世界”脚本?我对一些简单数据集的逻辑回归特别感兴趣