openssl/crypto/evp
Péter Budai fa013b6524 Fixed PKCS5_PBKDF2_HMAC() to adhere to the documentation.
The documentation of this function states that the password parameter
can be NULL. However, the implementation returns an error in this case
due to the inner workings of the HMAC_Init_ex() function.
With this change, NULL password will be treated as an empty string and
PKCS5_PBKDF2_HMAC() no longer fails on this input.

I have also added two new test cases that tests the handling of the
special values NULL and -1 of the password and passlen parameters,
respectively.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1692)
2017-03-17 08:47:11 -04:00
..
bio_b64.c Remove some commented out code in libcrypto 2017-02-28 16:02:11 +00:00
bio_enc.c Remove some commented out code in libcrypto 2017-02-28 16:02:11 +00:00
bio_md.c Remove some commented out code in libcrypto 2017-02-28 16:02:11 +00:00
bio_ok.c Create BIO_write_ex() which handles size_t arguments 2016-10-28 09:48:54 +01:00
build.info Implementation of the ARIA cipher as described in RFC 5794. 2017-02-21 11:51:45 +01:00
c_allc.c Implementation of the ARIA cipher as described in RFC 5794. 2017-02-21 11:51:45 +01:00
c_alld.c Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
cmeth_lib.c Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
digest.c Convert memset calls to OPENSSL_cleanse 2016-06-30 15:51:57 +01:00
e_aes.c Make EVP_*Final work for CCM ciphers 2017-02-08 02:16:27 +00:00
e_aes_cbc_hmac_sha1.c evp/e_aes_cbc_hmac_{sha1|sha256}.c: tag reference code. 2017-03-02 16:25:36 +01:00
e_aes_cbc_hmac_sha256.c evp/e_aes_cbc_hmac_{sha1|sha256}.c: tag reference code. 2017-03-02 16:25:36 +01:00
e_aria.c Implementation of the ARIA cipher as described in RFC 5794. 2017-02-21 11:51:45 +01:00
e_bf.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
e_camellia.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
e_cast.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
e_chacha20_poly1305.c Properly zero cipher_data for ChaCha20-Poly1305 on cleanup 2017-02-15 20:00:34 -05:00
e_des.c Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
e_des3.c Fix the overlapping check for fragmented "Update" operations 2017-01-25 15:02:44 +00:00
e_idea.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
e_null.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
e_old.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
e_rc2.c Add some missing return value checks 2016-06-13 17:38:39 +01:00
e_rc4.c Cleanup EVP_CIPH/EP_CTRL duplicate defines 2017-01-24 18:47:10 +01:00
e_rc4_hmac_md5.c crypto/evp: harden RC4_MD5 cipher. 2017-01-26 10:54:01 +00:00
e_rc5.c Fix spelling of error code 2016-08-10 09:58:57 -04:00
e_seed.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
e_xcbc_d.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
encode.c Add EVP_ENCODE_CTX_copy 2016-07-24 19:23:00 +01:00
evp_cnf.c Clean up references to FIPS 2017-02-28 15:26:25 +01:00
evp_enc.c Restore EVP_CIPH_FLAG_LENGTH_BITS working properly 2017-02-10 13:36:56 +00:00
evp_err.c Implementation of the ARIA cipher as described in RFC 5794. 2017-02-21 11:51:45 +01:00
evp_key.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
evp_lib.c Fix EVP_MD_meth_get_flags 2016-12-22 15:23:41 +01:00
evp_locl.h Fix the overlapping check for fragmented "Update" operations 2017-01-25 15:02:44 +00:00
evp_pbe.c Add checks on sk_TYPE_push() returned value 2016-07-05 17:45:50 +01:00
evp_pkey.c Constify private key decode. 2016-08-17 12:01:29 +01:00
m_md2.c Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
m_md4.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
m_md5.c Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
m_md5_sha1.c Fix ctrl operation for SHA1/MD5SHA1. 2016-11-25 20:50:58 +00:00
m_mdc2.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
m_null.c Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
m_ripemd.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
m_sha1.c Fix ctrl operation for SHA1/MD5SHA1. 2016-11-25 20:50:58 +00:00
m_sigver.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
m_wp.c Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
names.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
p5_crpt.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
p5_crpt2.c Fixed PKCS5_PBKDF2_HMAC() to adhere to the documentation. 2017-03-17 08:47:11 -04:00
p_dec.c Useless header include of openssl/rand.h 2016-06-18 16:30:24 -04:00
p_enc.c Useless header include of openssl/rand.h 2016-06-18 16:30:24 -04:00
p_lib.c Add support for parameterized SipHash 2017-02-01 14:14:36 -05:00
p_open.c Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
p_seal.c Remove some commented out code in libcrypto 2017-02-28 16:02:11 +00:00
p_sign.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
p_verify.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
pmeth_fn.c Reformat M_check_autoarg to match our coding style 2016-12-20 23:21:25 +01:00
pmeth_gn.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
pmeth_lib.c Combined patch against master branch for the following issues: 2017-02-03 20:39:52 +01:00
scrypt.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00