Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openpgp/src/crypto/biginteger.ts>modExp

OpenPGP implementation for JavaScript
Go to Latest
function modExp
import { modExp } from "https://deno.land/x/openpgp@v6.0.0-beta.1/src/crypto/biginteger.ts";

Compute modular exponentiation using square and multiply

Parameters

b: bigint
  • Base
e: bigint
  • Exponent
n: bigint
  • Modulo