2017-08-14 21:32:07 +08:00
|
|
|
=pod
|
2020-02-27 05:45:31 +08:00
|
|
|
{- OpenSSL::safe::output_do_not_edit_headers(); -}
|
2017-08-14 21:32:07 +08:00
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2019-08-22 07:04:41 +08:00
|
|
|
openssl-prime - compute prime numbers
|
2017-08-14 21:32:07 +08:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
B<openssl prime>
|
|
|
|
[B<-help>]
|
|
|
|
[B<-hex>]
|
|
|
|
[B<-generate>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-bits> I<num>]
|
2017-08-14 21:32:07 +08:00
|
|
|
[B<-safe>]
|
2020-02-25 12:29:30 +08:00
|
|
|
{- $OpenSSL::safe::opt_provider_synopsis -}
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-checks> I<num>]
|
2019-10-01 15:57:37 +08:00
|
|
|
[I<number> ...]
|
2017-08-14 21:32:07 +08:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
Command docs: fix up command references
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure
they are refered to like that and not just as the sub-command.
Self-references are avoided as much as is possible, and replaced with
"this command". In some cases, we even avoid that with a slight
rewrite of the sentence or paragrah they were in. However, in the few
cases where a self-reference is still admissible, they are done in
bold, i.e. openssl-speed.pod references itself like this:
B<openssl speed>
References to other commands are done as manual links, i.e. CA.pl.pod
references 'openssl req' like this: L<openssl-req(1)>
Some commands are examples rather than references; we enclose those in
C<>.
While we are it, we abolish "utility", replacing it with "command", or
remove it entirely in some cases.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10065)
2019-10-02 01:43:36 +08:00
|
|
|
This command checks if the specified numbers are prime.
|
2017-08-14 21:32:07 +08:00
|
|
|
|
|
|
|
If no numbers are given on the command line, the B<-generate> flag should
|
|
|
|
be used to generate primes according to the requirements specified by the
|
|
|
|
rest of the flags.
|
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-help>
|
2017-08-14 21:32:07 +08:00
|
|
|
|
|
|
|
Display an option summary.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-hex>
|
2017-08-14 21:32:07 +08:00
|
|
|
|
|
|
|
Generate hex output.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-generate>
|
2017-08-14 21:32:07 +08:00
|
|
|
|
|
|
|
Generate a prime number.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-bits> I<num>
|
2017-08-14 21:32:07 +08:00
|
|
|
|
2019-10-02 00:16:29 +08:00
|
|
|
Generate a prime with I<num> bits.
|
2017-08-14 21:32:07 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-safe>
|
2017-08-14 21:32:07 +08:00
|
|
|
|
|
|
|
When used with B<-generate>, generates a "safe" prime. If the number
|
2019-10-02 00:16:29 +08:00
|
|
|
generated is I<n>, then check that C<(I<n>-1)/2> is also prime.
|
2017-08-14 21:32:07 +08:00
|
|
|
|
2020-02-25 12:29:30 +08:00
|
|
|
{- $OpenSSL::safe::opt_provider_item -}
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-checks> I<num>
|
2017-08-14 21:32:07 +08:00
|
|
|
|
2019-10-06 23:21:16 +08:00
|
|
|
This parameter is ignored.
|
2017-08-14 21:32:07 +08:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2020-04-23 20:55:52 +08:00
|
|
|
Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.
|
2017-08-14 21:32:07 +08:00
|
|
|
|
2018-12-06 21:04:11 +08:00
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
2017-08-14 21:32:07 +08:00
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|