Correct Paillier code. Dissertation

This commit is contained in:
jude
2023-02-12 22:45:51 +00:00
parent d397cf352a
commit bffc7a3a66
3 changed files with 80 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class PrivKey {
decrypt(c) {
return (
(((fastModularExponentiation(c, this.lambda, this.n ** 2n) - 1n) / this.n) *
(this.mu % this.n)) %
this.mu) %
this.n
);
}