diff options
Diffstat (limited to 'ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt')
-rw-r--r-- | ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt b/ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt index 68f056c510..2c90652b81 100644 --- a/ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt +++ b/ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt @@ -1,19 +1,19 @@ --TEST-- -Test mcrypt_ecb() function : basic functionality +Test mcrypt_ecb() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded("mcrypt")) { - print "skip - mcrypt extension not loaded"; -} + print "skip - mcrypt extension not loaded"; +} ?> --FILE-- <?php error_reporting(E_ALL); /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv) - * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv + * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv * Source code: ext/mcrypt/mcrypt.c - * Alias to functions: + * Alias to functions: */ $cipher = MCRYPT_TRIPLEDES; @@ -21,15 +21,15 @@ $data = b"This is the secret message which must be encrypted"; // tripledes uses keys up to 192 bits (24 bytes) $keys = array( - b'12345678', - b'12345678901234567890', - b'123456789012345678901234', + b'12345678', + b'12345678901234567890', + b'123456789012345678901234', b'12345678901234567890123456' ); // tripledes is a block cipher of 64 bits (8 bytes) $ivs = array( - b'1234', - b'12345678', + b'1234', + b'12345678', b'123456789' ); |