Lines Matching refs:md_ctx
1500 EVP_MD_CTX *md_ctx; in phar_verify_signature() local
1581 md_ctx = EVP_MD_CTX_create(); in phar_verify_signature()
1582 if (!md_ctx || !EVP_VerifyInit(md_ctx, mdtype)) { in phar_verify_signature()
1583 if (md_ctx) { in phar_verify_signature()
1584 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1602 if (UNEXPECTED(EVP_VerifyUpdate (md_ctx, buf, len) == 0)) { in phar_verify_signature()
1612 if (EVP_VerifyFinal(md_ctx, (unsigned char *)sig, sig_len, key) != 1) { in phar_verify_signature()
1616 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1626 EVP_MD_CTX_destroy(md_ctx); in phar_verify_signature()
1856 EVP_MD_CTX *md_ctx; in phar_create_signature() local
1886 md_ctx = EVP_MD_CTX_create(); in phar_create_signature()
1887 if (md_ctx == NULL) { in phar_create_signature()
1898 if (!EVP_SignInit(md_ctx, mdtype)) { in phar_create_signature()
1908 if (!EVP_SignUpdate(md_ctx, buf, sig_len)) { in phar_create_signature()
1918 if (!EVP_SignFinal (md_ctx, sigbuf, &siglen, key)) { in phar_create_signature()
1929 EVP_MD_CTX_destroy(md_ctx); in phar_create_signature()