在Shell加密中将整数转换为多项式

时间:2019-03-05 12:56:13

标签: c++11

昨天,我试图建立shell刻印项目来测试可加和可乘同态。

链接github:https://github.com/google/shell-encryption.git

我有一个问题:如何将整数转换为多项式作为输入纯文本?

示例:我有两个纯文本:

plaintext1:整数:10

plaintext2:整数:20

据我了解:

第1步:将10转换为多项式_1

      Transform 20 to polynomial_2

第2步:将多项式_1加密为cyphertext_1

      encrypt polynomial_2 to cyphertext_2

第3步:计算:mul = cyphertext_1 * cyphertext_2

第4步:目标=解密(mul)

我希望目标= 10 * 20 = 200。

但是我不知道执行步骤1。   您能告诉我如何将输入整数转换为输入多项式吗?

谢谢

0 个答案:

没有答案