Lines Matching refs:mdata
362 DIGEST_DATA *mdata = t->data; in digest_test_parse() local
365 return evp_test_buffer_append(value, &mdata->input); in digest_test_parse()
367 return parse_bin(value, &mdata->output, &mdata->output_len); in digest_test_parse()
369 return evp_test_buffer_set_count(value, mdata->input); in digest_test_parse()
371 return evp_test_buffer_ncopy(value, mdata->input); in digest_test_parse()
941 MAC_DATA *mdata = t->data; in mac_test_parse() local
944 return parse_bin(value, &mdata->key, &mdata->key_len); in mac_test_parse()
946 mdata->alg = OPENSSL_strdup(value); in mac_test_parse()
947 if (!mdata->alg) in mac_test_parse()
952 return parse_bin(value, &mdata->input, &mdata->input_len); in mac_test_parse()
954 return parse_bin(value, &mdata->output, &mdata->output_len); in mac_test_parse()
956 return sk_OPENSSL_STRING_push(mdata->controls, in mac_test_parse()
2090 DIGESTSIGN_DATA *mdata = t->data; in digestsigver_test_cleanup() local
2092 EVP_MD_CTX_free(mdata->ctx); in digestsigver_test_cleanup()
2093 sk_EVP_TEST_BUFFER_pop_free(mdata->input, evp_test_buffer_free); in digestsigver_test_cleanup()
2094 OPENSSL_free(mdata->osin); in digestsigver_test_cleanup()
2095 OPENSSL_free(mdata->output); in digestsigver_test_cleanup()
2096 OPENSSL_free(mdata); in digestsigver_test_cleanup()
2103 DIGESTSIGN_DATA *mdata = t->data; in digestsigver_test_parse() local
2109 if (mdata->is_verify) in digestsigver_test_parse()
2117 if (mdata->is_verify) { in digestsigver_test_parse()
2118 if (!EVP_DigestVerifyInit(mdata->ctx, &mdata->pctx, mdata->md, in digestsigver_test_parse()
2123 if (!EVP_DigestSignInit(mdata->ctx, &mdata->pctx, mdata->md, NULL, in digestsigver_test_parse()
2130 if (mdata->is_oneshot) in digestsigver_test_parse()
2131 return parse_bin(value, &mdata->osin, &mdata->osin_len); in digestsigver_test_parse()
2132 return evp_test_buffer_append(value, &mdata->input); in digestsigver_test_parse()
2135 return parse_bin(value, &mdata->output, &mdata->output_len); in digestsigver_test_parse()
2137 if (!mdata->is_oneshot) { in digestsigver_test_parse()
2139 return evp_test_buffer_set_count(value, mdata->input); in digestsigver_test_parse()
2141 return evp_test_buffer_ncopy(value, mdata->input); in digestsigver_test_parse()
2144 if (mdata->pctx == NULL) in digestsigver_test_parse()
2146 return pkey_test_ctrl(t, mdata->pctx, value); in digestsigver_test_parse()
2213 DIGESTSIGN_DATA *mdata = t->data; in digestverify_test_run() local
2215 if (!evp_test_buffer_do(mdata->input, digestverify_update_fn, mdata->ctx)) { in digestverify_test_run()
2220 if (EVP_DigestVerifyFinal(mdata->ctx, mdata->output, in digestverify_test_run()
2221 mdata->output_len) <= 0) in digestverify_test_run()
2285 DIGESTSIGN_DATA *mdata = t->data; in oneshot_digestverify_test_run() local
2287 if (EVP_DigestVerify(mdata->ctx, mdata->output, mdata->output_len, in oneshot_digestverify_test_run()
2288 mdata->osin, mdata->osin_len) <= 0) in oneshot_digestverify_test_run()