openssl-prime.pod.in 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. =pod
  2. {- OpenSSL::safe::output_do_not_edit_headers(); -}
  3. =head1 NAME
  4. openssl-prime - compute prime numbers
  5. =head1 SYNOPSIS
  6. B<openssl prime>
  7. [B<-help>]
  8. [B<-hex>]
  9. [B<-generate>]
  10. [B<-bits> I<num>]
  11. [B<-safe>]
  12. {- $OpenSSL::safe::opt_provider_synopsis -}
  13. [B<-checks> I<num>]
  14. [I<number> ...]
  15. =head1 DESCRIPTION
  16. This command checks if the specified numbers are prime.
  17. If no numbers are given on the command line, the B<-generate> flag should
  18. be used to generate primes according to the requirements specified by the
  19. rest of the flags.
  20. =head1 OPTIONS
  21. =over 4
  22. =item B<-help>
  23. Display an option summary.
  24. =item B<-hex>
  25. Generate hex output.
  26. =item B<-generate>
  27. Generate a prime number.
  28. =item B<-bits> I<num>
  29. Generate a prime with I<num> bits.
  30. =item B<-safe>
  31. When used with B<-generate>, generates a "safe" prime. If the number
  32. generated is I<n>, then check that C<(I<n>-1)/2> is also prime.
  33. {- $OpenSSL::safe::opt_provider_item -}
  34. =item B<-checks> I<num>
  35. This parameter is ignored.
  36. =back
  37. =head1 COPYRIGHT
  38. Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.
  39. Licensed under the Apache License 2.0 (the "License"). You may not use
  40. this file except in compliance with the License. You can obtain a copy
  41. in the file LICENSE in the source distribution or at
  42. L<https://www.openssl.org/source/license.html>.
  43. =cut