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
cmeth_lib.c
digest.c
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_aes.c Make EVP_*Final work for CCM ciphers 2017-02-08 02:16:27 +00: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
e_camellia.c
e_cast.c
e_chacha20_poly1305.c Properly zero cipher_data for ChaCha20-Poly1305 on cleanup 2017-02-15 20:00:34 -05:00
e_des3.c Fix the overlapping check for fragmented "Update" operations 2017-01-25 15:02:44 +00:00
e_des.c
e_idea.c
e_null.c
e_old.c
e_rc2.c
e_rc4_hmac_md5.c crypto/evp: harden RC4_MD5 cipher. 2017-01-26 10:54:01 +00:00
e_rc4.c Cleanup EVP_CIPH/EP_CTRL duplicate defines 2017-01-24 18:47:10 +01:00
e_rc5.c Fix spelling of error code 2016-08-10 09:58:57 -04:00
e_seed.c
e_xcbc_d.c
encode.c
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
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
evp_pkey.c Constify private key decode. 2016-08-17 12:01:29 +01:00
m_md2.c
m_md4.c
m_md5_sha1.c Fix ctrl operation for SHA1/MD5SHA1. 2016-11-25 20:50:58 +00:00
m_md5.c
m_mdc2.c
m_null.c
m_ripemd.c
m_sha1.c Fix ctrl operation for SHA1/MD5SHA1. 2016-11-25 20:50:58 +00:00
m_sigver.c
m_wp.c
names.c
p5_crpt2.c Fixed PKCS5_PBKDF2_HMAC() to adhere to the documentation. 2017-03-17 08:47:11 -04:00
p5_crpt.c
p_dec.c
p_enc.c
p_lib.c Add support for parameterized SipHash 2017-02-01 14:14:36 -05:00
p_open.c
p_seal.c Remove some commented out code in libcrypto 2017-02-28 16:02:11 +00:00
p_sign.c
p_verify.c
pmeth_fn.c Reformat M_check_autoarg to match our coding style 2016-12-20 23:21:25 +01:00
pmeth_gn.c
pmeth_lib.c Combined patch against master branch for the following issues: 2017-02-03 20:39:52 +01:00
scrypt.c