2
0

prime.pod 1.2 KB

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