summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2010-10-13 19:16:37 +0000
committerjmc <>2010-10-13 19:16:37 +0000
commita46d41ba1b3664c9c5cd99b14a4e5beba9ba4f98 (patch)
treee60fb2b0c8567d300a6a67ef004c691535300607 /src
parent1b3fae11c839309a3373f1a74d0de8ce866d3860 (diff)
downloadopenbsd-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.148
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.
322Public key algorithm parameter management. 322Public key algorithm parameter management.
323.It Cm pkeyutl 323.It Cm pkeyutl
324Public key algorithm cryptographic operation utility. 324Public key algorithm cryptographic operation utility.
325.It Cm prime
326Generate prime numbers or test numbers for primality.
325.It Cm rand 327.It Cm rand
326Generate pseudo-random bytes. 328Generate 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
5418The
5419.Nm prime
5420command is used to generate prime numbers,
5421or to check numbers for primality.
5422.Pp
5423The options are as follows:
5424.Bl -tag -width ds
5425.It Fl bits Ar n
5426Specify the number of bits in the generated prime number.
5427Must be used in conjunction with
5428.Fl generate .
5429.It Fl checks Ar n
5430Perform a Miller-Rabin probabilistic primality test with
5431.Ar n
5432iterations.
5433The default is 20.
5434.It Fl generate
5435Generate a pseudo-random prime number.
5436Must be used in conjunction with
5437.Fl bits .
5438.It Fl hex
5439Output in hex format.
5440.It Fl safe
5441Generate only
5442.Qq safe
5443prime numbers
5444(i.e. a prime p so that (p-1)/2 is also prime).
5445.It Ar p
5446Test if number
5447.Ar p
5448is prime.
5449.El
5450.\"
5405.\" RAND 5451.\" RAND
5406.\" 5452.\"
5407.Sh RAND 5453.Sh RAND