Lines Matching refs:md_ctx
1490 EVP_MD_CTX *md_ctx; in phar_verify_signature() local
1563 md_ctx = EVP_MD_CTX_create(); in phar_verify_signature()
1564 EVP_VerifyInit(md_ctx, mdtype); in phar_verify_signature()
1576 EVP_VerifyUpdate (md_ctx, buf, len); in phar_verify_signature()
1584 if (EVP_VerifyFinal(md_ctx, (unsigned char *)sig, sig_len, key) != 1) { in phar_verify_signature()
1586 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1595 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1839 EVP_MD_CTX *md_ctx; in phar_create_signature() local
1860 md_ctx = EVP_MD_CTX_create(); in phar_create_signature()
1865 if (!EVP_SignInit(md_ctx, EVP_sha1())) { in phar_create_signature()
1874 if (!EVP_SignUpdate(md_ctx, buf, sig_len)) { in phar_create_signature()
1883 if (!EVP_SignFinal (md_ctx, sigbuf,(unsigned int *)&siglen, key)) { in phar_create_signature()
1892 EVP_MD_CTX_destroy(md_ctx); in phar_create_signature()