bigint-mod-arith/types/modPow.d.ts

14 lines
382 B
TypeScript
Raw Normal View History

/**
* Modular exponentiation b**e mod n. Currently using the right-to-left binary method
*
* @param b base
* @param e exponent
* @param n modulo
*
2021-03-24 17:30:45 +00:00
* @throws {RangeError}
* Excpeption thrown when n is not > 0
*
* @returns b**e mod n
*/
2021-03-24 17:30:45 +00:00
export declare function modPow(b: number | bigint, e: number | bigint, n: number | bigint): bigint;
//# sourceMappingURL=modPow.d.ts.map