DES keys are not 7 days long.
authorDarren Tucker <dtucker@google.com>
Sun, 12 Feb 2017 23:36:29 +0000 (10:36 +1100)
committerRichard Levitte <levitte@openssl.org>
Mon, 13 Feb 2017 10:53:24 +0000 (11:53 +0100)
CLA: trivial
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2604)

(cherry picked from commit 4fd7b54dc224930a0ce6dd67b35c598c5072857c)

crypto/des/set_key.c
doc/crypto/DES_random_key.pod

index 93adff3982982791375ada057214789a8e21f6b5..795d9549cfc7b7a496a665b3bb2af018c155e256 100644 (file)
@@ -71,7 +71,7 @@ int DES_check_key_parity(const_DES_cblock *key)
 }
 
 /*-
- * Weak and semi week keys as take from
+ * Weak and semi weak keys as taken from
  * %A D.W. Davies
  * %A W.L. Price
  * %T Security for Computer Networks
index 0131093ba9e951569bc41c822ab017df5cdcfac5..77cfddab3be6b6305a1787c1bf28e5946d23e170 100644 (file)
@@ -114,7 +114,7 @@ architecture dependent I<DES_key_schedule> via the
 DES_set_key_checked() or DES_set_key_unchecked() function.
 
 DES_set_key_checked() will check that the key passed is of odd parity
-and is not a week or semi-weak key.  If the parity is wrong, then -1
+and is not a weak or semi-weak key.  If the parity is wrong, then -1
 is returned.  If the key is a weak key, then -2 is returned.  If an
 error is returned, the key schedule is not generated.