summaryrefslogtreecommitdiffstats
path: root/secure/usr.bin/openssl/man/enc.1
diff options
context:
space:
mode:
Diffstat (limited to 'secure/usr.bin/openssl/man/enc.1')
-rw-r--r--secure/usr.bin/openssl/man/enc.194
1 files changed, 50 insertions, 44 deletions
diff --git a/secure/usr.bin/openssl/man/enc.1 b/secure/usr.bin/openssl/man/enc.1
index 22a4222..9152e4a 100644
--- a/secure/usr.bin/openssl/man/enc.1
+++ b/secure/usr.bin/openssl/man/enc.1
@@ -1,8 +1,7 @@
-.\" Automatically generated by Pod::Man version 1.15
-.\" Wed Feb 19 16:49:33 2003
+.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
.\"
.\" Standard preamble:
-.\" ======================================================================
+.\" ========================================================================
.de Sh \" Subsection heading
.br
.if t .Sp
@@ -15,12 +14,6 @@
.if t .sp .5v
.if n .sp
..
-.de Ip \" List item
-.br
-.ie \\n(.$>=3 .ne \\$3
-.el .ne 3
-.IP "\\$1" \\$2
-..
.de Vb \" Begin verbatim text
.ft CW
.nf
@@ -28,15 +21,14 @@
..
.de Ve \" End verbatim text
.ft R
-
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. | will give a
-.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used
-.\" to do unbreakable dashes and therefore won't be available. \*(C` and
-.\" \*(C' expand to `' in nroff, nothing in troff, for use with C<>
+.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
+.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
+.\" expand to `' in nroff, nothing in troff, for use with C<>.
.tr \(*W-|\(bv\*(Tr
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
@@ -56,10 +48,10 @@
. ds R" ''
'br\}
.\"
-.\" If the F register is turned on, we'll generate index entries on stderr
-.\" for titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and
-.\" index entries marked with X<> in POD. Of course, you'll have to process
-.\" the output yourself in some meaningful fashion.
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
.if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
@@ -68,14 +60,13 @@
. rr F
.\}
.\"
-.\" For nroff, turn off justification. Always turn off hyphenation; it
-.\" makes way too many mistakes in technical documents.
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
.hy 0
.if n .na
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
-.bd B 3
. \" fudge factors for nroff and troff
.if n \{\
. ds #H 0
@@ -135,11 +126,10 @@
. ds Ae AE
.\}
.rm #[ #] #H #V #F C
-.\" ======================================================================
+.\" ========================================================================
.\"
.IX Title "ENC 1"
-.TH ENC 1 "0.9.7a" "2003-02-19" "OpenSSL"
-.UC
+.TH ENC 1 "2005-02-25" "0.9.7d" "OpenSSL"
.SH "NAME"
enc \- symmetric cipher routines
.SH "SYNOPSIS"
@@ -169,54 +159,54 @@ or explicitly provided. Base64 encoding or decoding can also be performed
either by itself or in addition to the encryption or decryption.
.SH "OPTIONS"
.IX Header "OPTIONS"
-.Ip "\fB\-in filename\fR" 4
+.IP "\fB\-in filename\fR" 4
.IX Item "-in filename"
the input filename, standard input by default.
-.Ip "\fB\-out filename\fR" 4
+.IP "\fB\-out filename\fR" 4
.IX Item "-out filename"
the output filename, standard output by default.
-.Ip "\fB\-pass arg\fR" 4
+.IP "\fB\-pass arg\fR" 4
.IX Item "-pass arg"
the password source. For more information about the format of \fBarg\fR
-see the \fB\s-1PASS\s0 \s-1PHRASE\s0 \s-1ARGUMENTS\s0\fR section in openssl(1).
-.Ip "\fB\-salt\fR" 4
+see the \fB\s-1PASS\s0 \s-1PHRASE\s0 \s-1ARGUMENTS\s0\fR section in \fIopenssl\fR\|(1).
+.IP "\fB\-salt\fR" 4
.IX Item "-salt"
use a salt in the key derivation routines. This option should \fB\s-1ALWAYS\s0\fR
be used unless compatibility with previous versions of OpenSSL or SSLeay
is required. This option is only present on OpenSSL versions 0.9.5 or
above.
-.Ip "\fB\-nosalt\fR" 4
+.IP "\fB\-nosalt\fR" 4
.IX Item "-nosalt"
don't use a salt in the key derivation routines. This is the default for
compatibility with previous versions of OpenSSL and SSLeay.
-.Ip "\fB\-e\fR" 4
+.IP "\fB\-e\fR" 4
.IX Item "-e"
encrypt the input data: this is the default.
-.Ip "\fB\-d\fR" 4
+.IP "\fB\-d\fR" 4
.IX Item "-d"
decrypt the input data.
-.Ip "\fB\-a\fR" 4
+.IP "\fB\-a\fR" 4
.IX Item "-a"
base64 process the data. This means that if encryption is taking place
the data is base64 encoded after encryption. If decryption is set then
the input data is base64 decoded before being decrypted.
-.Ip "\fB\-A\fR" 4
+.IP "\fB\-A\fR" 4
.IX Item "-A"
if the \fB\-a\fR option is set then base64 process the data on one line.
-.Ip "\fB\-k password\fR" 4
+.IP "\fB\-k password\fR" 4
.IX Item "-k password"
the password to derive the key from. This is for compatibility with previous
versions of OpenSSL. Superseded by the \fB\-pass\fR argument.
-.Ip "\fB\-kfile filename\fR" 4
+.IP "\fB\-kfile filename\fR" 4
.IX Item "-kfile filename"
read the password to derive the key from the first line of \fBfilename\fR.
-This is for computability with previous versions of OpenSSL. Superseded by
+This is for compatibility with previous versions of OpenSSL. Superseded by
the \fB\-pass\fR argument.
-.Ip "\fB\-S salt\fR" 4
+.IP "\fB\-S salt\fR" 4
.IX Item "-S salt"
the actual salt to use: this must be represented as a string comprised only
of hex digits.
-.Ip "\fB\-K key\fR" 4
+.IP "\fB\-K key\fR" 4
.IX Item "-K key"
the actual key to use: this must be represented as a string comprised only
of hex digits. If only the key is specified, the \s-1IV\s0 must additionally specified
@@ -224,26 +214,26 @@ using the \fB\-iv\fR option. When both a key and a password are specified, the
key given with the \fB\-K\fR option will be used and the \s-1IV\s0 generated from the
password will be taken. It probably does not make much sense to specify
both key and password.
-.Ip "\fB\-iv \s-1IV\s0\fR" 4
+.IP "\fB\-iv \s-1IV\s0\fR" 4
.IX Item "-iv IV"
the actual \s-1IV\s0 to use: this must be represented as a string comprised only
of hex digits. When only the key is specified using the \fB\-K\fR option, the
\&\s-1IV\s0 must explicitly be defined. When a password is being specified using
one of the other options, the \s-1IV\s0 is generated from this password.
-.Ip "\fB\-p\fR" 4
+.IP "\fB\-p\fR" 4
.IX Item "-p"
print out the key and \s-1IV\s0 used.
-.Ip "\fB\-P\fR" 4
+.IP "\fB\-P\fR" 4
.IX Item "-P"
print out the key and \s-1IV\s0 used then immediately exit: don't do any encryption
or decryption.
-.Ip "\fB\-bufsize number\fR" 4
+.IP "\fB\-bufsize number\fR" 4
.IX Item "-bufsize number"
set the buffer size for I/O
-.Ip "\fB\-nopad\fR" 4
+.IP "\fB\-nopad\fR" 4
.IX Item "-nopad"
disable standard block padding
-.Ip "\fB\-debug\fR" 4
+.IP "\fB\-debug\fR" 4
.IX Item "-debug"
debug the BIOs used for I/O.
.SH "NOTES"
@@ -284,6 +274,7 @@ Blowfish and \s-1RC5\s0 algorithms use a 128 bit key.
.Vb 1
\& base64 Base 64
.Ve
+.PP
.Vb 5
\& bf-cbc Blowfish in CBC mode
\& bf Alias for bf-cbc
@@ -291,6 +282,7 @@ Blowfish and \s-1RC5\s0 algorithms use a 128 bit key.
\& bf-ecb Blowfish in ECB mode
\& bf-ofb Blowfish in OFB mode
.Ve
+.PP
.Vb 6
\& cast-cbc CAST in CBC mode
\& cast Alias for cast-cbc
@@ -299,6 +291,7 @@ Blowfish and \s-1RC5\s0 algorithms use a 128 bit key.
\& cast5-ecb CAST5 in ECB mode
\& cast5-ofb CAST5 in OFB mode
.Ve
+.PP
.Vb 5
\& des-cbc DES in CBC mode
\& des Alias for des-cbc
@@ -306,12 +299,14 @@ Blowfish and \s-1RC5\s0 algorithms use a 128 bit key.
\& des-ofb DES in OFB mode
\& des-ecb DES in ECB mode
.Ve
+.PP
.Vb 4
\& des-ede-cbc Two key triple DES EDE in CBC mode
\& des-ede Alias for des-ede
\& des-ede-cfb Two key triple DES EDE in CFB mode
\& des-ede-ofb Two key triple DES EDE in OFB mode
.Ve
+.PP
.Vb 5
\& des-ede3-cbc Three key triple DES EDE in CBC mode
\& des-ede3 Alias for des-ede3-cbc
@@ -319,9 +314,11 @@ Blowfish and \s-1RC5\s0 algorithms use a 128 bit key.
\& des-ede3-cfb Three key triple DES EDE CFB mode
\& des-ede3-ofb Three key triple DES EDE in OFB mode
.Ve
+.PP
.Vb 1
\& desx DESX algorithm.
.Ve
+.PP
.Vb 5
\& idea-cbc IDEA algorithm in CBC mode
\& idea same as idea-cbc
@@ -329,6 +326,7 @@ Blowfish and \s-1RC5\s0 algorithms use a 128 bit key.
\& idea-ecb IDEA in ECB mode
\& idea-ofb IDEA in OFB mode
.Ve
+.PP
.Vb 7
\& rc2-cbc 128 bit RC2 in CBC mode
\& rc2 Alias for rc2-cbc
@@ -338,11 +336,13 @@ Blowfish and \s-1RC5\s0 algorithms use a 128 bit key.
\& rc2-64-cbc 64 bit RC2 in CBC mode
\& rc2-40-cbc 40 bit RC2 in CBC mode
.Ve
+.PP
.Vb 3
\& rc4 128 bit RC4
\& rc4-64 64 bit RC4
\& rc4-40 40 bit RC4
.Ve
+.PP
.Vb 5
\& rc5-cbc RC5 cipher in CBC mode
\& rc5 Alias for rc5-cbc
@@ -357,32 +357,38 @@ Just base64 encode a binary file:
.Vb 1
\& openssl base64 -in file.bin -out file.b64
.Ve
+.PP
Decode the same file
.PP
.Vb 1
\& openssl base64 -d -in file.b64 -out file.bin
.Ve
+.PP
Encrypt a file using triple \s-1DES\s0 in \s-1CBC\s0 mode using a prompted password:
.PP
.Vb 1
\& openssl des3 -salt -in file.txt -out file.des3
.Ve
+.PP
Decrypt a file using a supplied password:
.PP
.Vb 1
\& openssl des3 -d -salt -in file.des3 -out file.txt -k mypassword
.Ve
+.PP
Encrypt a file then base64 encode it (so it can be sent via mail for example)
using Blowfish in \s-1CBC\s0 mode:
.PP
.Vb 1
\& openssl bf -a -salt -in file.txt -out file.bf
.Ve
+.PP
Base64 decode a file then decrypt it:
.PP
.Vb 1
\& openssl bf -d -salt -a -in file.bf -out file.txt
.Ve
+.PP
Decrypt some data using a supplied 40 bit \s-1RC4\s0 key:
.PP
.Vb 1
OpenPOWER on IntegriCloud