Lines Matching refs:iv
13 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv)
14 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv
40 $iv = b'12345678';
44 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv)));
48 echo "\n--- testing different iv lengths\n";
49 foreach ($ivs as $iv) {
50 echo "\niv length=".strlen($iv)."\n";
51 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv)));
74 --- testing different iv lengths
76 iv length=4
79 iv length=8
82 iv length=9