Lines Matching refs:use_key_length
1172 int block_size, max_key_length, use_key_length, i, count, iv_size; in php_mcrypt_do_crypt() local
1193 use_key_length = key_len; in php_mcrypt_do_crypt()
1194 key_s = emalloc(use_key_length); in php_mcrypt_do_crypt()
1195 memset(key_s, 0, use_key_length); in php_mcrypt_do_crypt()
1196 memcpy(key_s, key, use_key_length); in php_mcrypt_do_crypt()
1201 use_key_length = key_length_sizes[0]; in php_mcrypt_do_crypt()
1203 use_key_length = max_key_length; /* start with max key length */ in php_mcrypt_do_crypt()
1206 key_length_sizes[i] < use_key_length) in php_mcrypt_do_crypt()
1208 use_key_length = key_length_sizes[i]; in php_mcrypt_do_crypt()
1211 key_s = emalloc(use_key_length); in php_mcrypt_do_crypt()
1212 memset(key_s, 0, use_key_length); in php_mcrypt_do_crypt()
1213 memcpy(key_s, key, MIN(key_len, use_key_length)); in php_mcrypt_do_crypt()
1251 if (mcrypt_generic_init(td, key_s, use_key_length, iv_s) < 0) { in php_mcrypt_do_crypt()