/PHP-7.3/ext/hash/ |
H A D | hash_crc32.c | 47 PHP_HASH_API void PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context) in PHP_CRC32Final() 50 digest[3] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_CRC32Final() 51 digest[2] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_CRC32Final() 52 digest[1] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_CRC32Final() 53 digest[0] = (unsigned char) (context->state & 0xff); in PHP_CRC32Final() 57 PHP_HASH_API void PHP_CRC32BFinal(unsigned char digest[4], PHP_CRC32_CTX *context) in PHP_CRC32BFinal() 60 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_CRC32BFinal() 61 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_CRC32BFinal() 62 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_CRC32BFinal() 63 digest[3] = (unsigned char) (context->state & 0xff); in PHP_CRC32BFinal()
|
H A D | hash_adler32.c | 48 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) in PHP_ADLER32Final() 50 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_ADLER32Final() 51 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_ADLER32Final() 52 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_ADLER32Final() 53 digest[3] = (unsigned char) (context->state & 0xff); in PHP_ADLER32Final()
|
H A D | README | 5 $digest = hash($algoname, $message); 6 $digest = hash_file($algoname, $filename); 10 $digest = hash('md5', 'The quick brown fox jumped over the lazy dog.'); 16 $digest = hash_final($context);
|
H A D | php_hash_tiger.h | 34 PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context); 35 PHP_HASH_API void PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context); 36 PHP_HASH_API void PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context);
|
H A D | hash.c | 117 zend_string *digest; in php_hash_do_hash() local 234 zend_string *digest; in php_hash_do_hash_hmac() local 516 zend_string *digest; in PHP_FUNCTION() local 694 php_hash_hmac_round(digest, ops, context, K, digest, ops->digest_size); in PHP_FUNCTION() 697 digest, in PHP_FUNCTION() 708 efree(digest); in PHP_FUNCTION() 798 php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); in PHP_FUNCTION() 810 php_hash_hmac_round(digest, ops, context, K1, digest, ops->digest_size); in PHP_FUNCTION() 811 php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); in PHP_FUNCTION() 827 efree(digest); in PHP_FUNCTION() [all …]
|
H A D | hash_fnv.c | 90 PHP_HASH_API void PHP_FNV132Final(unsigned char digest[4], PHP_FNV132_CTX * context) in PHP_FNV132Final() 93 memcpy(digest, &context->state, 4); in PHP_FNV132Final() 99 digest[i] = c[3 - i]; in PHP_FNV132Final() 125 PHP_HASH_API void PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * context) in PHP_FNV164Final() 128 memcpy(digest, &context->state, 8); in PHP_FNV164Final() 134 digest[i] = c[7 - i]; in PHP_FNV164Final()
|
H A D | hash_joaat.c | 47 PHP_HASH_API void PHP_JOAATFinal(unsigned char digest[4], PHP_JOAAT_CTX * context) in PHP_JOAATFinal() 50 memcpy(digest, &context->state, 4); in PHP_JOAATFinal() 56 digest[i] = c[3 - i]; in PHP_JOAATFinal()
|
H A D | hash_whirlpool.c | 375 PHP_HASH_API void PHP_WHIRLPOOLFinal(unsigned char digest[64], PHP_WHIRLPOOL_CTX *context) in PHP_WHIRLPOOLFinal() 420 digest[0] = (unsigned char)(context->state[i] >> 56); in PHP_WHIRLPOOLFinal() 421 digest[1] = (unsigned char)(context->state[i] >> 48); in PHP_WHIRLPOOLFinal() 422 digest[2] = (unsigned char)(context->state[i] >> 40); in PHP_WHIRLPOOLFinal() 423 digest[3] = (unsigned char)(context->state[i] >> 32); in PHP_WHIRLPOOLFinal() 424 digest[4] = (unsigned char)(context->state[i] >> 24); in PHP_WHIRLPOOLFinal() 425 digest[5] = (unsigned char)(context->state[i] >> 16); in PHP_WHIRLPOOLFinal() 426 digest[6] = (unsigned char)(context->state[i] >> 8); in PHP_WHIRLPOOLFinal() 427 digest[7] = (unsigned char)(context->state[i] ); in PHP_WHIRLPOOLFinal() 428 digest += 8; in PHP_WHIRLPOOLFinal()
|
H A D | hash_sha3.c | 175 static void PHP_SHA3_Final(unsigned char* digest, in PHP_SHA3_Final() argument 189 memcpy(digest, ctx->state, bs); in PHP_SHA3_Final() 190 digest += bs; in PHP_SHA3_Final() 212 void PHP_SHA3##bits##Final(unsigned char* digest, \ 214 PHP_SHA3_Final(digest, ctx, \ 257 void PHP_SHA3##bits##Final(unsigned char* digest, \ 259 Keccak_HashFinal((Keccak_HashInstance *)ctx->hashinstance, digest); \
|
H A D | php_hash_fnv.h | 58 PHP_HASH_API void PHP_FNV132Final(unsigned char digest[16], PHP_FNV132_CTX * context); 63 PHP_HASH_API void PHP_FNV164Final(unsigned char digest[16], PHP_FNV164_CTX * context);
|
H A D | hash_sha.c | 82 php_hash_bin2hex(sha1str, digest, 20); in make_sha1_digest() 94 unsigned char digest[20]; in PHP_FUNCTION() local 102 PHP_SHA1Final(digest, &context); in PHP_FUNCTION() 104 RETURN_STRINGL(digest, 20); in PHP_FUNCTION() 122 unsigned char digest[20]; in PHP_FUNCTION() local 142 PHP_SHA1Final(digest, &context); in PHP_FUNCTION() 151 RETURN_STRINGL(digest, 20); in PHP_FUNCTION() 395 SHAEncode32(digest, context->state, 20); in PHP_SHA1Final() 604 SHAEncode32(digest, context->state, 28); in PHP_SHA224Final() 1069 memcpy(digest, full_digest, 32); in PHP_SHA512_256Final() [all …]
|
H A D | hash_tiger.c | 223 PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context) in PHP_TIGER128Final() 226 TigerDigest(digest, 16, context); in PHP_TIGER128Final() 230 PHP_HASH_API void PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context) in PHP_TIGER160Final() 233 TigerDigest(digest, 20, context); in PHP_TIGER160Final() 237 PHP_HASH_API void PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context) in PHP_TIGER192Final() 240 TigerDigest(digest, 24, context); in PHP_TIGER192Final()
|
H A D | hash_snefru.c | 172 PHP_HASH_API void PHP_SNEFRUFinal(unsigned char digest[32], PHP_SNEFRU_CTX *context) in PHP_SNEFRUFinal() 185 digest[j] = (unsigned char) ((context->state[i] >> 24) & 0xff); in PHP_SNEFRUFinal() 186 digest[j + 1] = (unsigned char) ((context->state[i] >> 16) & 0xff); in PHP_SNEFRUFinal() 187 digest[j + 2] = (unsigned char) ((context->state[i] >> 8) & 0xff); in PHP_SNEFRUFinal() 188 digest[j + 3] = (unsigned char) (context->state[i] & 0xff); in PHP_SNEFRUFinal()
|
H A D | hash_md.c | 101 php_hash_bin2hex(md5str, digest, 16); in make_digest() 113 unsigned char digest[16]; in PHP_NAMED_FUNCTION() local 121 PHP_MD5Final(digest, &context); in PHP_NAMED_FUNCTION() 123 RETURN_STRINGL(digest, 16); in PHP_NAMED_FUNCTION() 126 make_digest(Z_STRVAL_P(return_value), digest); in PHP_NAMED_FUNCTION() 140 unsigned char digest[16]; in PHP_NAMED_FUNCTION() local 160 PHP_MD5Final(digest, &context); in PHP_NAMED_FUNCTION() 169 RETURN_STRINGL(digest, 16); in PHP_NAMED_FUNCTION() 172 make_digest(Z_STRVAL_P(return_value), digest); in PHP_NAMED_FUNCTION() 341 Encode(digest, context->state, 16); in PHP_MD5Final() [all …]
|
H A D | php_hash_joaat.h | 28 PHP_HASH_API void PHP_JOAATFinal(unsigned char digest[16], PHP_JOAAT_CTX * context);
|
H A D | php_hash_adler32.h | 30 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context);
|
H A D | hash_haval.c | 321 PHP_HASH_API void PHP_HAVAL128Final(unsigned char *digest, PHP_HAVAL_CTX * context) in PHP_HAVAL128Final() argument 365 Encode(digest, context->state, 16); in PHP_HAVAL128Final() 375 PHP_HASH_API void PHP_HAVAL160Final(unsigned char *digest, PHP_HAVAL_CTX * context) in PHP_HAVAL160Final() argument 419 Encode(digest, context->state, 20); in PHP_HAVAL160Final() 429 PHP_HASH_API void PHP_HAVAL192Final(unsigned char *digest, PHP_HAVAL_CTX * context) in PHP_HAVAL192Final() argument 459 Encode(digest, context->state, 24); in PHP_HAVAL192Final() 469 PHP_HASH_API void PHP_HAVAL224Final(unsigned char *digest, PHP_HAVAL_CTX * context) in PHP_HAVAL224Final() argument 500 Encode(digest, context->state, 28); in PHP_HAVAL224Final() 510 PHP_HASH_API void PHP_HAVAL256Final(unsigned char *digest, PHP_HAVAL_CTX * context) in PHP_HAVAL256Final() argument 534 Encode(digest, context->state, 32); in PHP_HAVAL256Final()
|
/PHP-7.3/ext/standard/ |
H A D | md5.h | 23 PHPAPI void make_digest(char *md5str, const unsigned char *digest); 24 PHPAPI void make_digest_ex(char *md5str, const unsigned char *digest, int len);
|
H A D | md5.c | 26 make_digest_ex(md5str, digest, 16); in make_digest() 36 md5str[i * 2] = hexits[digest[i] >> 4]; in make_digest_ex() 37 md5str[(i * 2) + 1] = hexits[digest[i] & 0x0F]; in make_digest_ex() 50 unsigned char digest[16]; in PHP_NAMED_FUNCTION() local 60 PHP_MD5Final(digest, &context); in PHP_NAMED_FUNCTION() 62 RETURN_STRINGL((char *) digest, 16); in PHP_NAMED_FUNCTION() 65 make_digest_ex(Z_STRVAL_P(return_value), digest, 16); in PHP_NAMED_FUNCTION() 79 unsigned char digest[16]; in PHP_NAMED_FUNCTION() local 104 PHP_MD5Final(digest, &context); in PHP_NAMED_FUNCTION() 111 PHP_MD5Final(digest, &context); in PHP_NAMED_FUNCTION() [all …]
|
H A D | sha1.c | 26 PHPAPI void make_sha1_digest(char *sha1str, unsigned char *digest) in make_sha1_digest() argument 28 make_digest_ex(sha1str, digest, 20); in make_sha1_digest() 38 unsigned char digest[20]; in PHP_FUNCTION() local 48 PHP_SHA1Final(digest, &context); in PHP_FUNCTION() 50 RETURN_STRINGL((char *) digest, 20); in PHP_FUNCTION() 53 make_digest_ex(Z_STRVAL_P(return_value), digest, 20); in PHP_FUNCTION() 69 unsigned char digest[20]; in PHP_FUNCTION() local 91 PHP_SHA1Final(digest, &context); in PHP_FUNCTION() 96 RETURN_STRINGL((char *) digest, 20); in PHP_FUNCTION() 99 make_digest_ex(Z_STRVAL_P(return_value), digest, 20); in PHP_FUNCTION() [all …]
|
H A D | sha1.h | 34 PHPAPI void make_sha1_digest(char *sha1str, unsigned char *digest);
|
/PHP-7.3/ext/phar/ |
H A D | util.c | 1601 unsigned char digest[64]; in phar_verify_signature() local 1630 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature() 1637 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature() 1641 unsigned char digest[32]; in phar_verify_signature() local 1670 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature() 1677 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature() 1689 unsigned char digest[20]; in phar_verify_signature() local 1718 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature() 1725 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature() 1758 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature() [all …]
|
/PHP-7.3/ext/hash/tests/ |
H A D | crc32.phpt | 10 echo hash('crc32', 'message digest'), "\n"; 17 echo hash('crc32b', 'message digest'), "\n";
|
/PHP-7.3/ext/standard/tests/strings/ |
H A D | sha1_basic.phpt | 16 var_dump(sha1("message digest")); 25 var_dump(sha1("message digest", false)); 34 var_dump(bin2hex(sha1("message digest", true)));
|
/PHP-7.3/ext/soap/ |
H A D | php_http.c | 663 zval *digest; in make_http_soap_request() local 667 if (Z_TYPE_P(digest) == IS_ARRAY) { in make_http_soap_request() 687 add_assoc_long(digest, "nc", 1); in make_http_soap_request() 1171 zval *digest, *login, *password; in make_http_soap_request() local 1177 Z_TYPE_P(digest) != IS_ARRAY) && in make_http_soap_request() 1183 zval digest; in make_http_soap_request() local 1185 ZVAL_UNDEF(&digest); in make_http_soap_request() 1214 if (Z_TYPE(digest) == IS_UNDEF) { in make_http_soap_request() 1215 array_init(&digest); in make_http_soap_request() 1221 if (Z_TYPE(digest) != IS_UNDEF) { in make_http_soap_request() [all …]
|