105 lines
2.3 KiB
HTML
105 lines
2.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PRIME</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PRIME</H1>
|
|
Section: OpenSSL (1SSL)<BR>Updated: 2021-03-22<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
openssl-prime, prime - compute prime numbers
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
<B>openssl prime</B>
|
|
[<B>-help</B>]
|
|
[<B>-hex</B>]
|
|
[<B>-generate</B>]
|
|
[<B>-bits</B>]
|
|
[<B>-safe</B>]
|
|
[<B>-checks</B>]
|
|
[<I>number...</I>]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
The <B>prime</B> command checks if the specified numbers are prime.
|
|
<P>
|
|
|
|
If no numbers are given on the command line, the <B>-generate</B> flag should
|
|
be used to generate primes according to the requirements specified by the
|
|
rest of the flags.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">[<B>-help</B>]<DD>
|
|
|
|
|
|
Display an option summary.
|
|
<DT id="2">[<B>-hex</B>]<DD>
|
|
|
|
|
|
Generate hex output.
|
|
<DT id="3">[<B>-generate</B>]<DD>
|
|
|
|
|
|
Generate a prime number.
|
|
<DT id="4">[<B>-bits num</B>]<DD>
|
|
|
|
|
|
Generate a prime with <B>num</B> bits.
|
|
<DT id="5">[<B>-safe</B>]<DD>
|
|
|
|
|
|
When used with <B>-generate</B>, generates a ``safe'' prime. If the number
|
|
generated is <B>n</B>, then check that <B>(n-1)/2</B> is also prime.
|
|
<DT id="6">[<B>-checks num</B>]<DD>
|
|
|
|
|
|
Perform the checks <B>num</B> times to see that the generated number
|
|
is prime. The default is 20.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
|
|
<P>
|
|
|
|
Licensed under the OpenSSL license (the ``License''). You may not use
|
|
this file except in compliance with the License. You can obtain a copy
|
|
in the file <FONT SIZE="-1">LICENSE</FONT> in the source distribution or at
|
|
<<A HREF="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</A>>.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="9"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="10"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="11"><A HREF="#lbAF">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:25 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|