openssl-prime.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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>openssl-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 - 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> <i>num</i>] [<b>-safe</b>] [<b>-provider</b> <i>name</i>] [<b>-provider-path</b> <i>path</i>] [<b>-propquery</b> <i>propq</i>] [<b>-checks</b> <i>num</i>] [<i>number</i> ...]</p>
  21. <h1 id="DESCRIPTION">DESCRIPTION</h1>
  22. <p>This 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</b> <i>num</i></dt>
  39. <dd>
  40. <p>Generate a prime with <i>num</i> 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 <i>n</i>, then check that <code>(<i>n</i>-1)/2</code> is also prime.</p>
  45. </dd>
  46. <dt id="provider-name"><b>-provider</b> <i>name</i></dt>
  47. <dd>
  48. </dd>
  49. <dt id="provider-path-path"><b>-provider-path</b> <i>path</i></dt>
  50. <dd>
  51. </dd>
  52. <dt id="propquery-propq"><b>-propquery</b> <i>propq</i></dt>
  53. <dd>
  54. <p>See <a href="../man1/openssl.html">&quot;Provider Options&quot; in openssl(1)</a>, <a href="../man7/provider.html">provider(7)</a>, and <a href="../man7/property.html">property(7)</a>.</p>
  55. </dd>
  56. <dt id="checks-num"><b>-checks</b> <i>num</i></dt>
  57. <dd>
  58. <p>This parameter is ignored.</p>
  59. </dd>
  60. </dl>
  61. <h1 id="COPYRIGHT">COPYRIGHT</h1>
  62. <p>Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.</p>
  63. <p>Licensed under the Apache License 2.0 (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>
  64. </body>
  65. </html>