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)));
79 --- testing different iv lengths
81 iv length=4
88 iv length=8
93 iv length=9