Lines Matching refs:mdctx
1923 EVP_MD_CTX *mdctx = NULL; in test_siphash_digestsign() local
1937 if (!TEST_ptr(mdctx = EVP_MD_CTX_create())) in test_siphash_digestsign()
1940 if (!TEST_true(EVP_DigestSignInit(mdctx, &ctx, NULL, NULL, pkey))) in test_siphash_digestsign()
1947 if (!TEST_true(EVP_DigestSignInit(mdctx, NULL, NULL, NULL, NULL))) in test_siphash_digestsign()
1949 if (!TEST_true(EVP_DigestSignUpdate(mdctx, buf, 8))) in test_siphash_digestsign()
1951 if (!TEST_true(EVP_DigestSignFinal(mdctx, digest, &len))) in test_siphash_digestsign()
1959 EVP_MD_CTX_free(mdctx); in test_siphash_digestsign()
2783 EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); in get_cmac_val() local
2788 if (!TEST_ptr(mdctx) in get_cmac_val()
2789 || !TEST_true(EVP_DigestSignInit_ex(mdctx, NULL, NULL, testctx, in get_cmac_val()
2791 || !TEST_true(EVP_DigestSignUpdate(mdctx, msg, sizeof(msg))) in get_cmac_val()
2792 || !TEST_true(EVP_DigestSignFinal(mdctx, mac, &maclen)) in get_cmac_val()
2796 EVP_MD_CTX_free(mdctx); in get_cmac_val()
3063 EVP_MD_CTX *mdctx = NULL; in test_EVP_PKEY_CTX_get_set_params() local
3127 mdctx = EVP_MD_CTX_new(); in test_EVP_PKEY_CTX_get_set_params()
3128 if (!TEST_ptr(mdctx) in test_EVP_PKEY_CTX_get_set_params()
3129 || !TEST_true(EVP_DigestSignInit_ex(mdctx, NULL, "SHA1", testctx, testpropq, in test_EVP_PKEY_CTX_get_set_params()
3137 params = EVP_MD_CTX_settable_params(mdctx); in test_EVP_PKEY_CTX_get_set_params()
3150 if (!TEST_true(EVP_MD_CTX_set_params(mdctx, ourparams))) in test_EVP_PKEY_CTX_get_set_params()
3156 EVP_MD_CTX_free(mdctx); in test_EVP_PKEY_CTX_get_set_params()
5182 EVP_MD_CTX *mdctx = NULL; in test_custom_md_meth() local
5212 mdctx = EVP_MD_CTX_new(); in test_custom_md_meth()
5213 if (!TEST_ptr(mdctx) in test_custom_md_meth()
5219 || !TEST_true(EVP_DigestInit_ex(mdctx, tmp, NULL)) in test_custom_md_meth()
5220 || !TEST_true(EVP_DigestInit_ex(mdctx, EVP_sha256(), NULL)) in test_custom_md_meth()
5221 || !TEST_true(EVP_DigestUpdate(mdctx, mess, strlen(mess))) in test_custom_md_meth()
5222 || !TEST_true(EVP_DigestFinal_ex(mdctx, md_value, &md_len)) in test_custom_md_meth()
5242 EVP_MD_CTX_free(mdctx); in test_custom_md_meth()
5898 EVP_MD_CTX *mdctx; in test_invalid_ctx_for_digest() local
5900 mdctx = EVP_MD_CTX_new(); in test_invalid_ctx_for_digest()
5901 if (!TEST_ptr(mdctx)) in test_invalid_ctx_for_digest()
5904 if (!TEST_int_eq(EVP_DigestUpdate(mdctx, "test", sizeof("test") - 1), 0)) in test_invalid_ctx_for_digest()
5909 EVP_MD_CTX_free(mdctx); in test_invalid_ctx_for_digest()