Lines Matching refs:use_key_length
1176 int block_size, max_key_length, use_key_length, i, count, iv_size; in php_mcrypt_do_crypt() local
1197 use_key_length = key_len; in php_mcrypt_do_crypt()
1198 key_s = emalloc(use_key_length); in php_mcrypt_do_crypt()
1199 memset(key_s, 0, use_key_length); in php_mcrypt_do_crypt()
1200 memcpy(key_s, key, use_key_length); in php_mcrypt_do_crypt()
1205 use_key_length = key_length_sizes[0]; in php_mcrypt_do_crypt()
1207 use_key_length = max_key_length; /* start with max key length */ in php_mcrypt_do_crypt()
1210 key_length_sizes[i] < use_key_length) in php_mcrypt_do_crypt()
1212 use_key_length = key_length_sizes[i]; in php_mcrypt_do_crypt()
1215 key_s = emalloc(use_key_length); in php_mcrypt_do_crypt()
1216 memset(key_s, 0, use_key_length); in php_mcrypt_do_crypt()
1217 memcpy(key_s, key, MIN(key_len, use_key_length)); in php_mcrypt_do_crypt()
1255 if (mcrypt_generic_init(td, key_s, use_key_length, iv_s) < 0) { in php_mcrypt_do_crypt()