Lines Matching refs:key
11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i…
12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
31 echo "\n--- testing different key lengths\n";
32 foreach ($keys as $key) {
33 echo "\nkey length=".strlen($key)."\n";
34 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode)));
37 $key = b'12345678';
48 var_dump(bin2hex(mcrypt_encrypt($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_encrypt(): Size of key is too large for this algorithm in %s on line %d