Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openpgp/src/crypto/biginteger.ts

OpenPGP implementation for JavaScript
Latest
import * as openpgp from "https://deno.land/x/openpgp@v6.0.0-beta.3.patch.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