Home
last modified time | relevance | path

Searched refs:algo (Results 1 – 25 of 61) sorted by last modified time

123

/php-src/ext/standard/
H A Darray.c3215 const php_random_algo *algo = engine.algo; local
3258 rnd_idx = algo->range(state, 0, n_left);
3286 rnd_idx = algo->range(state, 0, n_left);
6198 const php_random_algo *algo = engine.algo; local
6225 randval = algo->range(state, 0, num_avail - 1);
6248 randval = algo->range(state, 0, ht->nNumUsed - 1);
6260 randval = algo->range(state, 0, ht->nNumUsed - 1);
6298 randval = algo->range(state, 0, num_avail - 1);
H A Dbasic_functions.stub.php3326 function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {}
H A Dbasic_functions_arginfo.h1767 ZEND_ARG_TYPE_MASK(0, algo, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_NULL, NULL)
1773 ZEND_ARG_TYPE_MASK(0, algo, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_NULL, NULL)
H A Dpassword.c531 const php_password_algo *algo; in php_password_algo_identify_ex() local
540 return (!algo || (algo->valid && !algo->valid(hash))) ? default_algo : algo; in php_password_algo_identify_ex()
546 const php_password_algo *algo; in PHP_FUNCTION() local
559 if (!algo || (algo->valid && !algo->valid(hash))) { in PHP_FUNCTION()
573 if (algo->get_info) { in PHP_FUNCTION()
574 algo->get_info(&options, hash); in PHP_FUNCTION()
617 const php_password_algo *algo; in PHP_FUNCTION() local
625 RETURN_BOOL(algo && (!algo->verify || algo->verify(password, hash))); in PHP_FUNCTION()
636 const php_password_algo *algo; in PHP_FUNCTION() local
647 if (!algo) { in PHP_FUNCTION()
[all …]
H A Dstring.c5958 const php_random_algo *algo = engine.algo; local
5975 rnd_idx = algo->range(state, 0, n_left);
H A Dconfig.m4268 AC_MSG_ERROR([Cannot use external libcrypt as some algo are missing])
/php-src/ext/hash/
H A Dhash.c117 size_t algo_len = strlen(algo); in php_hash_register_algo()
366 ops = php_hash_fetch_ops(algo); in php_hash_do_hash()
424 zend_string *algo; in PHP_FUNCTION() local
431 Z_PARAM_STR(algo) in PHP_FUNCTION()
446 zend_string *algo; in PHP_FUNCTION() local
453 Z_PARAM_STR(algo) in PHP_FUNCTION()
581 zend_string *algo; in PHP_FUNCTION() local
598 zend_string *algo; in PHP_FUNCTION() local
1202 zend_string *algo = NULL; in PHP_FUNCTION() local
1224 if (algo) { in PHP_FUNCTION()
[all …]
H A Dhash.stub.php12 function hash(string $algo, string $data, bool $binary = false, array $options = []): string {} argument
15 function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): stri… argument
20 function hash_hmac(string $algo, string $data, #[\SensitiveParameter] string $key, bool $binary = f… argument
25 function hash_hmac_file(string $algo, string $filename, #[\SensitiveParameter] string $key, bool $b… argument
30 function hash_init(string $algo, int $flags = 0, #[\SensitiveParameter] string $key = "", array $op… argument
63 function hash_pbkdf2(string $algo, #[\SensitiveParameter] string $password, string $salt, int $iter…
70 function hash_hkdf(string $algo, #[\SensitiveParameter] string $key, int $length = 0, string $info …
74 function mhash_get_block_size(int $algo): int|false {}
80 function mhash_get_hash_name(int $algo): string|false {}
86 function mhash_keygen_s2k(int $algo, string $password, string $salt, int $length): string|false {}
[all …]
H A Dhash_arginfo.h5 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
12 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
19 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
26 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
33 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
71 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
86 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
95 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
101 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
107 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
[all …]
H A Dconfig.m413 AC_DEFINE(HAVE_SLOW_HASH3, 1, [Define if hash3 algo is available])
/php-src/ext/random/
H A Dengine_user.c71 .algo = &php_random_algo_user, in range()
H A Dengine_xoshiro256starstar.c116 .algo = &php_random_algo_xoshiro256starstar, in range()
H A Dengine_combinedlcg.c68 .algo = &php_random_algo_combinedlcg, in range()
H A Dengine_mt19937.c169 .algo = &php_random_algo_mt19937, in range()
299 php_random_result generated = engine.algo->generate(engine.state); in PHP_METHOD()
333 if (!engine->engine.algo->serialize(engine->engine.state, Z_ARRVAL(t))) { in PHP_METHOD()
376 if (!engine->engine.algo->unserialize(engine->engine.state, Z_ARRVAL_P(t))) { in PHP_METHOD()
396 if (engine->engine.algo->serialize) { in PHP_METHOD()
398 if (!engine->engine.algo->serialize(engine->engine.state, Z_ARRVAL(t))) { in PHP_METHOD()
H A Dengine_pcgoneseq128xslrr64.c61 .algo = &php_random_algo_pcgoneseq128xslrr64, in range()
H A Drandom.c81 const php_random_algo *algo = engine.algo; in php_random_range32() local
91 php_random_result r = algo->generate(state); in php_random_range32()
126 php_random_result r = algo->generate(state); in php_random_range32()
140 const php_random_algo *algo = engine.algo; in php_random_range64() local
150 php_random_result r = algo->generate(state); in php_random_range64()
185 php_random_result r = algo->generate(state); in php_random_range64()
239 return algo->state_size > 0 ? pecalloc(1, algo->state_size, persistent) : NULL; in php_random_status_alloc()
244 return memcpy(new_status, old_status, algo->state_size); in php_random_status_copy()
260 .algo = algo, in php_random_engine_common_init()
261 .state = php_random_status_alloc(algo, false) in php_random_engine_common_init()
[all …]
H A Dphp_random.h107 const php_random_algo *algo; member
157 PHPAPI void *php_random_status_alloc(const php_random_algo *algo, const bool persistent);
158 PHPAPI void *php_random_status_copy(const php_random_algo *algo, void *old_status, void *new_status…
160 …ine_common_init(zend_class_entry *ce, zend_object_handlers *handlers, const php_random_algo *algo);
172 .algo = php_random_default_algo(), in php_random_default_engine()
H A Drandomizer.c41 .algo = &php_random_algo_user, in randomizer_common_init()
106 php_random_result r = engine.algo->generate(engine.state); in PHP_METHOD()
217 php_random_result result = engine.algo->generate(engine.state); in PHP_METHOD()
250 engine.algo->range == php_random_algo_mt19937.range in PHP_METHOD()
262 result = engine.algo->range(engine.state, min, max); in PHP_METHOD()
295 php_random_result result = engine.algo->generate(engine.state); in PHP_METHOD()
414 uint64_t offset = engine.algo->range(engine.state, 0, max_offset); in PHP_METHOD()
435 php_random_result result = engine.algo->generate(engine.state); in PHP_METHOD()
/php-src/ext/openssl/
H A Dopenssl.c919 static const EVP_CIPHER * php_openssl_get_evp_cipher_from_algo(zend_long algo);
1135 static EVP_MD * php_openssl_get_evp_md_from_algo(zend_long algo) { /* {{{ */ in php_openssl_get_evp_md_from_algo() argument
1138 switch (algo) { in php_openssl_get_evp_md_from_algo()
1185 static const EVP_CIPHER * php_openssl_get_evp_cipher_from_algo(zend_long algo) { /* {{{ */ in php_openssl_get_evp_cipher_from_algo() argument
1186 switch (algo) { in php_openssl_get_evp_cipher_from_algo()
1576 zend_long algo = OPENSSL_ALGO_MD5; in PHP_FUNCTION() local
1583 …D_NUM_ARGS(), "Os|l", &zpkey, php_openssl_pkey_ce, &challenge, &challenge_len, &algo) == FAILURE) { in PHP_FUNCTION()
1598 mdtype = php_openssl_get_evp_md_from_algo(algo); in PHP_FUNCTION()
/php-src/ext/session/
H A Dsession.c2871 .algo = &php_random_algo_pcgoneseq128xslrr64, in PHP_GINIT_FUNCTION()
/php-src/ext/phar/
H A Dphar_object.stub.php199 public function setSignatureAlgorithm(int $algo, ?string $privateKey = null): void {} argument
473 public function setSignatureAlgorithm(int $algo, ?string $privateKey = null): void {} argument
H A Dphar_object_arginfo.h150 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
H A Dphar_object.c3011 zend_long algo; in PHP_METHOD() local
3015 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|s!", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD()
3027 switch (algo) { in PHP_METHOD()
3039 phar_obj->archive->sig_flags = (php_uint32)algo; in PHP_METHOD()
/php-src/ext/phar/phar/
H A Dpharcommand.inc74 'inf' => '<algo> Compression algorithm.',
/php-src/ext/sodium/
H A Dlibsodium_arginfo.h298 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, algo, IS_LONG, 0, "SODIUM_CRYPTO_PWHASH_ALG_DEFAULT")

Completed in 162 milliseconds

123