Correct Paillier code. Dissertation
This commit is contained in:
1 parent
d397cf352a
commit
bffc7a3a66
3 files changed
+80
-1
No files matched your search
@@ -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