summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2008-05-30 19:06:50 +0000
committerjmc <>2008-05-30 19:06:50 +0000
commitf3b12bced646aded51b00b6567551d2da20238b8 (patch)
tree5aa2730cebf467b5dd9ac90a03d1ed0a39cebd31 /src
parente603b6ec8e9138225bd5cbfedbd0b5b1e82735e6 (diff)
downloadopenbsd-f3b12bced646aded51b00b6567551d2da20238b8.tar.gz
openbsd-f3b12bced646aded51b00b6567551d2da20238b8.tar.bz2
openbsd-f3b12bced646aded51b00b6567551d2da20238b8.zip
-salt is default for "openssl enc"; from djm
tweaked with some help from Matthew Dempsky and djm ok djm
Diffstat (limited to 'src')
-rw-r--r--src/usr.sbin/openssl/openssl.148
1 files changed, 19 insertions, 29 deletions
diff --git a/src/usr.sbin/openssl/openssl.1 b/src/usr.sbin/openssl/openssl.1
index 67c1a76958..8d674df686 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.60 2007/12/01 11:05:25 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.61 2008/05/30 19:06:50 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.\"
@@ -112,7 +112,7 @@
112.\" 112.\"
113.\" OPENSSL 113.\" OPENSSL
114.\" 114.\"
115.Dd $Mdocdate: December 1 2007 $ 115.Dd $Mdocdate: May 30 2008 $
116.Dt OPENSSL 1 116.Dt OPENSSL 1
117.Os 117.Os
118.Sh NAME 118.Sh NAME
@@ -2528,10 +2528,13 @@ Disable standard block padding.
2528Don't use a 2528Don't use a
2529.Ar salt 2529.Ar salt
2530in the key derivation routines. 2530in the key derivation routines.
2531This is the default for compatibility with previous versions of 2531This option should
2532.Em NEVER
2533be used unless compatibility with previous versions of
2532.Nm OpenSSL 2534.Nm OpenSSL
2533and 2535or
2534.Nm SSLeay . 2536.Nm SSLeay
2537is required.
2535.It Fl out Ar file 2538.It Fl out Ar file
2536The output 2539The output
2537.Ar file , 2540.Ar file ,
@@ -2567,16 +2570,7 @@ this must be represented as a string comprised only of hex digits.
2567Use a 2570Use a
2568.Ar salt 2571.Ar salt
2569in the key derivation routines. 2572in the key derivation routines.
2570This option should 2573This is the default.
2571.Em ALWAYS
2572be used unless compatibility with previous versions of
2573.Nm OpenSSL
2574or
2575.Nm SSLeay
2576is required.
2577This option is only present on
2578.Nm OpenSSL
2579versions 0.9.5 or above.
2580.El 2574.El
2581.Sh ENC NOTES 2575.Sh ENC NOTES
2582The program can be called either as 2576The program can be called either as
@@ -2591,28 +2585,24 @@ and
2591if necessary. 2585if necessary.
2592.Pp 2586.Pp
2593The 2587The
2594.Fl salt 2588.Fl nosalt
2595option should 2589option should
2596.Em ALWAYS 2590.Em NEVER
2597be used if the key is being derived from a password unless compatibility 2591be used unless compatibility with previous versions of
2598with previous versions of
2599.Nm OpenSSL 2592.Nm OpenSSL
2600and 2593or
2601.Nm SSLeay 2594.Nm SSLeay
2602is necessary. 2595is required.
2603.Pp 2596.Pp
2604Without the 2597With the
2605.Fl salt 2598.Fl nosalt
2606option it is possible to perform efficient dictionary 2599option it is possible to perform efficient dictionary
2607attacks on the password and to attack stream cipher encrypted data. 2600attacks on the password and to attack stream cipher encrypted data.
2608The reason for this is that without the 2601The reason for this is that without the salt
2609.Ar salt
2610the same password always generates the same encryption key. 2602the same password always generates the same encryption key.
2611When the 2603When the salt
2612.Ar salt
2613is being used the first eight bytes of the encrypted data are reserved 2604is being used the first eight bytes of the encrypted data are reserved
2614for the 2605for the salt:
2615.Ar salt :
2616it is generated at random when encrypting a file and read from the 2606it is generated at random when encrypting a file and read from the
2617encrypted file when it is decrypted. 2607encrypted file when it is decrypted.
2618.Pp 2608.Pp