diff options
Diffstat (limited to 'ext/mcrypt/tests/mcrypt_encrypt_3des_cbc.phpt')
-rw-r--r-- | ext/mcrypt/tests/mcrypt_encrypt_3des_cbc.phpt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/mcrypt/tests/mcrypt_encrypt_3des_cbc.phpt b/ext/mcrypt/tests/mcrypt_encrypt_3des_cbc.phpt index 15b3c886fa..0cc92890bd 100644 --- a/ext/mcrypt/tests/mcrypt_encrypt_3des_cbc.phpt +++ b/ext/mcrypt/tests/mcrypt_encrypt_3des_cbc.phpt @@ -1,17 +1,17 @@ --TEST-- -Test mcrypt_encrypt() function : TripleDES functionality +Test mcrypt_encrypt() function : TripleDES 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_encrypt(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_encrypt() : TripleDES functionality ***\n"; @@ -20,7 +20,7 @@ echo "*** Testing mcrypt_encrypt() : TripleDES functionality ***\n"; //test encrypt decrypt //test tripledes, aes //test different lengths of key, iv -//test no iv being passed on CBC, ECB +//test no iv being passed on CBC, ECB //test up to 32 bytes with unlimited strength $cipher = MCRYPT_TRIPLEDES; @@ -29,15 +29,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' ); |