Home
last modified time | relevance | path

Searched refs:mctx (Results 1 – 25 of 34) sorted by relevance

12

/third_party/ejdb/src/jbi/
Djbi_selection.c60 static void _jbi_log_index_rules(IWXSTR *xstr, struct _JBMIDX *mctx) { in _jbi_log_index_rules() argument
61 _jbi_print_index(mctx->idx, xstr); in _jbi_log_index_rules()
62 if (mctx->expr1) { in _jbi_log_index_rules()
64 jqp_print_filter_node_expr(mctx->expr1, jbl_xstr_json_printer, xstr); in _jbi_log_index_rules()
67 if (mctx->expr2) { in _jbi_log_index_rules()
69 jqp_print_filter_node_expr(mctx->expr2, jbl_xstr_json_printer, xstr); in _jbi_log_index_rules()
72 if (mctx->cursor_init) { in _jbi_log_index_rules()
74 _jbi_log_cursor_op(xstr, mctx->cursor_init); in _jbi_log_index_rules()
76 if (mctx->cursor_step) { in _jbi_log_index_rules()
78 _jbi_log_cursor_op(xstr, mctx->cursor_step); in _jbi_log_index_rules()
[all …]
/third_party/openssl/crypto/evp/
Dm_md5_sha1.c28 struct md5_sha1_ctx *mctx = EVP_MD_CTX_md_data(ctx); in init() local
29 if (!MD5_Init(&mctx->md5)) in init()
31 return SHA1_Init(&mctx->sha1); in init()
36 struct md5_sha1_ctx *mctx = EVP_MD_CTX_md_data(ctx); in update() local
37 if (!MD5_Update(&mctx->md5, data, count)) in update()
39 return SHA1_Update(&mctx->sha1, data, count); in update()
44 struct md5_sha1_ctx *mctx = EVP_MD_CTX_md_data(ctx); in final() local
45 if (!MD5_Final(md, &mctx->md5)) in final()
47 return SHA1_Final(md + MD5_DIGEST_LENGTH, &mctx->sha1); in final()
55 struct md5_sha1_ctx *mctx; in ctrl() local
[all …]
Dpmeth_lib.c578 EVP_MD_CTX *mctx), in EVP_PKEY_meth_set_signctx() argument
582 EVP_MD_CTX *mctx)) in EVP_PKEY_meth_set_signctx()
590 EVP_MD_CTX *mctx), in EVP_PKEY_meth_set_verifyctx() argument
594 EVP_MD_CTX *mctx)) in EVP_PKEY_meth_set_verifyctx()
680 EVP_MD_CTX *mctx)) in EVP_PKEY_meth_set_digest_custom() argument
773 EVP_MD_CTX *mctx), in EVP_PKEY_meth_get_signctx() argument
777 EVP_MD_CTX *mctx)) in EVP_PKEY_meth_get_signctx()
787 EVP_MD_CTX *mctx), in EVP_PKEY_meth_get_verifyctx() argument
791 EVP_MD_CTX *mctx)) in EVP_PKEY_meth_get_verifyctx()
892 EVP_MD_CTX *mctx)) in EVP_PKEY_meth_get_digest_custom() argument
/third_party/openssl/test/
Decdsatest.c104 EVP_MD_CTX *mctx = NULL; in x9_62_tests() local
121 if (!TEST_ptr(mctx = EVP_MD_CTX_new()) in x9_62_tests()
124 || !TEST_true(EVP_DigestInit_ex(mctx, EVP_get_digestbynid(md_nid), NULL)) in x9_62_tests()
125 || !TEST_true(EVP_DigestUpdate(mctx, message, msg_len)) in x9_62_tests()
126 || !TEST_true(EVP_DigestFinal_ex(mctx, digest, &dgst_len)) in x9_62_tests()
177 EVP_MD_CTX_free(mctx); in x9_62_tests()
205 EVP_MD_CTX *mctx = NULL; in test_builtin() local
219 if (!TEST_ptr(mctx = EVP_MD_CTX_new()) in test_builtin()
238 || !TEST_true(EVP_DigestSignInit(mctx, NULL, NULL, NULL, pkey)) in test_builtin()
239 || !TEST_true(EVP_DigestSign(mctx, sig, &sig_len, tbs, sizeof(tbs))) in test_builtin()
[all …]
/third_party/openssl/crypto/ec/
Decdh_kdf.c24 EVP_MD_CTX *mctx = NULL; in ecdh_KDF_X9_63() local
32 mctx = EVP_MD_CTX_new(); in ecdh_KDF_X9_63()
33 if (mctx == NULL) in ecdh_KDF_X9_63()
38 if (!EVP_DigestInit_ex(mctx, md, NULL)) in ecdh_KDF_X9_63()
44 if (!EVP_DigestUpdate(mctx, Z, Zlen)) in ecdh_KDF_X9_63()
46 if (!EVP_DigestUpdate(mctx, ctr, sizeof(ctr))) in ecdh_KDF_X9_63()
48 if (!EVP_DigestUpdate(mctx, sinfo, sinfolen)) in ecdh_KDF_X9_63()
51 if (!EVP_DigestFinal(mctx, out, NULL)) in ecdh_KDF_X9_63()
58 if (!EVP_DigestFinal(mctx, mtmp, NULL)) in ecdh_KDF_X9_63()
67 EVP_MD_CTX_free(mctx); in ecdh_KDF_X9_63()
/third_party/openssl/crypto/cms/
Dcms_sd.c268 si->mctx = EVP_MD_CTX_new(); in CMS_add1_signer()
271 if (si->mctx == NULL) { in CMS_add1_signer()
375 } else if (EVP_DigestSignInit(si->mctx, &si->pctx, md, NULL, pk) <= in CMS_add1_signer()
432 return si->mctx; in CMS_SignerInfo_get0_md_ctx()
559 EVP_MD_CTX *mctx = EVP_MD_CTX_new(); in cms_SignerInfo_content_sign() local
563 if (mctx == NULL) { in cms_SignerInfo_content_sign()
573 if (!cms_DigestAlgorithm_find_ctx(mctx, chain, si->digestAlgorithm)) in cms_SignerInfo_content_sign()
586 if (!EVP_DigestFinal_ex(mctx, md, &mdlen)) in cms_SignerInfo_content_sign()
603 if (!EVP_DigestFinal_ex(mctx, md, &mdlen)) in cms_SignerInfo_content_sign()
624 if (!EVP_SignFinal(mctx, sig, &siglen, si->pkey)) { in cms_SignerInfo_content_sign()
[all …]
Dcms_dd.c57 EVP_MD_CTX *mctx = EVP_MD_CTX_new(); in cms_DigestedData_do_final() local
63 if (mctx == NULL) { in cms_DigestedData_do_final()
70 if (!cms_DigestAlgorithm_find_ctx(mctx, chain, dd->digestAlgorithm)) in cms_DigestedData_do_final()
73 if (EVP_DigestFinal_ex(mctx, md, &mdlen) <= 0) in cms_DigestedData_do_final()
95 EVP_MD_CTX_free(mctx); in cms_DigestedData_do_final()
/third_party/openssl/crypto/dh/
Ddh_kdf.c103 EVP_MD_CTX *mctx = NULL; in DH_KDF_X9_42() local
111 mctx = EVP_MD_CTX_new(); in DH_KDF_X9_42()
112 if (mctx == NULL) in DH_KDF_X9_42()
120 if (!EVP_DigestInit_ex(mctx, md, NULL) in DH_KDF_X9_42()
121 || !EVP_DigestUpdate(mctx, Z, Zlen)) in DH_KDF_X9_42()
127 if (!EVP_DigestUpdate(mctx, der, derlen)) in DH_KDF_X9_42()
130 if (!EVP_DigestFinal(mctx, out, NULL)) in DH_KDF_X9_42()
137 if (!EVP_DigestFinal(mctx, mtmp, NULL)) in DH_KDF_X9_42()
147 EVP_MD_CTX_free(mctx); in DH_KDF_X9_42()
/third_party/openssl/crypto/hmac/
Dhm_pmeth.c108 static int hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in hmac_signctx_init() argument
112 EVP_MD_CTX_test_flags(mctx, ~EVP_MD_CTX_FLAG_NO_INIT)); in hmac_signctx_init()
113 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); in hmac_signctx_init()
114 EVP_MD_CTX_set_update_fn(mctx, int_update); in hmac_signctx_init()
119 EVP_MD_CTX *mctx) in hmac_signctx() argument
123 int l = EVP_MD_CTX_size(mctx); in hmac_signctx()
/third_party/ejdb/src/jql/
Djql.c33 static JQP_NODE *_jql_match_node(MCTX *mctx, JQP_NODE *n, bool *res, iwrc *rcp);
1152 static bool _jql_match_node_expr_impl(MCTX *mctx, JQP_EXPR *expr, iwrc *rcp) { in _jql_match_node_expr_impl() argument
1162 JQVAL lv, *rv = _jql_unit_to_jqval(mctx->aux, right, rcp); in _jql_match_node_expr_impl()
1167 lv.vstr = mctx->key; in _jql_match_node_expr_impl()
1168 bool ret = _jql_match_jqval_pair(mctx->aux, &lv, op, rv, rcp); in _jql_match_node_expr_impl()
1171 && (strcmp(mctx->key, left->string.value) != 0)) { in _jql_match_node_expr_impl()
1180 JQVAL lv, *rv = _jql_unit_to_jqval(mctx->aux, left->expr.right, rcp); in _jql_match_node_expr_impl()
1185 lv.vstr = mctx->key; in _jql_match_node_expr_impl()
1186 if (!_jql_match_jqval_pair(mctx->aux, &lv, left->expr.op, rv, rcp)) { in _jql_match_node_expr_impl()
1190 JQVAL lv, *rv = _jql_unit_to_jqval(mctx->aux, right, rcp); in _jql_match_node_expr_impl()
[all …]
/third_party/openssl/doc/man7/
DSM2.pod39 EVP_MD_CTX_set_pkey_ctx(mctx, pctx);
53 mctx = EVP_MD_CTX_new();
56 EVP_MD_CTX_set_pkey_ctx(mctx, pctx);;
57 EVP_DigestVerifyInit(mctx, NULL, EVP_sm3(), NULL, pkey);
58 EVP_DigestVerifyUpdate(mctx, msg, msg_len);
59 EVP_DigestVerifyFinal(mctx, sig, sig_len)
/third_party/openssl/crypto/cmac/
Dcm_pmeth.c65 static int cmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in cmac_signctx_init() argument
67 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); in cmac_signctx_init()
68 EVP_MD_CTX_set_update_fn(mctx, int_update); in cmac_signctx_init()
73 EVP_MD_CTX *mctx) in cmac_signctx() argument
/third_party/openssl/crypto/poly1305/
Dpoly1305_pmeth.c93 static int poly1305_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in poly1305_signctx_init() argument
100 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); in poly1305_signctx_init()
101 EVP_MD_CTX_set_update_fn(mctx, int_update); in poly1305_signctx_init()
106 EVP_MD_CTX *mctx) in poly1305_signctx() argument
/third_party/openssl/crypto/siphash/
Dsiphash_pmeth.c93 static int siphash_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in siphash_signctx_init() argument
102 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); in siphash_signctx_init()
103 EVP_MD_CTX_set_update_fn(mctx, int_update); in siphash_signctx_init()
107 EVP_MD_CTX *mctx) in siphash_signctx() argument
/third_party/openssl/crypto/dsa/
Ddsa_gen.c323 EVP_MD_CTX *mctx = EVP_MD_CTX_new(); in dsa_builtin_paramgen2() local
326 if (mctx == NULL) in dsa_builtin_paramgen2()
556 if (!EVP_DigestInit_ex(mctx, evpmd, NULL)) in dsa_builtin_paramgen2()
558 if (!EVP_DigestUpdate(mctx, seed_tmp, seed_len)) in dsa_builtin_paramgen2()
560 if (!EVP_DigestUpdate(mctx, ggen, sizeof(ggen))) in dsa_builtin_paramgen2()
562 if (!EVP_DigestUpdate(mctx, md, 3)) in dsa_builtin_paramgen2()
564 if (!EVP_DigestFinal_ex(mctx, md, NULL)) in dsa_builtin_paramgen2()
612 EVP_MD_CTX_free(mctx); in dsa_builtin_paramgen2()
/third_party/openssl/doc/man3/
DEVP_PKEY_meth_new.pod82 EVP_MD_CTX *mctx),
86 EVP_MD_CTX *mctx));
89 EVP_MD_CTX *mctx),
93 EVP_MD_CTX *mctx));
139 EVP_MD_CTX *mctx));
182 EVP_MD_CTX *mctx),
186 EVP_MD_CTX *mctx));
189 EVP_MD_CTX *mctx),
193 EVP_MD_CTX *mctx));
239 EVP_MD_CTX *mctx));
[all …]
/third_party/openssl/apps/
Ddgst.c316 EVP_MD_CTX *mctx = NULL; in dgst_main() local
319 if (BIO_get_md_ctx(bmd, &mctx) <= 0) { in dgst_main()
325 r = EVP_DigestVerifyInit(mctx, &pctx, md, impl, sigkey); in dgst_main()
327 r = EVP_DigestSignInit(mctx, &pctx, md, impl, sigkey); in dgst_main()
347 EVP_MD_CTX *mctx = NULL; in dgst_main() local
348 if (BIO_get_md_ctx(bmd, &mctx) <= 0) { in dgst_main()
355 if (!EVP_DigestInit_ex(mctx, md, impl)) { in dgst_main()
Dreq.c1648 EVP_MD_CTX *mctx = EVP_MD_CTX_new(); in do_X509_sign() local
1650 rv = do_sign_init(mctx, pkey, md, sigopts); in do_X509_sign()
1652 rv = X509_sign_ctx(x, mctx); in do_X509_sign()
1653 EVP_MD_CTX_free(mctx); in do_X509_sign()
1661 EVP_MD_CTX *mctx = EVP_MD_CTX_new(); in do_X509_REQ_sign() local
1662 rv = do_sign_init(mctx, pkey, md, sigopts); in do_X509_REQ_sign()
1664 rv = X509_REQ_sign_ctx(x, mctx); in do_X509_REQ_sign()
1665 EVP_MD_CTX_free(mctx); in do_X509_REQ_sign()
1673 EVP_MD_CTX *mctx = EVP_MD_CTX_new(); in do_X509_CRL_sign() local
1674 rv = do_sign_init(mctx, pkey, md, sigopts); in do_X509_CRL_sign()
[all …]
/third_party/openssl/ssl/statem/
Dextensions.c1475 EVP_MD_CTX *mctx = NULL; in tls_psk_do_binder() local
1537 mctx = EVP_MD_CTX_new(); in tls_psk_do_binder()
1538 if (mctx == NULL in tls_psk_do_binder()
1539 || EVP_DigestInit_ex(mctx, md, NULL) <= 0 in tls_psk_do_binder()
1540 || EVP_DigestFinal_ex(mctx, hash, NULL) <= 0) { in tls_psk_do_binder()
1559 if (EVP_DigestInit_ex(mctx, md, NULL) <= 0) { in tls_psk_do_binder()
1603 if (EVP_DigestUpdate(mctx, hdata, hdatalen) <= 0) { in tls_psk_do_binder()
1610 if (EVP_DigestUpdate(mctx, msgstart, binderoffset) <= 0 in tls_psk_do_binder()
1611 || EVP_DigestFinal_ex(mctx, hash, NULL) <= 0) { in tls_psk_do_binder()
1629 if (EVP_DigestSignInit(mctx, NULL, md, NULL, mackey) <= 0 in tls_psk_do_binder()
[all …]
Dstatem_lib.c234 EVP_MD_CTX *mctx = NULL; in tls_construct_cert_verify() local
255 mctx = EVP_MD_CTX_new(); in tls_construct_cert_verify()
256 if (mctx == NULL) { in tls_construct_cert_verify()
281 if (EVP_DigestSignInit(mctx, &pctx, md, NULL, pkey) <= 0) { in tls_construct_cert_verify()
297 if (EVP_DigestSignUpdate(mctx, hdata, hdatalen) <= 0 in tls_construct_cert_verify()
298 || !EVP_MD_CTX_ctrl(mctx, EVP_CTRL_SSL3_MASTER_SECRET, in tls_construct_cert_verify()
301 || EVP_DigestSignFinal(mctx, sig, &siglen) <= 0) { in tls_construct_cert_verify()
307 } else if (EVP_DigestSign(mctx, sig, &siglen, hdata, hdatalen) <= 0) { in tls_construct_cert_verify()
337 EVP_MD_CTX_free(mctx); in tls_construct_cert_verify()
341 EVP_MD_CTX_free(mctx); in tls_construct_cert_verify()
[all …]
/third_party/openssl/crypto/pkcs7/
Dpk7_doit.c615 static int do_pkcs7_signed_attrib(PKCS7_SIGNER_INFO *si, EVP_MD_CTX *mctx) in do_pkcs7_signed_attrib() argument
629 if (!EVP_DigestFinal_ex(mctx, md_data, &md_len)) { in do_pkcs7_signed_attrib()
821 EVP_MD_CTX *mctx; in PKCS7_SIGNER_INFO_sign() local
832 mctx = EVP_MD_CTX_new(); in PKCS7_SIGNER_INFO_sign()
833 if (mctx == NULL) { in PKCS7_SIGNER_INFO_sign()
838 if (EVP_DigestSignInit(mctx, &pctx, md, NULL, si->pkey) <= 0) in PKCS7_SIGNER_INFO_sign()
851 if (EVP_DigestSignUpdate(mctx, abuf, alen) <= 0) in PKCS7_SIGNER_INFO_sign()
855 if (EVP_DigestSignFinal(mctx, NULL, &siglen) <= 0) in PKCS7_SIGNER_INFO_sign()
860 if (EVP_DigestSignFinal(mctx, abuf, &siglen) <= 0) in PKCS7_SIGNER_INFO_sign()
869 EVP_MD_CTX_free(mctx); in PKCS7_SIGNER_INFO_sign()
[all …]
/third_party/openssl/crypto/engine/
Deng_openssl.c514 static int ossl_hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in ossl_hmac_signctx_init() argument
516 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); in ossl_hmac_signctx_init()
517 EVP_MD_CTX_set_update_fn(mctx, ossl_int_update); in ossl_hmac_signctx_init()
522 size_t *siglen, EVP_MD_CTX *mctx) in ossl_hmac_signctx() argument
526 int l = EVP_MD_CTX_size(mctx); in ossl_hmac_signctx()
/third_party/openssl/include/crypto/
Devp.h64 int (*signctx_init) (EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx);
66 EVP_MD_CTX *mctx);
67 int (*verifyctx_init) (EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx);
69 EVP_MD_CTX *mctx);
89 int (*digest_custom) (EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx);
/third_party/gstreamer/gstplugins_bad/ext/mdns/
Dgstmicrodnsdevice.c347 struct mdns_ctx *mctx; in _listen() local
351 if ((r = mdns_init (&mctx, MDNS_ADDR_IPV4, MDNS_PORT)) < 0) in _listen()
356 if ((r = mdns_listen (mctx, ppsz_names, i_nb_names, RR_PTR, in _listen()
358 mdns_destroy (mctx); in _listen()
/third_party/openssl/crypto/sm2/
Dsm2_pmeth.c260 static int pkey_sm2_digest_custom(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in pkey_sm2_digest_custom() argument
265 const EVP_MD *md = EVP_MD_CTX_md(mctx); in pkey_sm2_digest_custom()
287 return EVP_DigestUpdate(mctx, z, (size_t)mdlen); in pkey_sm2_digest_custom()

12