参考文献:
GitHub - microsoft/SEAL: Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library.[HS13] Halevi S, Shoup V. Design and implementation of a homomorphic-encryption library[J]. IBM Research (Manuscript), 2013, 6(12-15…
题目代码
from flag import flag
from Crypto.Util.number import *
import gmpy2
p getPrime(1024)
#这行生成一个大约1024位长度的随机素数,并将其赋给变量p。
q getPrime(1024)
#类似地,这行生成另一个大约1024位长度的随机素数,并将其…