CI_Encryption: Remove MCrypt 'work-arounds' for CAST-128 compatibility
Turns out it's OpenSSL's fault for performing 16 rounds instead of 12 for key sizes of 5-11 bytes.
Reference: http://tools.ietf.org/rfc/rfc2144.txt
diff --git a/tests/codeigniter/libraries/Encryption_test.php b/tests/codeigniter/libraries/Encryption_test.php
index 5f23824..cb9326d 100644
--- a/tests/codeigniter/libraries/Encryption_test.php
+++ b/tests/codeigniter/libraries/Encryption_test.php
@@ -330,18 +330,10 @@
array('blowfish', 'cfb', 56),
array('blowfish', 'ofb', 56),
array('blowfish', 'ecb', 56),
- array('cast5', 'cbc', 5),
- array('cast5', 'cfb', 5),
- array('cast5', 'ofb', 5),
- array('cast5', 'ecb', 5),
- array('cast5', 'cbc', 8),
- array('cast5', 'cfb', 8),
- array('cast5', 'ofb', 8),
- array('cast5', 'ecb', 8),
- array('cast5', 'cbc', 10),
- array('cast5', 'cfb', 10),
- array('cast5', 'ofb', 10),
- array('cast5', 'ecb', 10),
+ array('cast5', 'cbc', 11),
+ array('cast5', 'cfb', 11),
+ array('cast5', 'ofb', 11),
+ array('cast5', 'ecb', 11),
array('cast5', 'cbc', 16),
array('cast5', 'cfb', 16),
array('cast5', 'ofb', 16),