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

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

Functions

Get this value as an exact Number (max 53 bits) Fails if this value is too large

Get Uint8Array representation of this number

Compute bit length

Compute byte length

Compute greatest common divisor between this and n

Get value of i-th bit

Compute modular exponentiation using square and multiply

Compute the inverse of a modulo n Note: a and and n must be relatively prime