...
This commit is contained in:
@ -189,7 +189,7 @@
|
||||
function RSABench() {
|
||||
console.log("Warming up")
|
||||
|
||||
const ROUNDS = 250;
|
||||
const ROUNDS = 10000;
|
||||
|
||||
for (let i = 0n; i < 100n; i++) {
|
||||
window.rsa.pubKey.encrypt(i);
|
||||
@ -209,7 +209,7 @@
|
||||
function PaillierBench() {
|
||||
console.log("Warming up")
|
||||
|
||||
const ROUNDS = 250
|
||||
const ROUNDS = 500
|
||||
|
||||
for (let i = 0n; i < 100n; i++) {
|
||||
window.paillier.pubKey.encrypt(i);
|
||||
@ -230,7 +230,7 @@
|
||||
console.log("Warming up")
|
||||
|
||||
const cipherText = paillier.pubKey.encrypt(0n)
|
||||
const ROUNDS = 20;
|
||||
const ROUNDS = 50;
|
||||
|
||||
for (let i = 0; i < 5; i++) {
|
||||
cipherText.proveNI();
|
||||
@ -249,7 +249,7 @@
|
||||
|
||||
function ZeroProofVerifierBench() {
|
||||
console.log("Warming up")
|
||||
const ROUNDS = 20
|
||||
const ROUNDS = 50
|
||||
|
||||
const cipherText = paillier.pubKey.encrypt(1n)
|
||||
const readOnly = cipherText.asReadOnlyCiphertext();
|
||||
|
Reference in New Issue
Block a user