From: Darren Tucker Date: Sun, 12 Feb 2017 23:36:29 +0000 (+1100) Subject: DES keys are not 7 days long. X-Git-Tag: OpenSSL_1_1_1-pre1~2433 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4fd7b54dc224930a0ce6dd67b35c598c5072857c;p=oweals%2Fopenssl.git DES keys are not 7 days long. CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/2604) --- diff --git a/crypto/des/set_key.c b/crypto/des/set_key.c index 93adff3982..795d9549cf 100644 --- a/crypto/des/set_key.c +++ b/crypto/des/set_key.c @@ -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 diff --git a/doc/man3/DES_random_key.pod b/doc/man3/DES_random_key.pod index 052b96df87..bcf9761b3e 100644 --- a/doc/man3/DES_random_key.pod +++ b/doc/man3/DES_random_key.pod @@ -114,7 +114,7 @@ architecture dependent I 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.