prime.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>prime</title>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  7. <link rev="made" href="mailto:root@localhost" />
  8. </head>
  9. <body>
  10. <ul id="index">
  11. <li><a href="#NAME">NAME</a></li>
  12. <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
  13. <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
  14. <li><a href="#OPTIONS">OPTIONS</a></li>
  15. <li><a href="#COPYRIGHT">COPYRIGHT</a></li>
  16. </ul>
  17. <h1 id="NAME">NAME</h1>
  18. <p>openssl-prime, prime - compute prime numbers</p>
  19. <h1 id="SYNOPSIS">SYNOPSIS</h1>
  20. <p><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>]</p>
  21. <h1 id="DESCRIPTION">DESCRIPTION</h1>
  22. <p>The <b>prime</b> command checks if the specified numbers are prime.</p>
  23. <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.</p>
  24. <h1 id="OPTIONS">OPTIONS</h1>
  25. <dl>
  26. <dt id="help">[<b>-help</b>]</dt>
  27. <dd>
  28. <p>Display an option summary.</p>
  29. </dd>
  30. <dt id="hex">[<b>-hex</b>]</dt>
  31. <dd>
  32. <p>Generate hex output.</p>
  33. </dd>
  34. <dt id="generate">[<b>-generate</b>]</dt>
  35. <dd>
  36. <p>Generate a prime number.</p>
  37. </dd>
  38. <dt id="bits-num">[<b>-bits num</b>]</dt>
  39. <dd>
  40. <p>Generate a prime with <b>num</b> bits.</p>
  41. </dd>
  42. <dt id="safe">[<b>-safe</b>]</dt>
  43. <dd>
  44. <p>When used with <b>-generate</b>, generates a &quot;safe&quot; prime. If the number generated is <b>n</b>, then check that <b>(n-1)/2</b> is also prime.</p>
  45. </dd>
  46. <dt id="checks-num">[<b>-checks num</b>]</dt>
  47. <dd>
  48. <p>Perform the checks <b>num</b> times to see that the generated number is prime. The default is 20.</p>
  49. </dd>
  50. </dl>
  51. <h1 id="COPYRIGHT">COPYRIGHT</h1>
  52. <p>Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.</p>
  53. <p>Licensed under the OpenSSL license (the &quot;License&quot;). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p>
  54. </body>
  55. </html>