Lines Matching refs:key_len
221 …ned char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const int key_len) { in php_hash_hmac_prep_key() argument
223 if (key_len > ops->block_size) { in php_hash_hmac_prep_key()
226 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key()
229 memcpy(K, key, key_len); in php_hash_hmac_prep_key()
245 int algo_len, data_len, key_len; in php_hash_do_hash_hmac() local
252 &key, &key_len, &raw_output) == FAILURE) { in php_hash_do_hash_hmac()
278 php_hash_hmac_prep_key((unsigned char *) K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
341 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
347 …if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == F… in PHP_FUNCTION()
358 key_len <= 0) { in PHP_FUNCTION()
379 if (key_len > ops->block_size) { in PHP_FUNCTION()
381 ops->hash_update(context, (unsigned char *) key, key_len); in PHP_FUNCTION()
386 memcpy(K, key, key_len); in PHP_FUNCTION()