PrivateBin/tst
Sebastien SAUVAGE 43a439e7d0 Time attack protection on hmac comparison
This fixes issue 2.7 of https://defuse.ca/audits/zerobin.htm, and thus
(with commit a24212afda90ca3e4b4ff5ce30d2012709b58a28) also issue 2.8.

(cherry picked from commit 0b4db7ece313dd268e51fc47a0293a649927558a)

Conflicts:
	index.php
2015-08-15 23:44:03 +02:00
..
zerobin reviewed unit tests, fixing line endings, added more tests 2015-08-15 18:32:31 +02:00
auto.php reviewed unit tests, fixing line endings, added more tests 2015-08-15 18:32:31 +02:00
bootstrap.php removed leftovers from submodule uglifyjs, added credits file, 2012-08-26 00:49:11 +02:00
filter.php Time attack protection on hmac comparison 2015-08-15 23:44:03 +02:00
mcrypt_mock.php Time attack protection on hmac comparison 2015-08-15 23:44:03 +02:00
phpunit.xml Time attack protection on hmac comparison 2015-08-15 23:44:03 +02:00
RainTPL.php reviewed unit tests, fixing line endings, added more tests 2015-08-15 18:32:31 +02:00
README.md removed leftovers from submodule uglifyjs, added credits file, 2012-08-26 00:49:11 +02:00
sjcl.php reviewed unit tests, fixing line endings, added more tests 2015-08-15 18:32:31 +02:00
trafficlimiter.php reviewed unit tests, fixing line endings, added more tests 2015-08-15 18:32:31 +02:00
vizhash16x16.php Time attack protection on hmac comparison 2015-08-15 23:44:03 +02:00

Running unit tests

In order to run these tests, you will need to install the following packages and its dependencies:

  • phpunit
  • php5-gd
  • php5-sqlite
  • php5-xdebug

Example for Debian and Ubuntu: $ sudo aptitude install phpunit php5-mysql php5-xdebug

To run the tests, just change into this directory and run phpunit: $ cd ZeroBin/tst $ phpunit