]>
Commit | Line | Data |
---|---|---|
e75138ab | 1 | =pod |
5e98904c | 2 | {- OpenSSL::safe::output_do_not_edit_headers(); -} |
e75138ab RS |
3 | |
4 | =head1 NAME | |
5 | ||
b6b66573 | 6 | openssl-prime - compute prime numbers |
e75138ab RS |
7 | |
8 | =head1 SYNOPSIS | |
9 | ||
10 | B<openssl prime> | |
11 | [B<-help>] | |
12 | [B<-hex>] | |
13 | [B<-generate>] | |
e8769719 | 14 | [B<-bits> I<num>] |
e75138ab | 15 | [B<-safe>] |
6bd4e3f2 | 16 | {- $OpenSSL::safe::opt_provider_synopsis -} |
e8769719 | 17 | [B<-checks> I<num>] |
b1c0cc24 | 18 | [I<number> ...] |
e75138ab RS |
19 | |
20 | =head1 DESCRIPTION | |
21 | ||
35a810bb | 22 | This command checks if the specified numbers are prime. |
e75138ab RS |
23 | |
24 | If no numbers are given on the command line, the B<-generate> flag should | |
25 | be used to generate primes according to the requirements specified by the | |
26 | rest of the flags. | |
27 | ||
28 | =head1 OPTIONS | |
29 | ||
30 | =over 4 | |
31 | ||
e8769719 | 32 | =item B<-help> |
e75138ab RS |
33 | |
34 | Display an option summary. | |
35 | ||
e8769719 | 36 | =item B<-hex> |
e75138ab RS |
37 | |
38 | Generate hex output. | |
39 | ||
e8769719 | 40 | =item B<-generate> |
e75138ab RS |
41 | |
42 | Generate a prime number. | |
43 | ||
e8769719 | 44 | =item B<-bits> I<num> |
e75138ab | 45 | |
2f0ea936 | 46 | Generate a prime with I<num> bits. |
e75138ab | 47 | |
e8769719 | 48 | =item B<-safe> |
e75138ab RS |
49 | |
50 | When used with B<-generate>, generates a "safe" prime. If the number | |
2f0ea936 | 51 | generated is I<n>, then check that C<(I<n>-1)/2> is also prime. |
e75138ab | 52 | |
6bd4e3f2 P |
53 | {- $OpenSSL::safe::opt_provider_item -} |
54 | ||
e8769719 | 55 | =item B<-checks> I<num> |
e75138ab | 56 | |
42619397 | 57 | This parameter is ignored. |
e75138ab RS |
58 | |
59 | =back | |
60 | ||
61 | =head1 COPYRIGHT | |
62 | ||
33388b44 | 63 | Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved. |
e75138ab | 64 | |
449040b4 | 65 | Licensed under the Apache License 2.0 (the "License"). You may not use |
e75138ab RS |
66 | this file except in compliance with the License. You can obtain a copy |
67 | in the file LICENSE in the source distribution or at | |
68 | L<https://www.openssl.org/source/license.html>. | |
69 | ||
70 | =cut |