Correct Paillier code. Dissertation
This commit is contained in:
@ -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
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user