Lines Matching refs:key
11 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv)
12 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv
39 echo "\n--- testing different key lengths\n";
40 foreach ($keys as $key) {
41 echo "\nkey length=".strlen($key)."\n";
42 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv)));
45 $key = b'1234567890123456';
49 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv)));
56 --- testing different key lengths
58 key length=8
61 key length=20
64 key length=24
67 key length=26
69 Warning: mcrypt_ecb(): Size of key is too large for this algorithm in %s on line %d