idk
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { mod_exp } from "./math.js";
|
||||
|
||||
export const KEY_SIZE = 512;
|
||||
export const KEY_SIZE = 1024;
|
||||
|
||||
export function cryptoRandom(bits) {
|
||||
if (bits === undefined) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { cryptoRandom } from "../crypto/random_primes.js";
|
||||
import { Region } from "./map.js";
|
||||
|
||||
const ROUNDS = 12;
|
||||
const ROUNDS = 24;
|
||||
|
||||
function cryptoRange(upper) {
|
||||
// This is ridiculous: why implement a BigInt primitive, have it behave like a number, and then _not_ offer
|
||||
@ -603,16 +603,10 @@ export function proveFortify(fortify) {
|
||||
}
|
||||
}
|
||||
|
||||
let rangeProofs = {};
|
||||
for (let r of regionNames) {
|
||||
rangeProofs[r] = proveBitLength(Region.getRegion(r).strength.cipherText);
|
||||
}
|
||||
|
||||
return {
|
||||
fortify: fortify,
|
||||
proofs: proofs,
|
||||
verifications: verifications,
|
||||
rangeProofs: rangeProofs,
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user