2
0

openssl-prime.pod 1.2 KB

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