| 
									
										
										
										
											2017-08-14 21:32:07 +08:00
										 |  |  | =pod | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =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>] | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The B<prime> command checks if the specified numbers are prime. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-26 03:20:11 +08:00
										 |  |  | =item B<-checks> I<num> | 
					
						
							| 
									
										
										
										
											2017-08-14 21:32:07 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-02 00:16:29 +08:00
										 |  |  | Perform the checks I<num> times to see that the generated number | 
					
						
							| 
									
										
										
										
											2017-08-14 21:32:07 +08:00
										 |  |  | is prime.  The default is 20. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =back | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 COPYRIGHT | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-22 07:04:41 +08:00
										 |  |  | Copyright 2017-2019 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 |