Lines Matching refs:iv
11 … Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string iv)
12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
16 … Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string iv)
17 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
21 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv)
22 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv
50 $iv = b'1234567890123456';
54 $res = mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv);
56 $res = mcrypt_cbc($cipher, $key, $res, MCRYPT_DECRYPT, $iv);
61 echo "\n--- testing different iv lengths\n";
62 foreach ($ivs as $iv) {
63 echo "\niv length=".strlen($iv)."\n";
64 $res = mcrypt_cbc($cipher, $key, $data, $mode, $iv);
66 $res = mcrypt_decrypt($cipher, $key, $res, MCRYPT_MODE_CBC, $iv);
101 --- testing different iv lengths
103 iv length=0
113 iv length=0
123 iv length=8
133 iv length=16
139 iv length=17