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

/PHP_TRUNK/ext/phar/
H A Dutil.c1374 static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC) /* {{{ */ argument
1382 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] >> 4];
1383 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] & 0x0F];
1605 unsigned char digest[64]; local
1625 PHP_SHA512Final(digest, &context);
1627 if (memcmp(digest, sig, sizeof(digest))) {
1634 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC);
1638 unsigned char digest[3 local
1679 unsigned char digest[20]; local
1712 unsigned char digest[16]; local
1769 unsigned char digest[64]; local
1784 unsigned char digest[32]; local
1886 unsigned char digest[20]; local
1901 unsigned char digest[16]; local
[all...]
H A Dphar.c842 unsigned char digest[64]; local
847 if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) {
856 if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error TSRMLS_CC)) {
869 unsigned char digest[32]; local
874 if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) {
883 if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA256, (char *)digest, 3
907 unsigned char digest[20]; local
934 unsigned char digest[16]; local
3110 char *digest = NULL; local
[all...]
/PHP_TRUNK/ext/hash/
H A Dhash.c121 zend_string *digest; local
164 digest = zend_string_alloc(ops->digest_size, 0);
165 ops->hash_final((unsigned char *) digest->val, context);
169 digest->val[ops->digest_size] = 0;
170 RETURN_STR(digest);
174 php_hash_bin2hex(hex_digest->val, (unsigned char *) digest->val, ops->digest_size);
176 zend_string_release(digest);
237 zend_string *digest; local
267 digest = zend_string_alloc(ops->digest_size, 0);
280 ops->hash_final((unsigned char *) digest
491 zend_string *digest; local
605 unsigned char *computed_salt, *digest, *temp, *result, *K1, *K2 = NULL; local
953 char *key, *digest; local
[all...]
H A Dhash_adler32.c50 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) argument
52 digest[0] = (unsigned char) ((context->state >> 24) & 0xff);
53 digest[1] = (unsigned char) ((context->state >> 16) & 0xff);
54 digest[2] = (unsigned char) ((context->state >> 8) & 0xff);
55 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_fnv.c88 PHP_HASH_API void PHP_FNV132Final(unsigned char digest[4], PHP_FNV132_CTX * context) argument
91 memcpy(digest, &context->state, 4);
97 digest[i] = c[3 - i];
123 PHP_HASH_API void PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * context) argument
126 memcpy(digest, &context->state, 8);
132 digest[i] = c[7 - i];
H A Dhash_gost.c289 PHP_HASH_API void PHP_GOSTFinal(unsigned char digest[32], PHP_GOST_CTX *context) argument
303 digest[j] = (unsigned char) (context->state[i] & 0xff);
304 digest[j + 1] = (unsigned char) ((context->state[i] >> 8) & 0xff);
305 digest[j + 2] = (unsigned char) ((context->state[i] >> 16) & 0xff);
306 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_joaat.c48 PHP_HASH_API void PHP_JOAATFinal(unsigned char digest[4], PHP_JOAAT_CTX * context) argument
51 memcpy(digest, &context->state, 4);
57 digest[i] = c[3 - i];
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);
126 make_digest(md5str, digest);
142 unsigned char digest[16]; local
162 PHP_MD5Final(digest, &context);
171 RETURN_STRINGL(digest, 16);
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_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);
109 make_sha1_digest(sha1str, digest);
126 unsigned char digest[20]; local
146 PHP_SHA1Final(digest, &context);
155 RETURN_STRINGL(digest, 20);
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.c225 PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context) argument
228 TigerDigest(digest, 16, context);
232 PHP_HASH_API void PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context) argument
235 TigerDigest(digest, 20, context);
239 PHP_HASH_API void PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context) argument
242 TigerDigest(digest, 24, context);
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_TRUNK/ext/soap/
H A Dphp_sdl.c3196 unsigned char digest[16]; local
3205 PHP_MD5Final(digest, &context);
3206 make_digest(md5str, digest);
H A Dphp_http.c623 zval *digest; local
626 if ((digest = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest")-1)) != NULL) {
627 if (Z_TYPE_P(digest) == IS_ARRAY) {
638 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nc", sizeof("nc")-1)) != NULL &&
643 add_assoc_long(digest, "nc", 1);
650 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "realm", sizeof("realm")-1)) != NULL &&
661 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "algorithm", sizeof("algorithm")-1)) != NULL &&
668 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL &&
692 if (zend_hash_find(Z_ARRVAL_PP(digest), "qop", sizeof("qop"), (void **)&tmp) == SUCCESS &&
706 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonc
1119 zval *digest, *login, *password; local
1131 zval digest; local
[all...]
/PHP_TRUNK/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];
53 unsigned char digest[16]; local
62 PHP_MD5Final(digest, &context);
64 RETURN_STRINGL((char *) digest, 16);
66 make_digest_ex(md5str, digest, 16);
82 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);
41 unsigned char digest[20]; local
50 PHP_SHA1Final(digest, &context);
52 RETURN_STRINGL((char *) digest, 20);
54 make_digest_ex(sha1str, digest, 20);
72 unsigned char digest[20]; local
92 PHP_SHA1Final(digest, &context);
97 RETURN_STRINGL((char *) digest, 20);
99 make_digest_ex(sha1str, digest, 2
219 PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) argument
[all...]
/PHP_TRUNK/ext/session/
H A Dsession.c288 unsigned char *digest; local
396 digest = emalloc(digest_len + 1);
399 PHP_MD5Final(digest, &md5_context);
402 PHP_SHA1Final(digest, &sha1_context);
406 PS(hash_ops)->hash_final(digest, hash_context);
420 outid->len = (int)(bin_to_readable((char *)digest, digest_len, outid->val, (char)PS(hash_bits_per_character)) - (char *)&outid->val);
421 efree(digest);
/PHP_TRUNK/sapi/litespeed/
H A Dlsapilib.c103 void lsapi_MD5Final(unsigned char digest[16], struct lsapi_MD5Context *context);
3341 void lsapi_MD5Final(unsigned char digest[16], struct lsapi_MD5Context *ctx) argument
3378 memmove(digest, ctx->buf, 16);
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c601 const EVP_MD * digest; member in struct:php_x509_request
923 /* digest alg */
928 req->digest = req->md_alg = EVP_get_digestbyname(req->digest_name);
931 req->md_alg = req->digest = EVP_sha1();
2983 if (!X509_sign(new_cert, priv_key, req.digest)) {
3065 if (X509_REQ_sign(csr, req.priv_key, req.digest)) {
3944 const EVP_MD *digest; local
3959 digest = EVP_get_digestbyname(method);
3961 digest = EVP_sha1();
3964 if (!digest) {
[all...]

Completed in 53 milliseconds