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()
1587 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1597 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1822 EVP_MD_CTX *md_ctx; in phar_create_signature() local
1843 md_ctx = EVP_MD_CTX_create(); in phar_create_signature()
1848 if (!EVP_SignInit(md_ctx, EVP_sha1())) { in phar_create_signature()
1858 if (!EVP_SignUpdate(md_ctx, buf, sig_len)) { in phar_create_signature()
1868 if (!EVP_SignFinal (md_ctx, sigbuf, &siglen, key)) { in phar_create_signature()
1879 EVP_MD_CTX_destroy(md_ctx); in phar_create_signature()