/third_party/openssl/providers/implementations/signature/ |
D | dsa_sig.c | 87 EVP_MD_CTX *mdctx; member 159 EVP_MD_CTX_free(ctx->mdctx); in dsa_setup_md() 179 ctx->mdctx = NULL; in dsa_setup_md() 291 if (pdsactx->mdctx == NULL) { in dsa_digest_signverify_init() 292 pdsactx->mdctx = EVP_MD_CTX_new(); in dsa_digest_signverify_init() 293 if (pdsactx->mdctx == NULL) in dsa_digest_signverify_init() 297 if (!EVP_DigestInit_ex2(pdsactx->mdctx, pdsactx->md, params)) in dsa_digest_signverify_init() 303 EVP_MD_CTX_free(pdsactx->mdctx); in dsa_digest_signverify_init() 304 pdsactx->mdctx = NULL; in dsa_digest_signverify_init() 327 if (pdsactx == NULL || pdsactx->mdctx == NULL) in dsa_digest_signverify_update() [all …]
|
D | ecdsa_sig.c | 85 EVP_MD_CTX *mdctx; member 261 EVP_MD_CTX_free(ctx->mdctx); in ecdsa_setup_md() 273 ctx->mdctx = NULL; in ecdsa_setup_md() 296 if (ctx->mdctx == NULL) { in ecdsa_digest_signverify_init() 297 ctx->mdctx = EVP_MD_CTX_new(); in ecdsa_digest_signverify_init() 298 if (ctx->mdctx == NULL) in ecdsa_digest_signverify_init() 302 if (!EVP_DigestInit_ex2(ctx->mdctx, ctx->md, params)) in ecdsa_digest_signverify_init() 306 EVP_MD_CTX_free(ctx->mdctx); in ecdsa_digest_signverify_init() 307 ctx->mdctx = NULL; in ecdsa_digest_signverify_init() 330 if (ctx == NULL || ctx->mdctx == NULL) in ecdsa_digest_signverify_update() [all …]
|
D | sm2_sig.c | 85 EVP_MD_CTX *mdctx; member 198 EVP_MD_CTX_free(ctx->mdctx); in free_md() 200 ctx->mdctx = NULL; in free_md() 216 if (ctx->mdctx == NULL) { in sm2sig_digest_signverify_init() 217 ctx->mdctx = EVP_MD_CTX_new(); in sm2sig_digest_signverify_init() 218 if (ctx->mdctx == NULL) in sm2sig_digest_signverify_init() 240 if (!EVP_DigestInit_ex2(ctx->mdctx, ctx->md, params)) in sm2sig_digest_signverify_init() 264 || !EVP_DigestUpdate(ctx->mdctx, z, ctx->mdsize)) in sm2sig_compute_z_digest() 277 if (psm2ctx == NULL || psm2ctx->mdctx == NULL) in sm2sig_digest_signverify_update() 281 && EVP_DigestUpdate(psm2ctx->mdctx, data, datalen); in sm2sig_digest_signverify_update() [all …]
|
D | rsa_sig.c | 92 EVP_MD_CTX *mdctx; member 335 EVP_MD_CTX_free(ctx->mdctx); in rsa_setup_md() 338 ctx->mdctx = NULL; in rsa_setup_md() 862 if (prsactx->mdctx == NULL) { in rsa_digest_signverify_init() 863 prsactx->mdctx = EVP_MD_CTX_new(); in rsa_digest_signverify_init() 864 if (prsactx->mdctx == NULL) in rsa_digest_signverify_init() 868 if (!EVP_DigestInit_ex2(prsactx->mdctx, prsactx->md, params)) in rsa_digest_signverify_init() 874 EVP_MD_CTX_free(prsactx->mdctx); in rsa_digest_signverify_init() 875 prsactx->mdctx = NULL; in rsa_digest_signverify_init() 885 if (prsactx == NULL || prsactx->mdctx == NULL) in rsa_digest_signverify_update() [all …]
|
/third_party/libwebsockets/lib/tls/openssl/ |
D | lws-genhash.c | 39 ctx->mdctx = EVP_MD_CTX_create(); in lws_genhash_init() 40 if (!ctx->mdctx) in lws_genhash_init() 63 if (EVP_DigestInit_ex(ctx->mdctx, ctx->evp_type, NULL) != 1) { in lws_genhash_init() 64 EVP_MD_CTX_destroy(ctx->mdctx); in lws_genhash_init() 78 return EVP_DigestUpdate(ctx->mdctx, in, len) != 1; in lws_genhash_update() 87 if (!ctx->mdctx) in lws_genhash_destroy() 91 ret = EVP_DigestFinal_ex(ctx->mdctx, result, &len) != 1; in lws_genhash_destroy() 95 EVP_MD_CTX_destroy(ctx->mdctx); in lws_genhash_destroy() 96 ctx->mdctx = NULL; in lws_genhash_destroy()
|
D | lws-genrsa.c | 335 EVP_MD_CTX *mdctx = NULL; local 363 mdctx = EVP_MD_CTX_create(); 364 if (!mdctx) 367 if (EVP_DigestSignInit(mdctx, NULL, md, NULL, 377 if (EVP_DigestSignUpdate(mdctx, in, (unsigned int)EVP_MD_size(md))) { 382 if (EVP_DigestSignFinal(mdctx, sig, &sig_len)) { 387 EVP_MD_CTX_free(mdctx); 398 if (mdctx) 399 EVP_MD_CTX_free(mdctx);
|
D | openssl-client.c | 727 EVP_MD_CTX *mdctx; local 773 mdctx = EVP_MD_CTX_create(); 774 if (!mdctx) 777 if (EVP_DigestInit_ex(mdctx, EVP_sha256(), NULL) != 1) { 778 EVP_MD_CTX_destroy(mdctx); 784 EVP_DigestUpdate(mdctx, &info->ssl_client_options_set, 789 EVP_DigestUpdate(mdctx, &info->ssl_client_options_clear, 794 EVP_DigestUpdate(mdctx, cipher_list, strlen(cipher_list)); 798 EVP_DigestUpdate(mdctx, info->client_tls_1_3_plus_cipher_list, 804 EVP_DigestUpdate(mdctx, &c, 1); [all …]
|
D | lws-genec.c | 479 EVP_MD_CTX *mdctx = NULL; 487 mdctx = EVP_MD_CTX_create(); 488 if (!mdctx) 491 if (EVP_DigestSignInit(mdctx, NULL, md, NULL, 497 if (EVP_DigestSignUpdate(mdctx, in, EVP_MD_size(md))) { 502 if (EVP_DigestSignFinal(mdctx, sig, &sig_len)) { 508 EVP_MD_CTX_free(mdctx); 512 if (mdctx) 513 EVP_MD_CTX_free(mdctx);
|
/third_party/openssl/crypto/bn/ |
D | bn_rand.c | 255 EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); in BN_generate_dsa_nonce() local 271 if (mdctx == NULL) in BN_generate_dsa_nonce() 298 if (!EVP_DigestInit_ex(mdctx, md, NULL) in BN_generate_dsa_nonce() 299 || !EVP_DigestUpdate(mdctx, &done, sizeof(done)) in BN_generate_dsa_nonce() 300 || !EVP_DigestUpdate(mdctx, private_bytes, in BN_generate_dsa_nonce() 302 || !EVP_DigestUpdate(mdctx, message, message_len) in BN_generate_dsa_nonce() 303 || !EVP_DigestUpdate(mdctx, random_bytes, sizeof(random_bytes)) in BN_generate_dsa_nonce() 304 || !EVP_DigestFinal_ex(mdctx, digest, NULL)) in BN_generate_dsa_nonce() 321 EVP_MD_CTX_free(mdctx); in BN_generate_dsa_nonce()
|
/third_party/openssl/test/ |
D | p_test.c | 139 EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); in p_get_params() local 169 && mdctx != NULL) { in p_get_params() 170 if (EVP_DigestInit_ex(mdctx, md4, NULL) in p_get_params() 171 && EVP_DigestUpdate(mdctx, (const unsigned char *)msg, in p_get_params() 173 && EVP_DigestFinal(mdctx, out, NULL)) in p_get_params() 176 EVP_MD_CTX_free(mdctx); in p_get_params()
|
D | threadstest.c | 310 EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); in thread_general_worker() local 334 if (!TEST_ptr(mdctx) in thread_general_worker() 342 if (!TEST_true(EVP_DigestInit_ex(mdctx, md, NULL)) in thread_general_worker() 343 || !TEST_true(EVP_DigestUpdate(mdctx, message, messlen)) in thread_general_worker() 344 || !TEST_true(EVP_DigestFinal(mdctx, out, &mdoutl))) in thread_general_worker() 367 EVP_MD_CTX_free(mdctx); in thread_general_worker()
|
D | algorithmid_test.c | 116 EVP_MD_CTX *mdctx = NULL; in test_x509_sig_aid() local 152 if (!TEST_ptr(mdctx = EVP_MD_CTX_new()) in test_x509_sig_aid() 153 || !TEST_true(EVP_DigestVerifyInit_ex(mdctx, &pctx, in test_x509_sig_aid() 182 EVP_MD_CTX_free(mdctx); in test_x509_sig_aid()
|
D | evp_extra_test.c | 1441 EVP_MD_CTX *mdctx = NULL; in test_siphash_digestsign() local 1455 if (!TEST_ptr(mdctx = EVP_MD_CTX_create())) in test_siphash_digestsign() 1458 if (!TEST_true(EVP_DigestSignInit(mdctx, &ctx, NULL, NULL, pkey))) in test_siphash_digestsign() 1465 if (!TEST_true(EVP_DigestSignInit(mdctx, NULL, NULL, NULL, NULL))) in test_siphash_digestsign() 1467 if (!TEST_true(EVP_DigestSignUpdate(mdctx, buf, 8))) in test_siphash_digestsign() 1469 if (!TEST_true(EVP_DigestSignFinal(mdctx, digest, &len))) in test_siphash_digestsign() 1477 EVP_MD_CTX_free(mdctx); in test_siphash_digestsign() 2301 EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); in get_cmac_val() local 2306 if (!TEST_ptr(mdctx) in get_cmac_val() 2307 || !TEST_true(EVP_DigestSignInit_ex(mdctx, NULL, NULL, testctx, in get_cmac_val() [all …]
|
D | evp_extra_test2.c | 1049 EVP_MD_CTX *mdctx = NULL; in test_evp_md_ctx_copy() local 1054 ret = TEST_ptr(mdctx = EVP_MD_CTX_new()) in test_evp_md_ctx_copy() 1056 && TEST_true(EVP_MD_CTX_copy_ex(copyctx, mdctx)); in test_evp_md_ctx_copy() 1058 EVP_MD_CTX_free(mdctx); in test_evp_md_ctx_copy()
|
/third_party/openssl/ssl/ |
D | tls13_enc.c | 478 EVP_MD_CTX *mdctx = NULL; in tls13_change_cipher_state() local 521 mdctx = EVP_MD_CTX_new(); in tls13_change_cipher_state() 522 if (mdctx == NULL) { in tls13_change_cipher_state() 534 EVP_MD_CTX_free(mdctx); in tls13_change_cipher_state() 539 if (md == NULL || !EVP_DigestInit_ex(mdctx, md, NULL) in tls13_change_cipher_state() 540 || !EVP_DigestUpdate(mdctx, hdata, handlen) in tls13_change_cipher_state() 541 || !EVP_DigestFinal_ex(mdctx, hashval, &hashlenui)) { in tls13_change_cipher_state() 543 EVP_MD_CTX_free(mdctx); in tls13_change_cipher_state() 547 EVP_MD_CTX_free(mdctx); in tls13_change_cipher_state()
|
/third_party/openssl/providers/implementations/kdfs/ |
D | tls1_prf.c | 74 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, 373 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, in tls1_prf_alg() argument 386 if (!tls1_prf_P_hash(mdctx, sec, L_S1, in tls1_prf_alg() 407 if (!tls1_prf_P_hash(mdctx, sec, slen, seed, seed_len, out, olen)) in tls1_prf_alg()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-genhash.h | 66 EVP_MD_CTX *mdctx; member
|
/third_party/openssl/doc/man3/ |
D | EVP_DigestInit.pod | 674 EVP_MD_CTX *mdctx; 692 mdctx = EVP_MD_CTX_new(); 693 EVP_DigestInit_ex2(mdctx, md, NULL); 694 EVP_DigestUpdate(mdctx, mess1, strlen(mess1)); 695 EVP_DigestUpdate(mdctx, mess2, strlen(mess2)); 696 EVP_DigestFinal_ex(mdctx, md_value, &md_len); 697 EVP_MD_CTX_free(mdctx);
|
/third_party/node/src/ |
D | node_crypto.cc | 4671 EVPMDPointer&& mdctx, in Node_SignFinal() argument 4678 if (!EVP_DigestFinal_ex(mdctx.get(), m, &m_len)) in Node_SignFinal() 4691 EVP_MD_CTX_md(mdctx.get())) > 0 && in Node_SignFinal() 4732 EVPMDPointer mdctx = std::move(mdctx_); in SignFinal() local 4738 Node_SignFinal(env(), std::move(mdctx), pkey, padding, salt_len); in SignFinal() 4828 EVPMDPointer mdctx(EVP_MD_CTX_new()); in SignOneShot() local 4829 if (!mdctx || in SignOneShot() 4830 !EVP_DigestSignInit(mdctx.get(), &pkctx, md, nullptr, key.get())) { in SignOneShot() 4840 if (!EVP_DigestSign(mdctx.get(), nullptr, &sig_len, input, data.length())) in SignOneShot() 4844 if (!EVP_DigestSign(mdctx.get(), in SignOneShot() [all …]
|