Searched defs:digest (Results 1 - 20 of 20) sorted by relevance

/PHP_5_3/ext/hash/
H A Dhash.c122 char *algo, *data, *digest; local
161 digest = emalloc(ops->digest_size + 1);
162 ops->hash_final((unsigned char *) digest, context);
166 digest[ops->digest_size] = 0;
167 RETURN_STRINGL(digest, ops->digest_size, 0);
171 php_hash_bin2hex(hex_digest, (unsigned char *) digest, ops->digest_size);
173 efree(digest);
199 char *algo, *data, *digest, *key, *K; local
258 digest = emalloc(ops->digest_size + 1);
259 ops->hash_final((unsigned char *) digest, contex
474 char *digest; local
776 char *key, *digest; local
[all...]
H A Dhash_adler32.c43 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) argument
45 digest[0] = (unsigned char) ((context->state >> 24) & 0xff);
46 digest[1] = (unsigned char) ((context->state >> 16) & 0xff);
47 digest[2] = (unsigned char) ((context->state >> 8) & 0xff);
48 digest[3] = (unsigned char) (context->state & 0xff);
H A Dhash_crc32.c49 PHP_HASH_API void PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context) argument
52 digest[3] = (unsigned char) ((context->state >> 24) & 0xff);
53 digest[2] = (unsigned char) ((context->state >> 16) & 0xff);
54 digest[1] = (unsigned char) ((context->state >> 8) & 0xff);
55 digest[0] = (unsigned char) (context->state & 0xff);
59 PHP_HASH_API void PHP_CRC32BFinal(unsigned char digest[4], PHP_CRC32_CTX *context) argument
62 digest[0] = (unsigned char) ((context->state >> 24) & 0xff);
63 digest[1] = (unsigned char) ((context->state >> 16) & 0xff);
64 digest[2] = (unsigned char) ((context->state >> 8) & 0xff);
65 digest[
[all...]
H A Dhash_gost.c282 PHP_HASH_API void PHP_GOSTFinal(unsigned char digest[32], PHP_GOST_CTX *context) argument
296 digest[j] = (unsigned char) (context->state[i] & 0xff);
297 digest[j + 1] = (unsigned char) ((context->state[i] >> 8) & 0xff);
298 digest[j + 2] = (unsigned char) ((context->state[i] >> 16) & 0xff);
299 digest[j + 3] = (unsigned char) ((context->state[i] >> 24) & 0xff);
H A Dhash_haval.c166 /* Update digest */
203 /* Update digest */
242 /* Update digest */
323 PHP_HASH_API void PHP_HAVAL128Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
343 /* Append version, passes, digest length, and message length */
346 /* Store state in digest */
367 Encode(digest, context->state, 16);
377 PHP_HASH_API void PHP_HAVAL160Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
397 /* Append version, passes, digest length, and message length */
400 /* Store state in digest */
431 PHP_HAVAL192Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
471 PHP_HAVAL224Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
512 PHP_HAVAL256Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
[all...]
H A Dhash_md.c98 PHP_HASH_API void make_digest(char *md5str, unsigned char *digest) argument
100 php_hash_bin2hex(md5str, digest, 16);
113 unsigned char digest[16]; local
122 PHP_MD5Final(digest, &context);
124 RETURN_STRINGL(digest, 16, 1);
126 make_digest(md5str, digest);
142 unsigned char digest[16]; local
162 PHP_MD5Final(digest, &context);
171 RETURN_STRINGL(digest, 16, 1);
173 make_digest(md5str, digest);
325 PHP_MD5Final(unsigned char digest[16], PHP_MD5_CTX * context) argument
583 PHP_MD4Final(unsigned char digest[16], PHP_MD4_CTX * context) argument
[all...]
H A Dhash_ripemd.c252 ripemd128 block update operation. Continues a ripemd128 message-digest
350 ripemd256 block update operation. Continues a ripemd256 message-digest
449 ripemd160 block update operation. Continues a ripemd160 message-digest
557 ripemd320 block update operation. Continues a ripemd320 message-digest
621 ripemd128 finalization. Ends a ripemd128 message-digest operation, writing the
622 the message digest and zeroizing the context.
624 PHP_HASH_API void PHP_RIPEMD128Final(unsigned char digest[16], PHP_RIPEMD128_CTX * context) argument
648 /* Store state in digest */
649 RIPEMDEncode(digest, context->state, 16);
658 ripemd256 finalization. Ends a ripemd256 message-digest operatio
661 PHP_RIPEMD256Final(unsigned char digest[32], PHP_RIPEMD256_CTX * context) argument
698 PHP_RIPEMD160Final(unsigned char digest[20], PHP_RIPEMD160_CTX * context) argument
735 PHP_RIPEMD320Final(unsigned char digest[40], PHP_RIPEMD320_CTX * context) argument
[all...]
H A Dhash_salsa.c179 PHP_HASH_API void PHP_SALSAFinal(unsigned char digest[64], PHP_SALSA_CTX *context) argument
188 digest[j] = (unsigned char) ((context->state[i] >> 24) & 0xff);
189 digest[j + 1] = (unsigned char) ((context->state[i] >> 16) & 0xff);
190 digest[j + 2] = (unsigned char) ((context->state[i] >> 8) & 0xff);
191 digest[j + 3] = (unsigned char) (context->state[i] & 0xff);
H A Dhash_sha.c81 PHP_HASH_API void make_sha1_digest(char *sha1str, unsigned char *digest) argument
83 php_hash_bin2hex(sha1str, digest, 20);
96 unsigned char digest[20]; local
105 PHP_SHA1Final(digest, &context);
107 RETURN_STRINGL(digest, 20, 1);
109 make_sha1_digest(sha1str, digest);
126 unsigned char digest[20]; local
146 PHP_SHA1Final(digest, &context);
155 RETURN_STRINGL(digest, 20, 1);
157 make_sha1_digest(sha1str, digest);
374 PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) argument
581 PHP_SHA224Final(unsigned char digest[28], PHP_SHA224_CTX * context) argument
658 PHP_SHA256Final(unsigned char digest[32], PHP_SHA256_CTX * context) argument
872 PHP_SHA384Final(unsigned char digest[48], PHP_SHA384_CTX * context) argument
986 PHP_SHA512Final(unsigned char digest[64], PHP_SHA512_CTX * context) argument
[all...]
H A Dhash_snefru.c174 PHP_HASH_API void PHP_SNEFRUFinal(unsigned char digest[32], PHP_SNEFRU_CTX *context) argument
187 digest[j] = (unsigned char) ((context->state[i] >> 24) & 0xff);
188 digest[j + 1] = (unsigned char) ((context->state[i] >> 16) & 0xff);
189 digest[j + 2] = (unsigned char) ((context->state[i] >> 8) & 0xff);
190 digest[j + 3] = (unsigned char) (context->state[i] & 0xff);
H A Dhash_tiger.c216 PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context) argument
220 digest[0] = (unsigned char) ((context->state[0] >> 56) & 0xff);
221 digest[1] = (unsigned char) ((context->state[0] >> 48) & 0xff);
222 digest[2] = (unsigned char) ((context->state[0] >> 40) & 0xff);
223 digest[3] = (unsigned char) ((context->state[0] >> 32) & 0xff);
224 digest[4] = (unsigned char) ((context->state[0] >> 24) & 0xff);
225 digest[5] = (unsigned char) ((context->state[0] >> 16) & 0xff);
226 digest[6] = (unsigned char) ((context->state[0] >> 8) & 0xff);
227 digest[7] = (unsigned char) (context->state[0] & 0xff);
228 digest[
240 PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context) argument
268 PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context) argument
[all...]
H A Dhash_whirlpool.c377 PHP_HASH_API void PHP_WHIRLPOOLFinal(unsigned char digest[64], PHP_WHIRLPOOL_CTX *context) argument
419 * return the completed message digest:
422 digest[0] = (unsigned char)(context->state[i] >> 56);
423 digest[1] = (unsigned char)(context->state[i] >> 48);
424 digest[2] = (unsigned char)(context->state[i] >> 40);
425 digest[3] = (unsigned char)(context->state[i] >> 32);
426 digest[4] = (unsigned char)(context->state[i] >> 24);
427 digest[5] = (unsigned char)(context->state[i] >> 16);
428 digest[6] = (unsigned char)(context->state[i] >> 8);
429 digest[
[all...]
/PHP_5_3/ext/soap/
H A Dphp_http.c565 zval **digest; local
568 if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"), (void **)&digest) == SUCCESS) {
569 if (Z_TYPE_PP(digest) == IS_ARRAY) {
580 if (zend_hash_find(Z_ARRVAL_PP(digest), "nc", sizeof("nc"), (void **)&tmp) == SUCCESS &&
585 add_assoc_long(*digest, "nc", 1);
592 if (zend_hash_find(Z_ARRVAL_PP(digest), "realm", sizeof("realm"), (void **)&tmp) == SUCCESS &&
603 if (zend_hash_find(Z_ARRVAL_PP(digest), "algorithm", sizeof("algorithm"), (void **)&tmp) == SUCCESS &&
610 if (zend_hash_find(Z_ARRVAL_PP(digest), "nonce", sizeof("nonce"), (void **)&tmp) == SUCCESS &&
634 if (zend_hash_find(Z_ARRVAL_PP(digest), "qop", sizeof("qop"), (void **)&tmp) == SUCCESS &&
648 if (zend_hash_find(Z_ARRVAL_PP(digest), "nonc
1065 zval **digest, **login, **password; local
1077 zval *digest = NULL; local
[all...]
H A Dphp_sdl.c3228 unsigned char digest[16]; local
3237 PHP_MD5Final(digest, &context);
3238 make_digest(md5str, digest);
/PHP_5_3/ext/standard/
H A Dmd5.c26 PHPAPI void make_digest(char *md5str, const unsigned char *digest) /* {{{ */ argument
28 make_digest_ex(md5str, digest, 16);
32 PHPAPI void make_digest_ex(char *md5str, const unsigned char *digest, int len) /* {{{ */ argument
38 md5str[i * 2] = hexits[digest[i] >> 4];
39 md5str[(i * 2) + 1] = hexits[digest[i] & 0x0F];
54 unsigned char digest[16]; local
63 PHP_MD5Final(digest, &context);
65 RETURN_STRINGL(digest, 16, 1);
67 make_digest_ex(md5str, digest, 16);
83 unsigned char digest[1 local
[all...]
H A Dsha1.c28 PHPAPI void make_sha1_digest(char *sha1str, unsigned char *digest) argument
30 make_digest_ex(sha1str, digest, 20);
42 unsigned char digest[20]; local
51 PHP_SHA1Final(digest, &context);
53 RETURN_STRINGL(digest, 20, 1);
55 make_digest_ex(sha1str, digest, 20);
73 unsigned char digest[20]; local
93 PHP_SHA1Final(digest, &context);
102 RETURN_STRINGL(digest, 20, 1);
104 make_digest_ex(sha1str, digest, 2
224 PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) argument
[all...]
/PHP_5_3/ext/phar/
H A Dphar.c839 unsigned char digest[64]; local
844 if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) {
853 if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error TSRMLS_CC)) {
866 unsigned char digest[32]; local
871 if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) {
880 if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA256, (char *)digest, 3
904 unsigned char digest[20]; local
931 unsigned char digest[16]; local
3168 char *digest = NULL; local
[all...]
H A Dutil.c1641 static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC) /* {{{ */ argument
1649 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] >> 4];
1650 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] & 0x0F];
1922 unsigned char digest[64]; local
1942 PHP_SHA512Final(digest, &context);
1944 if (memcmp(digest, sig, sizeof(digest))) {
1951 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC);
1955 unsigned char digest[3 local
1996 unsigned char digest[20]; local
2029 unsigned char digest[16]; local
2086 unsigned char digest[64]; local
2101 unsigned char digest[32]; local
2203 unsigned char digest[20]; local
2218 unsigned char digest[16]; local
[all...]
/PHP_5_3/ext/openssl/
H A Dopenssl.c527 const EVP_MD * digest; member in struct:php_x509_request
830 /* digest alg */
835 req->digest = req->md_alg = EVP_get_digestbyname(req->digest_name);
838 req->md_alg = req->digest = EVP_md5();
2498 if (!X509_sign(new_cert, priv_key, req.digest)) {
2580 if (X509_REQ_sign(csr, req.priv_key, req.digest)) {
4654 Return array of available digest methods */
4686 Computes digest hash value for given data using given method, returns raw or binhex encoded string */
/PHP_5_3/ext/session/
H A Dsession.c352 unsigned char *digest; local
460 digest = emalloc(digest_len + 1);
463 PHP_MD5Final(digest, &md5_context);
466 PHP_SHA1Final(digest, &sha1_context);
470 PS(hash_ops)->hash_final(digest, hash_context);
484 j = (int) (bin_to_readable((char *)digest, digest_len, outid, (char)PS(hash_bits_per_character)) - outid);
485 efree(digest);

Completed in 42 milliseconds