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
37 $iv = b'12345678';
41 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv)));
45 echo "\n--- testing different iv lengths\n";
46 foreach ($ivs as $iv) {
47 echo "\niv length=".strlen($iv)."\n";
48 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv)));
71 --- testing different iv lengths
73 iv length=4
78 iv length=8
81 iv length=9