Lines Matching refs:md_ctx
7137 EVP_MD_CTX *md_ctx; local
7169 md_ctx = EVP_MD_CTX_create();
7172 if (md_ctx != NULL &&
7173 EVP_DigestSignInit(md_ctx, NULL, mdtype, NULL, pkey) &&
7174 EVP_DigestSign(md_ctx, NULL, &siglen, (unsigned char*)data, data_len) &&
7176 …EVP_DigestSign(md_ctx, (unsigned char*)ZSTR_VAL(sigbuf), &siglen, (unsigned char*)data, data_len))…
7178 if (md_ctx != NULL &&
7179 EVP_SignInit(md_ctx, mdtype) &&
7180 EVP_SignUpdate(md_ctx, data, data_len) &&
7183 EVP_SignFinal(md_ctx, (unsigned char*)ZSTR_VAL(sigbuf), (unsigned int*)&siglen, pkey)) {
7194 EVP_MD_CTX_destroy(md_ctx);
7205 EVP_MD_CTX *md_ctx; local
7243 md_ctx = EVP_MD_CTX_create();
7244 if (md_ctx == NULL ||
7246 !EVP_DigestVerifyInit(md_ctx, NULL, mdtype, NULL, pkey) ||
7247 …(err = EVP_DigestVerify(md_ctx, (unsigned char *)signature, signature_len, (unsigned char*)data, d…
7249 !EVP_VerifyInit (md_ctx, mdtype) ||
7250 !EVP_VerifyUpdate (md_ctx, data, data_len) ||
7251 …(err = EVP_VerifyFinal(md_ctx, (unsigned char *)signature, (unsigned int)signature_len, pkey)) < 0…
7255 EVP_MD_CTX_destroy(md_ctx);
7573 EVP_MD_CTX *md_ctx; local
7589 md_ctx = EVP_MD_CTX_create();
7590 if (EVP_DigestInit(md_ctx, mdtype) &&
7591 EVP_DigestUpdate(md_ctx, (unsigned char *)data, data_len) &&
7592 EVP_DigestFinal (md_ctx, (unsigned char *)ZSTR_VAL(sigbuf), &siglen)) {
7612 EVP_MD_CTX_destroy(md_ctx);