diff options
author | jmc <> | 2010-10-13 19:16:37 +0000 |
---|---|---|
committer | jmc <> | 2010-10-13 19:16:37 +0000 |
commit | a46d41ba1b3664c9c5cd99b14a4e5beba9ba4f98 (patch) | |
tree | e60fb2b0c8567d300a6a67ef004c691535300607 /src | |
parent | 1b3fae11c839309a3373f1a74d0de8ce866d3860 (diff) | |
download | openbsd-a46d41ba1b3664c9c5cd99b14a4e5beba9ba4f98.tar.gz openbsd-a46d41ba1b3664c9c5cd99b14a4e5beba9ba4f98.tar.bz2 openbsd-a46d41ba1b3664c9c5cd99b14a4e5beba9ba4f98.zip |
document "openssl prime";
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.sbin/openssl/openssl.1 | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/src/usr.sbin/openssl/openssl.1 b/src/usr.sbin/openssl/openssl.1 index 688df9d8c5..1c8639846e 100644 --- a/src/usr.sbin/openssl/openssl.1 +++ b/src/usr.sbin/openssl/openssl.1 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: openssl.1,v 1.76 2010/10/13 15:38:56 jmc Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.77 2010/10/13 19:16:37 jmc Exp $ |
2 | .\" ==================================================================== | 2 | .\" ==================================================================== |
3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | .\" | 4 | .\" |
@@ -322,6 +322,8 @@ Public and private key management. | |||
322 | Public key algorithm parameter management. | 322 | Public key algorithm parameter management. |
323 | .It Cm pkeyutl | 323 | .It Cm pkeyutl |
324 | Public key algorithm cryptographic operation utility. | 324 | Public key algorithm cryptographic operation utility. |
325 | .It Cm prime | ||
326 | Generate prime numbers or test numbers for primality. | ||
325 | .It Cm rand | 327 | .It Cm rand |
326 | Generate pseudo-random bytes. | 328 | Generate pseudo-random bytes. |
327 | .It Cm req | 329 | .It Cm req |
@@ -5402,6 +5404,50 @@ $ openssl pkeyutl -derive -inkey key.pem \e | |||
5402 | -peerkey pubkey.pem -out secret | 5404 | -peerkey pubkey.pem -out secret |
5403 | .Ed | 5405 | .Ed |
5404 | .\" | 5406 | .\" |
5407 | .\" PRIME | ||
5408 | .\" | ||
5409 | .Sh PRIME | ||
5410 | .Cm openssl prime | ||
5411 | .Op Fl generate | ||
5412 | .Op Fl hex | ||
5413 | .Op Fl safe | ||
5414 | .Op Fl bits Ar n | ||
5415 | .Op Fl checks Ar n | ||
5416 | .Ar p | ||
5417 | .Pp | ||
5418 | The | ||
5419 | .Nm prime | ||
5420 | command is used to generate prime numbers, | ||
5421 | or to check numbers for primality. | ||
5422 | .Pp | ||
5423 | The options are as follows: | ||
5424 | .Bl -tag -width ds | ||
5425 | .It Fl bits Ar n | ||
5426 | Specify the number of bits in the generated prime number. | ||
5427 | Must be used in conjunction with | ||
5428 | .Fl generate . | ||
5429 | .It Fl checks Ar n | ||
5430 | Perform a Miller-Rabin probabilistic primality test with | ||
5431 | .Ar n | ||
5432 | iterations. | ||
5433 | The default is 20. | ||
5434 | .It Fl generate | ||
5435 | Generate a pseudo-random prime number. | ||
5436 | Must be used in conjunction with | ||
5437 | .Fl bits . | ||
5438 | .It Fl hex | ||
5439 | Output in hex format. | ||
5440 | .It Fl safe | ||
5441 | Generate only | ||
5442 | .Qq safe | ||
5443 | prime numbers | ||
5444 | (i.e. a prime p so that (p-1)/2 is also prime). | ||
5445 | .It Ar p | ||
5446 | Test if number | ||
5447 | .Ar p | ||
5448 | is prime. | ||
5449 | .El | ||
5450 | .\" | ||
5405 | .\" RAND | 5451 | .\" RAND |
5406 | .\" | 5452 | .\" |
5407 | .Sh RAND | 5453 | .Sh RAND |