Lines Matching refs:digest
1367 static int phar_hex_str(const char *digest, size_t digest_len, char **signature) /* {{{ */ in phar_hex_str() argument
1375 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] >> 4]; in phar_hex_str()
1376 (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] & 0x0F]; in phar_hex_str()
1604 unsigned char digest[64]; in phar_verify_signature() local
1607 if (sig_len < sizeof(digest)) { in phar_verify_signature()
1631 PHP_SHA512Final(digest, &context); in phar_verify_signature()
1633 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1640 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature()
1644 unsigned char digest[32]; in phar_verify_signature() local
1647 if (sig_len < sizeof(digest)) { in phar_verify_signature()
1671 PHP_SHA256Final(digest, &context); in phar_verify_signature()
1673 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1680 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature()
1684 unsigned char digest[20]; in phar_verify_signature() local
1687 if (sig_len < sizeof(digest)) { in phar_verify_signature()
1711 PHP_SHA1Final(digest, &context); in phar_verify_signature()
1713 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1720 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature()
1724 unsigned char digest[16]; in phar_verify_signature() local
1727 if (sig_len < sizeof(digest)) { in phar_verify_signature()
1751 PHP_MD5Final(digest, &context); in phar_verify_signature()
1753 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1760 *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature); in phar_verify_signature()
1787 unsigned char digest[64]; in phar_create_signature() local
1796 PHP_SHA512Final(digest, &context); in phar_create_signature()
1797 *signature = estrndup((char *) digest, 64); in phar_create_signature()
1802 unsigned char digest[32]; in phar_create_signature() local
1811 PHP_SHA256Final(digest, &context); in phar_create_signature()
1812 *signature = estrndup((char *) digest, 32); in phar_create_signature()
1900 unsigned char digest[20]; in phar_create_signature() local
1909 PHP_SHA1Final(digest, &context); in phar_create_signature()
1910 *signature = estrndup((char *) digest, 20); in phar_create_signature()
1915 unsigned char digest[16]; in phar_create_signature() local
1924 PHP_MD5Final(digest, &context); in phar_create_signature()
1925 *signature = estrndup((char *) digest, 16); in phar_create_signature()