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

/PHP_TRUNK/sapi/litespeed/
H A Dlsapilib.c93 void lsapi_MD5Final(unsigned char digest[16], struct lsapi_MD5Context *context);
3326 void lsapi_MD5Final(unsigned char digest[16], struct lsapi_MD5Context *ctx) argument
3363 memmove(digest, ctx->buf, 16);
/PHP_TRUNK/ext/hash/
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, 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_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.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...]
H A Dhash.c128 char *algo, *data, *digest; local
170 digest = emalloc(ops->digest_size + 1);
171 ops->hash_final((unsigned char *) digest, context);
175 digest[ops->digest_size] = 0;
176 RETURN_STRINGL(digest, ops->digest_size, 0);
180 php_hash_bin2hex(hex_digest, (unsigned char *) digest, ops->digest_size);
182 efree(digest);
243 char *algo, *data, *digest, *key, *K; local
271 digest = emalloc(ops->digest_size + 1);
284 ops->hash_final((unsigned char *) digest, contex
495 char *digest; local
613 unsigned char *computed_salt, *digest, *temp, *result, *K1, *K2; local
961 char *key, *digest; local
[all...]
/PHP_TRUNK/ext/phar/
H A Dphar.c837 unsigned char digest[64]; local
842 if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) {
851 if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error TSRMLS_CC)) {
864 unsigned char digest[32]; local
869 if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) {
878 if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA256, (char *)digest, 3
902 unsigned char digest[20]; local
929 unsigned char digest[16]; local
3159 char *digest = NULL; local
[all...]
H A Dutil.c1385 static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC) /* {{{ */ argument
1393 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] >> 4];
1394 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] & 0x0F];
1645 unsigned char digest[64]; local
1665 PHP_SHA512Final(digest, &context);
1667 if (memcmp(digest, sig, sizeof(digest))) {
1674 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC);
1678 unsigned char digest[3 local
1719 unsigned char digest[20]; local
1752 unsigned char digest[16]; local
1809 unsigned char digest[64]; local
1824 unsigned char digest[32]; local
1926 unsigned char digest[20]; local
1941 unsigned char digest[16]; local
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_http.c629 zval **digest; local
632 if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"), (void **)&digest) == SUCCESS) {
633 if (Z_TYPE_PP(digest) == IS_ARRAY) {
644 if (zend_hash_find(Z_ARRVAL_PP(digest), "nc", sizeof("nc"), (void **)&tmp) == SUCCESS &&
649 add_assoc_long(*digest, "nc", 1);
656 if (zend_hash_find(Z_ARRVAL_PP(digest), "realm", sizeof("realm"), (void **)&tmp) == SUCCESS &&
667 if (zend_hash_find(Z_ARRVAL_PP(digest), "algorithm", sizeof("algorithm"), (void **)&tmp) == SUCCESS &&
674 if (zend_hash_find(Z_ARRVAL_PP(digest), "nonce", sizeof("nonce"), (void **)&tmp) == SUCCESS &&
698 if (zend_hash_find(Z_ARRVAL_PP(digest), "qop", sizeof("qop"), (void **)&tmp) == SUCCESS &&
712 if (zend_hash_find(Z_ARRVAL_PP(digest), "nonc
1130 zval **digest, **login, **password; local
1142 zval *digest = NULL; local
[all...]
H A Dphp_sdl.c3229 unsigned char digest[16]; local
3238 PHP_MD5Final(digest, &context);
3239 make_digest(md5str, digest);
/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];
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_TRUNK/ext/session/
H A Dsession.c291 unsigned char *digest; local
398 digest = emalloc(digest_len + 1);
401 PHP_MD5Final(digest, &md5_context);
404 PHP_SHA1Final(digest, &sha1_context);
408 PS(hash_ops)->hash_final(digest, hash_context);
422 j = (int) (bin_to_readable((char *)digest, digest_len, outid, (char)PS(hash_bits_per_character)) - outid);
423 efree(digest);
550 unsigned char digest[16]; local
555 PHP_MD5Final(digest, &context);
557 if (memcmp(digest, P
[all...]
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c601 const EVP_MD * digest; member in struct:php_x509_request
913 /* digest alg */
918 req->digest = req->md_alg = EVP_get_digestbyname(req->digest_name);
921 req->md_alg = req->digest = EVP_sha1();
3056 if (!X509_sign(new_cert, priv_key, req.digest)) {
3138 if (X509_REQ_sign(csr, req.priv_key, req.digest)) {
3952 const EVP_MD *digest; local
3967 digest = EVP_get_digestbyname(method);
3969 digest = EVP_sha1();
3972 if (!digest) {
[all...]

Completed in 56 milliseconds