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
16 …/* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string …
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
26 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv)
27 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv
49 echo "\n--- testing different key lengths\n";
50 foreach ($keys as $key) {
51 echo "\nkey length=".strlen($key)."\n";
52 $res = mcrypt_encrypt($cipher, $key, $data, MCRYPT_MODE_CBC, $iv);
54 $res = mcrypt_decrypt($cipher, $key, $res, MCRYPT_MODE_CBC, $iv);
62 --- testing different key lengths
64 key length=20
72 key length=24
76 key length=30
84 key length=32
88 key length=40