]> git.ipfire.org Git - thirdparty/openssl.git/commit
DES_set_key(): return values as DES_set_key_checked() but always set
authorTomas Mraz <tomas@openssl.org>
Mon, 1 Nov 2021 07:39:21 +0000 (08:39 +0100)
committerPauli <pauli@openssl.org>
Tue, 2 Nov 2021 23:31:16 +0000 (09:31 +1000)
commitc686efc43fe1327451b5a7f5638c9efc3085d784
tree7dacdcae3c1900255cecd69daa7b12838063aa65
parent47d82af0827ec46876e8cc859cd76b256d81c3c4
DES_set_key(): return values as DES_set_key_checked() but always set

This avoids using accidentally uninitialized key schedule in
applications that use DES_set_key() not expecting it to check the key
which is the default on OpenSSL <= 1.1.1

Fixes #16859

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16944)

(cherry picked from commit 6450ea27ffdc22194f27e90796ce5538af2d81e2)
crypto/des/set_key.c