Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed possible read after end of buffer and use after free. | Dmitry Stogov | 2014-12-10 | 1 | -2/+6 |
| | |||||
* | typo fixes - https://github.com/vlajos/misspell_fixer | Veres Lajos | 2014-11-23 | 5 | -6/+6 |
| | | | | | | | | | | | | | | Conflicts: ext/ftp/ftp.h ext/pcre/pcrelib/pcre_printint.c ext/pcre/pcrelib/sljit/sljitLir.c ext/pcre/pcrelib/sljit/sljitLir.h ext/pcre/pcrelib/sljit/sljitNativeARM_32.c ext/pcre/pcrelib/sljit/sljitNativeTILEGX_64.c ext/pgsql/pgsql.c ext/phar/func_interceptors.c ext/soap/soap.c ext/standard/image.c | ||||
* | Use /dev/urandom as the default mcrypt_create_iv() source | Nikita Popov | 2014-03-11 | 1 | -11/+11 |
| | | | | | Also fixes the ARGINFO for mcrypt_create_iv() and adds missing UPGRADING entries. | ||||
* | Fixed mcrypt test case | Tjerk Meesters | 2014-03-11 | 1 | -1/+1 |
| | |||||
* | Add test for bug #62102 / RFC 2144 | Andrey Andreev | 2014-03-06 | 1 | -0/+25 |
| | | | | Using test vectors from RFC 2144, section B.1 (http://tools.ietf.org/rfc/rfc2144.txt) | ||||
* | Use zpp for accepting encryption mode string | Nikita Popov | 2014-03-05 | 3 | -50/+38 |
| | | | | | Leaving the non-zpp usage for the mcrypt_{MODE} functions, as they're deprecated and I'm too lazy to update all their tests. | ||||
* | Remove a number of macros that are no longer used | Nikita Popov | 2014-03-05 | 1 | -42/+0 |
| | |||||
* | Provide expected IV length in IV error messages | Nikita Popov | 2014-03-05 | 12 | -94/+108 |
| | |||||
* | Call mcrypt_module_close on error | Nikita Popov | 2014-03-05 | 1 | -0/+4 |
| | |||||
* | Print supported key sizes in error message | Nikita Popov | 2014-03-05 | 15 | -134/+186 |
| | |||||
* | Clean up do_crypt code | Nikita Popov | 2014-03-05 | 1 | -61/+57 |
| | | | | | Avoid unnecessary alloc/copy/free cycles and clean up structure in general. Add a few extra checks for the key length. | ||||
* | Abort on invalid key size | Nikita Popov | 2014-03-05 | 31 | -194/+322 |
| | | | | | | | | | | Previously an incorrectly sized key was either silently padded with NUL bytes or truncated. Especially the silent nature of this behavior makes it extremely easy to use weak encryption. A common mistake - which has also been extensively made in our tests - is to use a password instead of a key. Incorrectly sized keys will now be rejected. | ||||
* | Abort on missing IV if the enc_mode requires it | Nikita Popov | 2014-03-05 | 4 | -11/+14 |
| | | | | | | | Previously the code fell back on using a NUL IV if no IV was passed and the encryption mode required it. This is dangerous and makes no sense from a practical point of view (as you could just as well use ECB then). | ||||
* | Abort on invalid IV size | Nikita Popov | 2014-03-05 | 9 | -76/+78 |
| | | | | | | | | | Previously, if the size of the IV did not match the block size mcrypt would throw a warning and fall back to a NUL IV. This behavior is both dangerous and makes no practical sense. mcrypt_encrypt etc. will now return false if the IV has an incorrect size. | ||||
* | Bump year | Xinchen Hui | 2014-01-03 | 4 | -4/+4 |
| | |||||
* | Fix long-standing visual pain point: the misalignment of './configure help' ↵ | Christopher Jones | 2013-08-06 | 1 | -1/+1 |
| | | | | | | text. Whitespace changes and a couple of grammar fixes. | ||||
* | Happy New Year | Xinchen Hui | 2013-01-01 | 4 | -4/+4 |
| | |||||
* | Fixed Mcrypt deprecated functions and related tests | Sherif Ramadan | 2012-08-16 | 13 | -9/+205 |
| | |||||
* | Merge branch 'PHP-5.4' | Nikita Popov | 2012-08-13 | 2 | -7/+7 |
|\ | |||||
| * | Merge branch 'PHP-5.3' into PHP-5.4 | Nikita Popov | 2012-08-13 | 2 | -7/+7 |
| |\ | |||||
| | * | Ask for less random data in mcrypt_create_iv | Nikita Popov | 2012-08-13 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | Otherwise the RNG blocks and the test takes a lot of time to run (and occasionally fails). | ||||
| | * | Rename mcrypt_cbf -> mcrypt_cfb | Nikita Popov | 2012-08-13 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | Also fix ECB -> CFB in the initialization vector size call (not that it makes a difference, they have the same size). | ||||
| | * | - Year++ | Felipe Pena | 2012-01-01 | 4 | -4/+4 |
| | | | |||||
| | * | - skip if no hash | Pierre Joye | 2011-09-08 | 1 | -1/+2 |
| | | | |||||
| | * | Added skipif | Xinchen Hui | 2011-09-06 | 1 | -0/+2 |
| | | | |||||
| | * | - add skipif | Pierre Joye | 2011-09-06 | 1 | -2/+3 |
| | | | |||||
| | * | - Make usage of new PHP_FE_END macro | Felipe Pena | 2011-07-25 | 1 | -1/+1 |
| | | | |||||
| | * | tests for bug #55169 (mcrypt and openssl) | Ryan Biesemeyer | 2011-07-20 | 1 | -0/+43 |
| | | | |||||
| | * | - use warning here to match unix behavior | Pierre Joye | 2011-07-10 | 1 | -1/+1 |
| | | | |||||
| | * | - force static, can't be built yet shared anyway | Pierre Joye | 2011-01-19 | 1 | -1/+2 |
| | | | |||||
| | * | - Year++ | Felipe Pena | 2011-01-01 | 4 | -4/+4 |
| | | | |||||
| | * | - use new function to get random bytes | Pierre Joye | 2010-06-08 | 1 | -19/+9 |
| | | | |||||
| | * | - WS | Pierre Joye | 2010-06-08 | 1 | -3/+3 |
| | | | |||||
| | * | - fix leak on error in mcrypt_create_iv on windows | Pierre Joye | 2010-06-02 | 1 | -0/+2 |
| | | | |||||
| | * | - allow shared build | Pierre Joye | 2010-06-02 | 1 | -1/+1 |
| | | | |||||
| * | | - Year++ | Felipe Pena | 2012-01-01 | 4 | -4/+4 |
| | | | |||||
| * | | - skip if no hash | Pierre Joye | 2011-09-08 | 1 | -1/+2 |
| | | | |||||
| * | | - add skipif | Pierre Joye | 2011-09-06 | 1 | -2/+3 |
| | | | |||||
| * | | fix failing tests | Stanislav Malyshev | 2011-08-01 | 1 | -4/+6 |
| | | | |||||
| * | | - Make usage of new PHP_FE_END macro | Felipe Pena | 2011-07-25 | 1 | -1/+1 |
| | | | |||||
| * | | - remove magic quotes support, functions are kept (see the NEWS entry for ↵ | Pierre Joye | 2011-07-22 | 1 | -1/+1 |
| | | | | | | | | | | | | the details) for BC reasons but do not allow to set enable MQ | ||||
| * | | tests for bug #55169 (mcrypt and openssl) | Ryan Biesemeyer | 2011-07-20 | 1 | -0/+43 |
| | | | |||||
| * | | - use warning here to match unix behavior | Pierre Joye | 2011-07-10 | 1 | -1/+1 |
| | | | |||||
| * | | MFH: Fixes for broken tests. | Stanislav Malyshev | 2011-05-27 | 1 | -0/+2 |
| | | | |||||
* | | | Fix mcrypt_ecb tests after deprecation | Nikita Popov | 2012-08-13 | 9 | -6/+28 |
| | | | |||||
* | | | Fixes mcrypt_ecb not issuing an E_DEPRECATED level notice, despite having ↵ | Sherif Ramadan | 2012-07-21 | 1 | -1/+1 |
| | | | | | | | | | | | | been deprecated for some time. Please reference bug #62374 as well. | ||||
* | | | - Year++ | Felipe Pena | 2012-01-01 | 4 | -4/+4 |
| | | | |||||
* | | | - skip if no hash | Pierre Joye | 2011-09-08 | 1 | -1/+2 |
| | | | |||||
* | | | - add skipif | Pierre Joye | 2011-09-06 | 1 | -2/+3 |
| | | | |||||
* | | | fix failing tests | Stanislav Malyshev | 2011-08-01 | 1 | -4/+6 |
| | | |