EVP_PBE_scrypt() handles salt=NULL as salt=""
authorVictor Stinner <vstinner@redhat.com>
Thu, 14 Mar 2019 14:23:04 +0000 (15:23 +0100)
committerPauli <paul.dale@oracle.com>
Sun, 17 Mar 2019 09:27:37 +0000 (19:27 +1000)
commit253d7622222166959d1a5e724434aae3fbd2537d
tree402543565890821dd95f64317640d0b4aef3ac5f
parentf7f2a55aeee12926a7080d75d38f03467eb1ac44
EVP_PBE_scrypt() handles salt=NULL as salt=""

Modify EVP_PBE_scrypt() to maintain OpenSSL 1.1.1 behavior: salt=NULL
is now handled as salt="" (and saltlen=0).

Commit 5a285addbf39f91d567f95f04b2b41764127950d changed the behavior
of EVP_PBE_scrypt(salt=NULL). Previously, salt=NULL was accepted, but
the function now fails with KDF_R_MISSING_SALT.

CLA: trivial

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8483)
crypto/evp/pbe_scrypt.c