summaryrefslogtreecommitdiff
path: root/ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt')
-rw-r--r--ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt b/ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt
index cc5996d410..052e708ad3 100644
--- a/ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt
+++ b/ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt
@@ -1,17 +1,17 @@
--TEST--
-Test mcrypt_decrypt() function : basic functionality
+Test mcrypt_decrypt() function : basic functionality
--SKIPIF--
-<?php
+<?php
if (!extension_loaded("mcrypt")) {
- print "skip - mcrypt extension not loaded";
-}
+ print "skip - mcrypt extension not loaded";
+}
?>
--FILE--
<?php
/* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string iv)
- * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
+ * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
* Source code: ext/mcrypt/mcrypt.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mcrypt_decrypt() : basic functionality ***\n";
@@ -23,9 +23,9 @@ $mode = MCRYPT_MODE_CBC;
// tripledes uses keys with exactly 192 bits (24 bytes)
$keys = array(
- b'12345678',
- b'12345678901234567890',
- b'123456789012345678901234',
+ b'12345678',
+ b'12345678901234567890',
+ b'123456789012345678901234',
b'12345678901234567890123456'
);
$data1 = array(
@@ -36,8 +36,8 @@ $data1 = array(
);
// tripledes is a block cipher of 64 bits (8 bytes)
$ivs = array(
- b'1234',
- b'12345678',
+ b'1234',
+ b'12345678',
b'123456789'
);
$data2 = array(
@@ -62,7 +62,7 @@ for ($i = 0; $i < sizeof($ivs); $i++) {
function special_var_dump($str) {
var_dump(bin2hex($str));
-}
+}
?>
===DONE===
--EXPECTF--