Home
last modified time | relevance | path

Searched refs:algo (Results 1 – 25 of 61) sorted by path

123

/php-src/ext/fileinfo/tests/
H A Dmagic24315 >72 string x \b, algo %s
32057 # crypto algo mapper
32070 # hash algo mapper
H A Dmagic私はガラスを食べられます24315 >72 string x \b, algo %s
32057 # crypto algo mapper
32070 # hash algo mapper
/php-src/ext/hash/
H A Dbench.php8 foreach (hash_algos() as $algo) {
9 $time[$algo] = 0;
13 foreach (hash_algos() as $algo) {
16 hash($algo, $data);
18 $time[$algo] += hrtime(true)-$start;
H A Dconfig.m413 AC_DEFINE(HAVE_SLOW_HASH3, 1, [Define if hash3 algo is available])
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 Dphp_hash.h42 const char *algo; member
148 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(zend_string *algo);
149 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops);
/php-src/ext/hash/tests/
H A Dhash-clone.phpt8 foreach ($algos as $algo) {
9 var_dump($algo);
10 $orig = hash_init($algo);
18 foreach ($algos as $algo) {
19 var_dump($algo);
20 $orig = hash_init($algo);
H A Dhash_copy_001.phpt8 foreach ($algos as $algo) {
9 var_dump($algo);
10 $orig = hash_init($algo);
18 foreach ($algos as $algo) {
19 var_dump($algo);
20 $orig = hash_init($algo);
H A Dhash_error.phpt20 hash(): Argument #1 ($algo) must be a valid hashing algorithm
H A Dhash_file_error.phpt37 hash_file(): Argument #1 ($algo) must be a valid hashing algorithm
H A Dhash_hkdf_edges.phpt13 echo "Non-crypto algo name case-sensitivity:\n";
28 Non-crypto algo name case-sensitivity:
29 [Error] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
H A Dhash_hkdf_error.phpt51 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
54 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
55 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
56 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
57 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
58 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
59 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
60 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
61 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
H A Dhash_hmac_error.phpt35 hash_hmac(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
38 hash_hmac(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
H A Dhash_hmac_file_error.phpt40 hash_hmac_file(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
43 hash_hmac_file(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
H A Dhash_init_error.phpt44 hash_init(): Argument #1 ($algo) must be a valid hashing algorithm
47 hash_init(): Argument #1 ($algo) must be a cryptographic hashing algorithm if HMAC is requested
H A Dhash_pbkdf2_error.phpt59 hash_pbkdf2(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
62 hash_pbkdf2(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
H A Dhash_serialize_001.phpt8 foreach ($algos as $algo) {
9 if (not_serializable($algo)) continue;
10 var_dump($algo);
11 $ctx0 = hash_init($algo);
26 foreach ($algos as $algo) {
27 if (not_serializable($algo)) continue;
28 var_dump($algo);
29 $orig = hash_init($algo);
33 $fresh = hash_init($algo);
42 function not_serializable(string $algo)
[all …]
H A Dhash_serialize_002.phpt10 foreach ($algos as $algo) {
11 if (in_array($algo, $non_crypto)) {
15 var_dump($algo);
16 $ctx0 = hash_init($algo, HASH_HMAC, $key);
H A Dhash_serialize_003.phpt230 function test_serialization($serial, $hash, $algo) {
236 echo "$algo: unexpected hash $hash2 for serialization {$serial}\n";
239 echo "$algo: problem with serialization {$serial}\n";
245 $algo = $slist[0];
246 $hash = hash($algo, "I can't remember anythingCan’t tell if this is true or dream");
248 $ctx = hash_init($algo);
252 echo "$algo: unexpected serialization $serial\n";
255 test_serialization($serial, $hash, $algo);
H A Dhaval.phpt8 $algo = sprintf('haval%d,%d',$bits,$pass);
9 echo $algo . ': ' . hash($algo,'') . "\n";
15 $algo = sprintf('haval%d,%d',$bits,$pass);
16 echo $algo . ': ' . hash($algo,'abc') . "\n";
22 $algo = sprintf('haval%d,%d',$bits,$pass);
23 …echo $algo . ': ' . hash($algo,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789abcde…
H A Dmhash_004.phpt8 $algo = MHASH_MD5;
9 var_dump($algo);
10 var_dump(bin2hex(mhash($algo, "test")));
11 var_dump($algo);
H A Dsensitive_parameter.phpt21 ValueError: hash_hmac(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm in %s:…
/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()

Completed in 218 milliseconds

123