2021-03-24 13:04:30 +00:00
|
|
|
/**
|
|
|
|
* Modular exponentiation b**e mod n. Currently using the right-to-left binary method
|
|
|
|
*
|
|
|
|
* @param b base
|
|
|
|
* @param e exponent
|
|
|
|
* @param n modulo
|
|
|
|
*
|
2022-09-12 08:59:51 +00:00
|
|
|
* @throws {@link RangeError} if n <= 0
|
2021-03-24 17:30:45 +00:00
|
|
|
*
|
|
|
|
* @returns b**e mod n
|
2021-03-24 13:04:30 +00:00
|
|
|
*/
|
2021-03-24 17:30:45 +00:00
|
|
|
export declare function modPow(b: number | bigint, e: number | bigint, n: number | bigint): bigint;
|
2021-03-24 13:04:30 +00:00
|
|
|
//# sourceMappingURL=modPow.d.ts.map
|