bigint-crypto-utils
Advanced tools
Comparing version 3.0.20 to 3.0.21
@@ -1,4 +0,240 @@ | ||
import { bitLength, eGcd, modInv, modPow, toZn } from 'bigint-mod-arith'; | ||
export { abs, bitLength, eGcd, gcd, lcm, max, min, modInv, modPow, toZn } from 'bigint-mod-arith'; | ||
/** | ||
* Absolute value. abs(a)==a if a>=0. abs(a)==-a if a<0 | ||
* | ||
* @param a | ||
* | ||
* @returns The absolute value of a | ||
*/ | ||
function abs(a) { | ||
return (a >= 0) ? a : -a; | ||
} | ||
/** | ||
* Returns the bitlength of a number | ||
* | ||
* @param a | ||
* @returns The bit length | ||
*/ | ||
function bitLength(a) { | ||
if (typeof a === 'number') | ||
a = BigInt(a); | ||
if (a === 1n) { | ||
return 1; | ||
} | ||
let bits = 1; | ||
do { | ||
bits++; | ||
} while ((a >>= 1n) > 1n); | ||
return bits; | ||
} | ||
/** | ||
* An iterative implementation of the extended euclidean algorithm or extended greatest common divisor algorithm. | ||
* Take positive integers a, b as input, and return a triple (g, x, y), such that ax + by = g = gcd(a, b). | ||
* | ||
* @param a | ||
* @param b | ||
* | ||
* @throws {RangeError} | ||
* This excepction is thrown if a or b are less than 0 | ||
* | ||
* @returns A triple (g, x, y), such that ax + by = g = gcd(a, b). | ||
*/ | ||
function eGcd(a, b) { | ||
if (typeof a === 'number') | ||
a = BigInt(a); | ||
if (typeof b === 'number') | ||
b = BigInt(b); | ||
if (a <= 0n || b <= 0n) | ||
throw new RangeError('a and b MUST be > 0'); // a and b MUST be positive | ||
let x = 0n; | ||
let y = 1n; | ||
let u = 1n; | ||
let v = 0n; | ||
while (a !== 0n) { | ||
const q = b / a; | ||
const r = b % a; | ||
const m = x - (u * q); | ||
const n = y - (v * q); | ||
b = a; | ||
a = r; | ||
x = u; | ||
y = v; | ||
u = m; | ||
v = n; | ||
} | ||
return { | ||
g: b, | ||
x: x, | ||
y: y | ||
}; | ||
} | ||
/** | ||
* Greatest-common divisor of two integers based on the iterative binary algorithm. | ||
* | ||
* @param a | ||
* @param b | ||
* | ||
* @returns The greatest common divisor of a and b | ||
*/ | ||
function gcd(a, b) { | ||
let aAbs = (typeof a === 'number') ? BigInt(abs(a)) : abs(a); | ||
let bAbs = (typeof b === 'number') ? BigInt(abs(b)) : abs(b); | ||
if (aAbs === 0n) { | ||
return bAbs; | ||
} | ||
else if (bAbs === 0n) { | ||
return aAbs; | ||
} | ||
let shift = 0n; | ||
while (((aAbs | bAbs) & 1n) === 0n) { | ||
aAbs >>= 1n; | ||
bAbs >>= 1n; | ||
shift++; | ||
} | ||
while ((aAbs & 1n) === 0n) | ||
aAbs >>= 1n; | ||
do { | ||
while ((bAbs & 1n) === 0n) | ||
bAbs >>= 1n; | ||
if (aAbs > bAbs) { | ||
const x = aAbs; | ||
aAbs = bAbs; | ||
bAbs = x; | ||
} | ||
bAbs -= aAbs; | ||
} while (bAbs !== 0n); | ||
// rescale | ||
return aAbs << shift; | ||
} | ||
/** | ||
* The least common multiple computed as abs(a*b)/gcd(a,b) | ||
* @param a | ||
* @param b | ||
* | ||
* @returns The least common multiple of a and b | ||
*/ | ||
function lcm(a, b) { | ||
if (typeof a === 'number') | ||
a = BigInt(a); | ||
if (typeof b === 'number') | ||
b = BigInt(b); | ||
if (a === 0n && b === 0n) | ||
return BigInt(0); | ||
return abs(a * b) / gcd(a, b); | ||
} | ||
/** | ||
* Maximum. max(a,b)==a if a>=b. max(a,b)==b if a<=b | ||
* | ||
* @param a | ||
* @param b | ||
* | ||
* @returns Maximum of numbers a and b | ||
*/ | ||
function max(a, b) { | ||
return (a >= b) ? a : b; | ||
} | ||
/** | ||
* Minimum. min(a,b)==b if a>=b. min(a,b)==a if a<=b | ||
* | ||
* @param a | ||
* @param b | ||
* | ||
* @returns Minimum of numbers a and b | ||
*/ | ||
function min(a, b) { | ||
return (a >= b) ? b : a; | ||
} | ||
/** | ||
* Finds the smallest positive element that is congruent to a in modulo n | ||
* | ||
* @remarks | ||
* a and b must be the same type, either number or bigint | ||
* | ||
* @param a - An integer | ||
* @param n - The modulo | ||
* | ||
* @throws {RangeError} | ||
* Excpeption thrown when n is not > 0 | ||
* | ||
* @returns A bigint with the smallest positive representation of a modulo n | ||
*/ | ||
function toZn(a, n) { | ||
if (typeof a === 'number') | ||
a = BigInt(a); | ||
if (typeof n === 'number') | ||
n = BigInt(n); | ||
if (n <= 0n) { | ||
throw new RangeError('n must be > 0'); | ||
} | ||
const aZn = a % n; | ||
return (aZn < 0n) ? aZn + n : aZn; | ||
} | ||
/** | ||
* Modular inverse. | ||
* | ||
* @param a The number to find an inverse for | ||
* @param n The modulo | ||
* | ||
* @throws {RangeError} | ||
* Excpeption thorwn when a does not have inverse modulo n | ||
* | ||
* @returns The inverse modulo n | ||
*/ | ||
function modInv(a, n) { | ||
const egcd = eGcd(toZn(a, n), n); | ||
if (egcd.g !== 1n) { | ||
throw new RangeError(`${a.toString()} does not have inverse modulo ${n.toString()}`); // modular inverse does not exist | ||
} | ||
else { | ||
return toZn(egcd.x, n); | ||
} | ||
} | ||
/** | ||
* Modular exponentiation b**e mod n. Currently using the right-to-left binary method | ||
* | ||
* @param b base | ||
* @param e exponent | ||
* @param n modulo | ||
* | ||
* @throws {RangeError} | ||
* Excpeption thrown when n is not > 0 | ||
* | ||
* @returns b**e mod n | ||
*/ | ||
function modPow(b, e, n) { | ||
if (typeof b === 'number') | ||
b = BigInt(b); | ||
if (typeof e === 'number') | ||
e = BigInt(e); | ||
if (typeof n === 'number') | ||
n = BigInt(n); | ||
if (n <= 0n) { | ||
throw new RangeError('n must be > 0'); | ||
} | ||
else if (n === 1n) { | ||
return 0n; | ||
} | ||
b = toZn(b, n); | ||
if (e < 0n) { | ||
return modInv(modPow(b, abs(e), n), n); | ||
} | ||
let r = 1n; | ||
while (e > 0) { | ||
if ((e % 2n) === 1n) { | ||
r = r * b % n; | ||
} | ||
e = e / 2n; | ||
b = b ** 2n % n; | ||
} | ||
return r; | ||
} | ||
function fromBuffer(buf) { | ||
@@ -615,3 +851,3 @@ let ret = 0n; | ||
export { isProbablyPrime, prime, primeSync, randBetween, randBits, randBitsSync, randBytes, randBytesSync }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguYnJvd3Nlci5qcyIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3RzL2Zyb21CdWZmZXIudHMiLCIuLi8uLi9zcmMvdHMvcmFuZEJ5dGVzLnRzIiwiLi4vLi4vc3JjL3RzL3JhbmRCaXRzLnRzIiwiLi4vLi4vc3JjL3RzL3JhbmRCZXR3ZWVuLnRzIiwiLi4vLi4vc3JjL3RzL3dvcmtlclV0aWxzLnRzIiwiLi4vLi4vc3JjL3RzL2lzUHJvYmFibHlQcmltZS50cyIsIi4uLy4uL3NyYy90cy9wcmltZS50cyJdLCJzb3VyY2VzQ29udGVudCI6bnVsbCwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O1NBQWdCLFVBQVUsQ0FBRSxHQUFzQjtJQUNoRCxJQUFJLEdBQUcsR0FBRyxFQUFFLENBQUE7SUFDWixLQUFLLE1BQU0sQ0FBQyxJQUFJLEdBQUcsQ0FBQyxNQUFNLEVBQUUsRUFBRTtRQUM1QixNQUFNLEVBQUUsR0FBRyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUE7UUFDcEIsR0FBRyxHQUFHLENBQUMsR0FBRyxJQUFJLEVBQUUsSUFBSSxFQUFFLENBQUE7S0FDdkI7SUFDRCxPQUFPLEdBQUcsQ0FBQTtBQUNaOztBQ1BBOzs7Ozs7Ozs7OztTQVdnQixTQUFTLENBQUUsVUFBa0IsRUFBRSxXQUFXLEdBQUcsS0FBSztJQUNoRSxJQUFJLFVBQVUsR0FBRyxDQUFDO1FBQUUsTUFBTSxJQUFJLFVBQVUsQ0FBQyx3QkFBd0IsQ0FBQyxDQUFBO0lBRWxFLE9BQU8sSUFBSSxPQUFPLENBQUMsVUFBVSxPQUFPLEVBQUUsTUFBTTtRQVVuQztZQUN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yxDQUFBO2dCQUMzQixVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUMsV0FBVyxDQUFDO29CQUN4QixHQUFHLEVBQUUsR0FBRztvQkFDUixVQUFVLEVBQUUsVUFBVTtvQkFDdEIsRUFBRSxFQUFFLENBQUM7aUJBQ04sQ0FBQyxDQUFBO2FBQ0gsQ0FBQyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQTtTQUNqQjtLQUNGLENBQUMsQ0FBQTtBQUNKLENBQUM7QUFFRDs7Ozs7Ozs7Ozs7O1NBWWdCLFNBQVMsQ0FBRSxTQUFpQixFQUFFLGFBQXFCLEVBQUU7SUFDbkUsSUFBSSxTQUFTLEdBQUcsQ0FBQztRQUFFLE1BQU0sSUFBSSxVQUFVLENBQUMsdUJBQXVCLENBQUMsQ0FBQTtJQUNoRSxJQUFJLEdBQUcsR0FBRyxFQUFFLENBQUE7SUFDWixHQUFHO1FBQ0QsR0FBRyxHQUFHLFVBQVUsQ0FBQyxZQUFZLENBQUMsU0FBUyxFQUFFLElBQUksQ0FBQyxDQUFDLENBQUE7S0FDaEQsUUFBUSxDQUFDLGdCQUFnQixDQUFDLEdBQUcsRUFBRSxVQUFVLENBQUMsRUFBQztJQUM1QyxPQUFPLEdBQUcsQ0FBQTtBQUNaOzs7OyJ9 | ||
export { abs, bitLength, eGcd, gcd, isProbablyPrime, lcm, max, min, modInv, modPow, prime, primeSync, randBetween, randBits, randBitsSync, randBytes, randBytesSync, toZn }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguYnJvd3Nlci5qcyIsInNvdXJjZXMiOlsiLi4vLi4vbm9kZV9tb2R1bGVzL2JpZ2ludC1tb2QtYXJpdGgvZGlzdC9lc20vaW5kZXguYnJvd3Nlci5qcyIsIi4uLy4uL3NyYy90cy9mcm9tQnVmZmVyLnRzIiwiLi4vLi4vc3JjL3RzL3JhbmRCeXRlcy50cyIsIi4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lnQixTQUFTLENBQUUsU0FBaUIsRUFBRSxhQUFxQixFQUFFO0lBQ25FLElBQUksU0FBUyxHQUFHLENBQUM7UUFBRSxNQUFNLElBQUksVUFBVSxDQUFDLHVCQUF1QixDQUFDLENBQUE7SUFDaEUsSUFBSSxHQUFHLEdBQUcsRUFBRSxDQUFBO0lBQ1osR0FBRztRQUNELEdBQUcsR0FBRyxVQUFVLENBQUMsWUFBWSxDQUFDLFNBQVMsRUFBRSxJQUFJLENBQUMsQ0FBQyxDQUFBO0tBQ2hELFFBQVEsQ0FBQyxnQkFBZ0IsQ0FBQyxHQUFHLEVBQUUsVUFBVSxDQUFDLEVBQUM7SUFDNUMsT0FBTyxHQUFHLENBQUE7QUFDWjs7OzsifQ== |
@@ -1,4 +0,255 @@ | ||
import { bitLength, modPow } from 'bigint-mod-arith'; | ||
export { abs, bitLength, eGcd, gcd, lcm, max, min, modInv, modPow, toZn } from 'bigint-mod-arith'; | ||
var index_node = {}; | ||
Object.defineProperty(index_node, '__esModule', { value: true }); | ||
/** | ||
* Absolute value. abs(a)==a if a>=0. abs(a)==-a if a<0 | ||
* | ||
* @param a | ||
* | ||
* @returns The absolute value of a | ||
*/ | ||
function abs(a) { | ||
return (a >= 0) ? a : -a; | ||
} | ||
/** | ||
* Returns the bitlength of a number | ||
* | ||
* @param a | ||
* @returns The bit length | ||
*/ | ||
function bitLength(a) { | ||
if (typeof a === 'number') | ||
a = BigInt(a); | ||
if (a === 1n) { | ||
return 1; | ||
} | ||
let bits = 1; | ||
do { | ||
bits++; | ||
} while ((a >>= 1n) > 1n); | ||
return bits; | ||
} | ||
/** | ||
* An iterative implementation of the extended euclidean algorithm or extended greatest common divisor algorithm. | ||
* Take positive integers a, b as input, and return a triple (g, x, y), such that ax + by = g = gcd(a, b). | ||
* | ||
* @param a | ||
* @param b | ||
* | ||
* @throws {RangeError} | ||
* This excepction is thrown if a or b are less than 0 | ||
* | ||
* @returns A triple (g, x, y), such that ax + by = g = gcd(a, b). | ||
*/ | ||
function eGcd(a, b) { | ||
if (typeof a === 'number') | ||
a = BigInt(a); | ||
if (typeof b === 'number') | ||
b = BigInt(b); | ||
if (a <= 0n || b <= 0n) | ||
throw new RangeError('a and b MUST be > 0'); // a and b MUST be positive | ||
let x = 0n; | ||
let y = 1n; | ||
let u = 1n; | ||
let v = 0n; | ||
while (a !== 0n) { | ||
const q = b / a; | ||
const r = b % a; | ||
const m = x - (u * q); | ||
const n = y - (v * q); | ||
b = a; | ||
a = r; | ||
x = u; | ||
y = v; | ||
u = m; | ||
v = n; | ||
} | ||
return { | ||
g: b, | ||
x: x, | ||
y: y | ||
}; | ||
} | ||
/** | ||
* Greatest-common divisor of two integers based on the iterative binary algorithm. | ||
* | ||
* @param a | ||
* @param b | ||
* | ||
* @returns The greatest common divisor of a and b | ||
*/ | ||
function gcd(a, b) { | ||
let aAbs = (typeof a === 'number') ? BigInt(abs(a)) : abs(a); | ||
let bAbs = (typeof b === 'number') ? BigInt(abs(b)) : abs(b); | ||
if (aAbs === 0n) { | ||
return bAbs; | ||
} | ||
else if (bAbs === 0n) { | ||
return aAbs; | ||
} | ||
let shift = 0n; | ||
while (((aAbs | bAbs) & 1n) === 0n) { | ||
aAbs >>= 1n; | ||
bAbs >>= 1n; | ||
shift++; | ||
} | ||
while ((aAbs & 1n) === 0n) | ||
aAbs >>= 1n; | ||
do { | ||
while ((bAbs & 1n) === 0n) | ||
bAbs >>= 1n; | ||
if (aAbs > bAbs) { | ||
const x = aAbs; | ||
aAbs = bAbs; | ||
bAbs = x; | ||
} | ||
bAbs -= aAbs; | ||
} while (bAbs !== 0n); | ||
// rescale | ||
return aAbs << shift; | ||
} | ||
/** | ||
* The least common multiple computed as abs(a*b)/gcd(a,b) | ||
* @param a | ||
* @param b | ||
* | ||
* @returns The least common multiple of a and b | ||
*/ | ||
function lcm(a, b) { | ||
if (typeof a === 'number') | ||
a = BigInt(a); | ||
if (typeof b === 'number') | ||
b = BigInt(b); | ||
if (a === 0n && b === 0n) | ||
return BigInt(0); | ||
return abs(a * b) / gcd(a, b); | ||
} | ||
/** | ||
* Maximum. max(a,b)==a if a>=b. max(a,b)==b if a<=b | ||
* | ||
* @param a | ||
* @param b | ||
* | ||
* @returns Maximum of numbers a and b | ||
*/ | ||
function max(a, b) { | ||
return (a >= b) ? a : b; | ||
} | ||
/** | ||
* Minimum. min(a,b)==b if a>=b. min(a,b)==a if a<=b | ||
* | ||
* @param a | ||
* @param b | ||
* | ||
* @returns Minimum of numbers a and b | ||
*/ | ||
function min(a, b) { | ||
return (a >= b) ? b : a; | ||
} | ||
/** | ||
* Finds the smallest positive element that is congruent to a in modulo n | ||
* | ||
* @remarks | ||
* a and b must be the same type, either number or bigint | ||
* | ||
* @param a - An integer | ||
* @param n - The modulo | ||
* | ||
* @throws {RangeError} | ||
* Excpeption thrown when n is not > 0 | ||
* | ||
* @returns A bigint with the smallest positive representation of a modulo n | ||
*/ | ||
function toZn(a, n) { | ||
if (typeof a === 'number') | ||
a = BigInt(a); | ||
if (typeof n === 'number') | ||
n = BigInt(n); | ||
if (n <= 0n) { | ||
throw new RangeError('n must be > 0'); | ||
} | ||
const aZn = a % n; | ||
return (aZn < 0n) ? aZn + n : aZn; | ||
} | ||
/** | ||
* Modular inverse. | ||
* | ||
* @param a The number to find an inverse for | ||
* @param n The modulo | ||
* | ||
* @throws {RangeError} | ||
* Excpeption thorwn when a does not have inverse modulo n | ||
* | ||
* @returns The inverse modulo n | ||
*/ | ||
function modInv(a, n) { | ||
const egcd = eGcd(toZn(a, n), n); | ||
if (egcd.g !== 1n) { | ||
throw new RangeError(`${a.toString()} does not have inverse modulo ${n.toString()}`); // modular inverse does not exist | ||
} | ||
else { | ||
return toZn(egcd.x, n); | ||
} | ||
} | ||
/** | ||
* Modular exponentiation b**e mod n. Currently using the right-to-left binary method | ||
* | ||
* @param b base | ||
* @param e exponent | ||
* @param n modulo | ||
* | ||
* @throws {RangeError} | ||
* Excpeption thrown when n is not > 0 | ||
* | ||
* @returns b**e mod n | ||
*/ | ||
function modPow(b, e, n) { | ||
if (typeof b === 'number') | ||
b = BigInt(b); | ||
if (typeof e === 'number') | ||
e = BigInt(e); | ||
if (typeof n === 'number') | ||
n = BigInt(n); | ||
if (n <= 0n) { | ||
throw new RangeError('n must be > 0'); | ||
} | ||
else if (n === 1n) { | ||
return 0n; | ||
} | ||
b = toZn(b, n); | ||
if (e < 0n) { | ||
return modInv(modPow(b, abs(e), n), n); | ||
} | ||
let r = 1n; | ||
while (e > 0) { | ||
if ((e % 2n) === 1n) { | ||
r = r * b % n; | ||
} | ||
e = e / 2n; | ||
b = b ** 2n % n; | ||
} | ||
return r; | ||
} | ||
var abs_1 = index_node.abs = abs; | ||
var bitLength_1 = index_node.bitLength = bitLength; | ||
var eGcd_1 = index_node.eGcd = eGcd; | ||
var gcd_1 = index_node.gcd = gcd; | ||
var lcm_1 = index_node.lcm = lcm; | ||
var max_1 = index_node.max = max; | ||
var min_1 = index_node.min = min; | ||
var modInv_1 = index_node.modInv = modInv; | ||
var modPow_1 = index_node.modPow = modPow; | ||
var toZn_1 = index_node.toZn = toZn; | ||
function fromBuffer(buf) { | ||
@@ -139,3 +390,3 @@ let ret = 0n; | ||
const interval = max - min; | ||
const bitLen = bitLength(interval); | ||
const bitLen = bitLength_1(interval); | ||
let rnd; | ||
@@ -510,3 +761,3 @@ do { | ||
const b = randBetween(d, 2n); | ||
let z = modPow(b, m, w); | ||
let z = modPow_1(b, m, w); | ||
if (z === 1n || z === d) | ||
@@ -516,3 +767,3 @@ continue; | ||
while (j < a) { | ||
z = modPow(z, 2n, w); | ||
z = modPow_1(z, 2n, w); | ||
if (z === d) | ||
@@ -644,3 +895,3 @@ break; | ||
export { isProbablyPrime, prime, primeSync, randBetween, randBits, randBitsSync, randBytes, randBytesSync }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgubm9kZS5qcyIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3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2dCQUMzQixVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUMsV0FBVyxDQUFDO29CQUN4QixHQUFHLEVBQUUsR0FBRztvQkFDUixVQUFVLEVBQUUsVUFBVTtvQkFDdEIsRUFBRSxFQUFFLENBQUM7aUJBQ04sQ0FBQyxDQUFBO2FBQ0gsQ0FBQyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQTtTQUNqQjtLQUNGLENBQUMsQ0FBQTtBQUNKLENBQUM7QUFFRDs7Ozs7Ozs7Ozs7O1NBWWdCLFNBQVMsQ0FBRSxTQUFpQixFQUFFLGFBQXFCLEVBQUU7SUFDbkUsSUFBSSxTQUFTLEdBQUcsQ0FBQztRQUFFLE1BQU0sSUFBSSxVQUFVLENBQUMsdUJBQXVCLENBQUMsQ0FBQTtJQUNoRSxJQUFJLEdBQUcsR0FBRyxFQUFFLENBQUE7SUFDWixHQUFHO1FBQ0QsR0FBRyxHQUFHLFVBQVUsQ0FBQyxZQUFZLENBQUMsU0FBUyxFQUFFLElBQUksQ0FBQyxDQUFDLENBQUE7S0FDaEQsUUFBUSxDQUFDLGdCQUFnQixDQUFDLEdBQUcsRUFBRSxVQUFVLENBQUMsRUFBQztJQUM1QyxPQUFPLEdBQUcsQ0FBQTtBQUNaOzs7OyJ9 | ||
export { abs_1 as abs, bitLength_1 as bitLength, eGcd_1 as eGcd, gcd_1 as gcd, isProbablyPrime, lcm_1 as lcm, max_1 as max, min_1 as min, modInv_1 as modInv, modPow_1 as modPow, prime, primeSync, randBetween, randBits, randBitsSync, randBytes, randBytesSync, toZn_1 as toZn }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgubm9kZS5qcyIsInNvdXJjZXMiOlsiLi4vLi4vbm9kZV9tb2R1bGVzL2JpZ2ludC1tb2QtYXJpdGgvZGlzdC9janMvaW5kZXgubm9kZS5janMiLCIuLi8uLi9zcmMvdHMvZnJvbUJ1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o7Ozs7In0= |
@@ -1,2 +0,2 @@ | ||
# bigint-crypto-utils - v3.0.20 | ||
# bigint-crypto-utils - v3.0.21 | ||
@@ -156,3 +156,3 @@ ## Table of contents | ||
[src/ts/isProbablyPrime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/e0e6c88/src/ts/isProbablyPrime.ts#L21) | ||
[src/ts/isProbablyPrime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/e9b6b94/src/ts/isProbablyPrime.ts#L21) | ||
@@ -321,3 +321,3 @@ ___ | ||
[src/ts/prime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/e0e6c88/src/ts/prime.ts#L21) | ||
[src/ts/prime.ts:21](https://github.com/juanelas/bigint-crypto-utils/blob/e9b6b94/src/ts/prime.ts#L21) | ||
@@ -351,3 +351,3 @@ ___ | ||
[src/ts/prime.ts:100](https://github.com/juanelas/bigint-crypto-utils/blob/e0e6c88/src/ts/prime.ts#L100) | ||
[src/ts/prime.ts:100](https://github.com/juanelas/bigint-crypto-utils/blob/e9b6b94/src/ts/prime.ts#L100) | ||
@@ -380,3 +380,3 @@ ___ | ||
[src/ts/randBetween.ts:15](https://github.com/juanelas/bigint-crypto-utils/blob/e0e6c88/src/ts/randBetween.ts#L15) | ||
[src/ts/randBetween.ts:15](https://github.com/juanelas/bigint-crypto-utils/blob/e9b6b94/src/ts/randBetween.ts#L15) | ||
@@ -409,3 +409,3 @@ ___ | ||
[src/ts/randBits.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/e0e6c88/src/ts/randBits.ts#L14) | ||
[src/ts/randBits.ts:14](https://github.com/juanelas/bigint-crypto-utils/blob/e9b6b94/src/ts/randBits.ts#L14) | ||
@@ -438,3 +438,3 @@ ___ | ||
[src/ts/randBits.ts:45](https://github.com/juanelas/bigint-crypto-utils/blob/e0e6c88/src/ts/randBits.ts#L45) | ||
[src/ts/randBits.ts:45](https://github.com/juanelas/bigint-crypto-utils/blob/e9b6b94/src/ts/randBits.ts#L45) | ||
@@ -467,3 +467,3 @@ ___ | ||
[src/ts/randBytes.ts:12](https://github.com/juanelas/bigint-crypto-utils/blob/e0e6c88/src/ts/randBytes.ts#L12) | ||
[src/ts/randBytes.ts:12](https://github.com/juanelas/bigint-crypto-utils/blob/e9b6b94/src/ts/randBytes.ts#L12) | ||
@@ -496,3 +496,3 @@ ___ | ||
[src/ts/randBytes.ts:46](https://github.com/juanelas/bigint-crypto-utils/blob/e0e6c88/src/ts/randBytes.ts#L46) | ||
[src/ts/randBytes.ts:46](https://github.com/juanelas/bigint-crypto-utils/blob/e9b6b94/src/ts/randBytes.ts#L46) | ||
@@ -499,0 +499,0 @@ ___ |
{ | ||
"name": "bigint-crypto-utils", | ||
"version": "3.0.20", | ||
"version": "3.0.21", | ||
"description": "Arbitrary precision modular arithmetic, cryptographically secure random numbers and strong probable prime generation/testing. It works in modern browsers, Angular, React, Node.js, etc. since it uses the native JS implementation of BigInt", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
261061
4758
0