UNPKG

@stellot/crypto

Version:

Crypto libraries for front and backend

9 lines (8 loc) 446 B
/// <reference types="node" /> import { BigInteger as BigInt } from 'jsbn'; export declare const BIG_TWO: BigInt; export declare function getRandomNbitBigInt(bits: number): BigInt; export declare function getRandomBigInt(min: BigInt, max: BigInt): any; export declare function getBigPrime(bits: number): BigInt; export declare function parseBigInt(obj: BigInt | string | number): BigInt; export declare function toBuffer(bigInt: BigInt): Buffer;