This commit is contained in:
jude
2023-04-17 19:47:04 +01:00
parent c87f88b287
commit ea217af596
3 changed files with 17 additions and 14 deletions

View File

@ -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();