Lines Matching refs:md_ctx
1535 EVP_MD_CTX *md_ctx; in phar_verify_signature() local
1612 md_ctx = EVP_MD_CTX_create(); in phar_verify_signature()
1613 if (!md_ctx || !EVP_VerifyInit(md_ctx, mdtype)) { in phar_verify_signature()
1614 if (md_ctx) { in phar_verify_signature()
1615 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1633 if (UNEXPECTED(EVP_VerifyUpdate (md_ctx, buf, len) == 0)) { in phar_verify_signature()
1643 if (EVP_VerifyFinal(md_ctx, (unsigned char *)sig, sig_len, key) != 1) { in phar_verify_signature()
1647 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1657 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1887 EVP_MD_CTX *md_ctx; in phar_create_signature() local
1917 md_ctx = EVP_MD_CTX_create(); in phar_create_signature()
1918 if (md_ctx == NULL) { in phar_create_signature()
1929 if (!EVP_SignInit(md_ctx, mdtype)) { in phar_create_signature()
1939 if (!EVP_SignUpdate(md_ctx, buf, sig_len)) { in phar_create_signature()
1949 if (!EVP_SignFinal (md_ctx, sigbuf, &siglen, key)) { in phar_create_signature()
1960 EVP_MD_CTX_destroy(md_ctx); in phar_create_signature()