This commit is contained in:
2023-04-18 14:51:49 +01:00
parent ea217af596
commit 8e149fad42
3 changed files with 11 additions and 8 deletions

View File

@ -288,7 +288,7 @@ export class PaillierPubKey {
for (let i = 0n; i < BigInt(KEY_SIZE); i++) {
this._h_cache.push(mod_exp(this.h, 2n ** i, this.n));
this._hn_cache.push(mod_exp(this.h, 2n ** i, this.n2));
this._hn_cache.push(mod_exp(this.hn, 2n ** i, this.n2));
}
}