You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decryption(sk, c):
- For each $j=1$ to $s$, do the following:
- Compute $l_j = L_j(c^\lambda \bmod n^{j+1})$, where $L_j(z) = \frac{z-1}{n}\bmod n^j$
- Compute $i_j=l_j-\sum_{k=2}^j{i_{j-1}\choose k}n^{k-1} \bmod n^k$
In this process, the module n^k is not correct. It should be n^j.
Then in secret_key.cc, the sentence
For the problem in secret_key.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 sentence
seems 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
The text was updated successfully, but these errors were encountered: