From d9a48da095e2b76c65b1b9ebd26b6f06c94cb0e5 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 5 Feb 2014 14:10:28 +0200 Subject: CI_Encryption: Add Blowfish to compatibility list --- tests/codeigniter/libraries/Encryption_test.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/codeigniter/libraries/Encryption_test.php b/tests/codeigniter/libraries/Encryption_test.php index 3d091e8d8..b13cb3140 100644 --- a/tests/codeigniter/libraries/Encryption_test.php +++ b/tests/codeigniter/libraries/Encryption_test.php @@ -21,10 +21,6 @@ class Encryption_test extends CI_TestCase { $message = 'This is a message encrypted via MCrypt and decrypted via OpenSSL, or vice-versa.'; - // As it turns out, only ciphers that happened to be a US standard have a - // somewhat consistent implementation between MCrypt and OpenSSL, so - // we can only test AES, DES and TripleDES. - // // Format is: , , $portable = array( array('rijndael-128', 'aes-128', 16), @@ -33,7 +29,9 @@ class Encryption_test extends CI_TestCase { array('des', 'des', 7), array('tripledes', 'des-ede3', 7), array('tripledes', 'des-ede3', 14), - array('tripledes', 'des-ede3', 21) + array('tripledes', 'des-ede3', 21), + array('blowfish', 'bf', 16), + array('blowfish', 'bf', 56) ); $driver_index = array('mcrypt', 'openssl'); -- cgit v1.2.3-24-g4f1b