Lines Matching refs:digest

1371 static int phar_hex_str(const char *digest, size_t digest_len, char **signature) /* {{{ */  in phar_hex_str()  argument
1379 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] >> 4]; in phar_hex_str()
1380 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] & 0x0F]; in phar_hex_str()
1603 unsigned char digest[64]; in phar_verify_signature() local
1606 if (sig_len < sizeof(digest)) { in phar_verify_signature()
1630 PHP_SHA512Final(digest, &context); in phar_verify_signature()
1632 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1639 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature()
1643 unsigned char digest[32]; in phar_verify_signature() local
1646 if (sig_len < sizeof(digest)) { in phar_verify_signature()
1670 PHP_SHA256Final(digest, &context); in phar_verify_signature()
1672 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1679 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature()
1691 unsigned char digest[20]; in phar_verify_signature() local
1694 if (sig_len < sizeof(digest)) { in phar_verify_signature()
1718 PHP_SHA1Final(digest, &context); in phar_verify_signature()
1720 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1727 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature()
1731 unsigned char digest[16]; in phar_verify_signature() local
1734 if (sig_len < sizeof(digest)) { in phar_verify_signature()
1758 PHP_MD5Final(digest, &context); in phar_verify_signature()
1760 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1767 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature()
1795 unsigned char digest[64]; in phar_create_signature() local
1804 PHP_SHA512Final(digest, &context); in phar_create_signature()
1805 *signature = estrndup((char *) digest, 64); in phar_create_signature()
1810 unsigned char digest[32]; in phar_create_signature() local
1819 PHP_SHA256Final(digest, &context); in phar_create_signature()
1820 *signature = estrndup((char *) digest, 32); in phar_create_signature()
1912 unsigned char digest[20]; in phar_create_signature() local
1921 PHP_SHA1Final(digest, &context); in phar_create_signature()
1922 *signature = estrndup((char *) digest, 20); in phar_create_signature()
1927 unsigned char digest[16]; in phar_create_signature() local
1936 PHP_MD5Final(digest, &context); in phar_create_signature()
1937 *signature = estrndup((char *) digest, 16); in phar_create_signature()