Lines Matching refs:mdata
696 DIGEST_DATA *mdata = t->data; in digest_test_parse() local
699 return evp_test_buffer_append(value, data_chunk_size, &mdata->input); in digest_test_parse()
701 return parse_bin(value, &mdata->output, &mdata->output_len); in digest_test_parse()
703 return evp_test_buffer_set_count(value, mdata->input); in digest_test_parse()
705 return evp_test_buffer_ncopy(value, mdata->input); in digest_test_parse()
707 return (mdata->pad_type = atoi(value)) > 0; in digest_test_parse()
709 return (mdata->xof = atoi(value)) > 0; in digest_test_parse()
716 mdata->digest_size = sz; in digest_test_parse()
1670 MAC_DATA *mdata = t->data; in mac_test_parse() local
1673 return parse_bin(value, &mdata->key, &mdata->key_len); in mac_test_parse()
1675 return parse_bin(value, &mdata->iv, &mdata->iv_len); in mac_test_parse()
1677 return parse_bin(value, &mdata->custom, &mdata->custom_len); in mac_test_parse()
1679 return parse_bin(value, &mdata->salt, &mdata->salt_len); in mac_test_parse()
1681 mdata->alg = OPENSSL_strdup(value); in mac_test_parse()
1682 if (mdata->alg == NULL) in mac_test_parse()
1687 return parse_bin(value, &mdata->input, &mdata->input_len); in mac_test_parse()
1689 return parse_bin(value, &mdata->output, &mdata->output_len); in mac_test_parse()
1691 return mdata->xof = 1; in mac_test_parse()
1693 return mdata->no_reinit = 1; in mac_test_parse()
1695 return ctrladd(mdata->controls, value); in mac_test_parse()
1697 mdata->output_size = atoi(value); in mac_test_parse()
1698 if (mdata->output_size < 0) in mac_test_parse()
1703 mdata->block_size = atoi(value); in mac_test_parse()
1704 if (mdata->block_size < 0) in mac_test_parse()
4249 DIGESTSIGN_DATA *mdata = t->data; in digestsigver_test_cleanup() local
4251 ctrlfree(mdata->init_controls); in digestsigver_test_cleanup()
4252 ctrlfree(mdata->controls); in digestsigver_test_cleanup()
4253 EVP_MD_CTX_free(mdata->ctx); in digestsigver_test_cleanup()
4254 sk_EVP_TEST_BUFFER_pop_free(mdata->input, evp_test_buffer_free); in digestsigver_test_cleanup()
4255 OPENSSL_free(mdata->osin); in digestsigver_test_cleanup()
4256 OPENSSL_free(mdata->output); in digestsigver_test_cleanup()
4257 OPENSSL_free(mdata); in digestsigver_test_cleanup()
4264 DIGESTSIGN_DATA *mdata = t->data; in digestsigver_test_parse() local
4270 if (mdata->is_verify) in digestsigver_test_parse()
4278 mdata->key = pkey; in digestsigver_test_parse()
4283 if (mdata->is_oneshot) in digestsigver_test_parse()
4284 return parse_bin(value, &mdata->osin, &mdata->osin_len); in digestsigver_test_parse()
4285 return evp_test_buffer_append(value, data_chunk_size, &mdata->input); in digestsigver_test_parse()
4288 return parse_bin(value, &mdata->output, &mdata->output_len); in digestsigver_test_parse()
4290 if (!mdata->is_oneshot && data_chunk_size == 0) { in digestsigver_test_parse()
4292 return evp_test_buffer_set_count(value, mdata->input); in digestsigver_test_parse()
4294 return evp_test_buffer_ncopy(value, mdata->input); in digestsigver_test_parse()
4297 return pkey_add_control(t, mdata->controls, value); in digestsigver_test_parse()
4299 return ctrladd(mdata->init_controls, value); in digestsigver_test_parse()
4302 mdata->deterministic_noncetype = 1; in digestsigver_test_parse()
4309 DIGESTSIGN_DATA *mdata) in check_deterministic_noncetype() argument
4311 if (mdata->deterministic_noncetype == 1) { in check_deterministic_noncetype()
4319 if (!EVP_PKEY_CTX_set_params(mdata->pctx, params)) in check_deterministic_noncetype()
4321 else if (!EVP_PKEY_CTX_get_params(mdata->pctx, params)) in check_deterministic_noncetype()
4448 DIGESTSIGN_DATA *mdata = t->data; in digestverify_test_run() local
4450 if (!signverify_init(t, mdata)) in digestverify_test_run()
4453 if (!evp_test_buffer_do(mdata->input, digestverify_update_fn, mdata->ctx)) { in digestverify_test_run()
4458 if (EVP_DigestVerifyFinal(mdata->ctx, mdata->output, in digestverify_test_run()
4459 mdata->output_len) <= 0) in digestverify_test_run()
4527 DIGESTSIGN_DATA *mdata = t->data; in oneshot_digestverify_test_run() local
4529 if (!signverify_init(t, mdata)) in oneshot_digestverify_test_run()
4532 if (EVP_DigestVerify(mdata->ctx, mdata->output, mdata->output_len, in oneshot_digestverify_test_run()
4533 mdata->osin, mdata->osin_len) <= 0) in oneshot_digestverify_test_run()