Lines Matching refs:iv
11 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv)
12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv
33 $iv = b'12345678';
37 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv)));
41 echo "\n--- testing different iv lengths\n";
42 foreach ($ivs as $iv) {
43 echo "\niv length=".strlen($iv)."\n";
44 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv)));
69 --- testing different iv lengths
71 iv length=4
76 iv length=8
79 iv length=9