Lines Matching refs:key_len
215 … char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const size_t key_len) { in php_hash_hmac_prep_key() argument
217 if (key_len > ops->block_size) { in php_hash_hmac_prep_key()
220 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key()
223 memcpy(K, key, key_len); in php_hash_hmac_prep_key()
241 size_t algo_len, data_len, key_len; in php_hash_do_hash_hmac() local
248 &key, &key_len, &raw_output) == FAILURE) { in php_hash_do_hash_hmac()
274 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
337 size_t algo_len, key_len = 0; in PHP_FUNCTION() local
344 if (zend_parse_parameters(argc, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) { in PHP_FUNCTION()
355 key_len <= 0) { in PHP_FUNCTION()
376 if (key_len > ops->block_size) { in PHP_FUNCTION()
378 ops->hash_update(context, (unsigned char *) key, key_len); in PHP_FUNCTION()
383 memcpy(K, key, key_len); in PHP_FUNCTION()