GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Math::Prime::Util::RandomPrimes(3) User Contributed Perl Documentation Math::Prime::Util::RandomPrimes(3)
 

Math::Prime::Util::RandomPrimes - Generate random primes

Version 0.73

Routines to generate random primes, including constructing proven primes.

Generate a random prime between "low" and "high". If given one argument, "low" will be 2.

Generate a random prime with "n" digits. "n" must be at least 1.

Generate a random prime with "n" bits. "n" must be at least 2.

Construct a random provable prime of "n" bits using Maurer's FastPrime algorithm. "n" must be at least 2.

Construct a random provable prime of "n" bits using Maurer's FastPrime algorithm. "n" must be at least 2. Returns a list of two items: the prime and the certificate.

Construct a random provable prime of "n" bits using Shawe-Taylor's algorithm. "n" must be at least 2. The implementation is from FIPS 186-4 and uses SHA-256 with 512 bits of randomness.

Construct a random provable prime of "n" bits using Shawe-Taylor's algorithm. "n" must be at least 2. Returns a list of two items: the prime and the certificate.

Construct a random strong prime of "n" bits. "n" must be at least 128.

Generate or construct a random provable prime of "n" bits. "n" must be at least 2.

Generate or construct a random provable prime of "n" bits. "n" must be at least 2. Returns a list of two items: the prime and the certificate.

Math::Prime::Util

Dana Jacobsen <dana@acm.org>

Copyright 2012-2013 by Dana Jacobsen <dana@acm.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2018-11-15 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.