Lines Matching refs:key
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
38 echo "\n--- testing different key lengths\n";
39 foreach ($keys as $key) {
40 echo "\nkey length=".strlen($key)."\n";
41 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv)));
44 $key = b'123456789012345678901234';
48 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv)));
55 --- testing different key lengths
57 key length=8
64 key length=20
71 key length=24
76 key length=26