Go to Latest
function generatePrime
import { generatePrime } from "https://dotland.deno.dev/std@0.177.0/node/internal/crypto/random.ts";

Parameters

size: number
callback: (err: Error | null, prime: ArrayBuffer) => void

Parameters

size: number
callback: (err: Error | null, prime: bigint) => void

Parameters

size: number
callback: (err: Error | null, prime: ArrayBuffer) => void

Parameters

size: number
callback: (err: Error | null, prime: ArrayBuffer | bigint) => void