Lines Matching refs:key
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
41 echo "\n--- testing different key lengths\n";
42 foreach ($keys as $key) {
43 echo "\nkey length=".strlen($key)."\n";
44 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv)));
47 $key = b"1234567890123456\0\0\0\0\0\0\0\0";
51 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv)));
58 --- testing different key lengths
60 key length=8
65 key length=20
70 key length=24
73 key length=26