Lines Matching refs:md_ctx
6733 EVP_MD_CTX *md_ctx; in PHP_FUNCTION() local
6767 md_ctx = EVP_MD_CTX_create(); in PHP_FUNCTION()
6768 if (md_ctx != NULL && in PHP_FUNCTION()
6769 EVP_SignInit(md_ctx, mdtype) && in PHP_FUNCTION()
6770 EVP_SignUpdate(md_ctx, data, data_len) && in PHP_FUNCTION()
6771 EVP_SignFinal(md_ctx, (unsigned char*)ZSTR_VAL(sigbuf), &siglen, pkey)) { in PHP_FUNCTION()
6781 EVP_MD_CTX_destroy(md_ctx); in PHP_FUNCTION()
6792 EVP_MD_CTX *md_ctx; in PHP_FUNCTION() local
6829 md_ctx = EVP_MD_CTX_create(); in PHP_FUNCTION()
6830 if (md_ctx == NULL || in PHP_FUNCTION()
6831 !EVP_VerifyInit (md_ctx, mdtype) || in PHP_FUNCTION()
6832 !EVP_VerifyUpdate (md_ctx, data, data_len) || in PHP_FUNCTION()
6833 …(err = EVP_VerifyFinal(md_ctx, (unsigned char *)signature, (unsigned int)signature_len, pkey)) < 0… in PHP_FUNCTION()
6836 EVP_MD_CTX_destroy(md_ctx); in PHP_FUNCTION()
7154 EVP_MD_CTX *md_ctx; in PHP_FUNCTION() local
7170 md_ctx = EVP_MD_CTX_create(); in PHP_FUNCTION()
7171 if (EVP_DigestInit(md_ctx, mdtype) && in PHP_FUNCTION()
7172 EVP_DigestUpdate(md_ctx, (unsigned char *)data, data_len) && in PHP_FUNCTION()
7173 EVP_DigestFinal (md_ctx, (unsigned char *)ZSTR_VAL(sigbuf), &siglen)) { in PHP_FUNCTION()
7193 EVP_MD_CTX_destroy(md_ctx); in PHP_FUNCTION()