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