Open maths644311798 opened 1 month ago
@zhangwfjh @xfap Could you please help with this issue? Thanks!
For the problem in secretkey.cc, I figure out the reason: the precomputed lut->precomp[j][i] has a factor $n^{i-1}$, so tmp.P
mod $n^{j-i+1}$ is enough.
Issue Type
Usability
HEU Version
newest
OS Platform and Distribution
Ubuntu 22.04
Python Version
3.10
Compiler Version
gcc 14.2
Current Behavior?
In heu/library/algorithms/dj/README.md,
In this process, the module
n^k
is not correct. It should ben^j
. Then in secret_key.cc, the sentenceseems wrong. The module
lut_->pq_pow[j - i + 1].P
is strange. I thinklut_->pq_pow[j].P
is a correct one.Standalone code to reproduce the issue
Relevant log output
No response