1

我正在尝试使用 SEAL 中的密钥实现 BFV 对称加密,如此所述。(我的目标是将初始消息大小减少 50%。)

但是,我无法生成噪声预算 > 0 的密文。从 切换encrypt_zero_asymmetric到后encrypt_zero_symmetric,新加密的密文的初始噪声预算为 0 位。

这是我迄今为止尝试过的:https ://github.com/codedust/SEAL/commit/4a59e6fe73cdbd27feb4503cdc1393b4d46f9700

为了创建噪声预算> 0位的密文,我是否缺少任何步骤?

我现在正在使用“1_bfv_basics.cpp”示例进行测试:

~~~~~~ A naive way to calculate 2(x^2+1)(x+1)^2. ~~~~~~
Line 201 --> Express x = 6 as a plaintext polynomial 0x6.
Line 210 --> Encrypt x_plain to x_encrypted.
    + size of freshly encrypted x: 2
    + noise budget in freshly encrypted x: 0 bits
4

0 回答 0