/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() 865 if (prsactx->mdctx == NULL) { in rsa_digest_signverify_init() 866 prsactx->mdctx = EVP_MD_CTX_new(); in rsa_digest_signverify_init() 867 if (prsactx->mdctx == NULL) in rsa_digest_signverify_init() 871 if (!EVP_DigestInit_ex2(prsactx->mdctx, prsactx->md, params)) in rsa_digest_signverify_init() 877 EVP_MD_CTX_free(prsactx->mdctx); in rsa_digest_signverify_init() 878 prsactx->mdctx = NULL; in rsa_digest_signverify_init() 888 if (prsactx == NULL || prsactx->mdctx == NULL) in rsa_digest_signverify_update() [all …]
|
/third_party/node/deps/openssl/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() 865 if (prsactx->mdctx == NULL) { in rsa_digest_signverify_init() 866 prsactx->mdctx = EVP_MD_CTX_new(); in rsa_digest_signverify_init() 867 if (prsactx->mdctx == NULL) in rsa_digest_signverify_init() 871 if (!EVP_DigestInit_ex2(prsactx->mdctx, prsactx->md, params)) in rsa_digest_signverify_init() 877 EVP_MD_CTX_free(prsactx->mdctx); in rsa_digest_signverify_init() 878 prsactx->mdctx = NULL; in rsa_digest_signverify_init() 888 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 | 731 EVP_MD_CTX *mdctx; local 777 mdctx = EVP_MD_CTX_create(); 778 if (!mdctx) 781 if (EVP_DigestInit_ex(mdctx, EVP_sha256(), NULL) != 1) { 782 EVP_MD_CTX_destroy(mdctx); 788 EVP_DigestUpdate(mdctx, &info->ssl_client_options_set, 793 EVP_DigestUpdate(mdctx, &info->ssl_client_options_clear, 798 EVP_DigestUpdate(mdctx, cipher_list, strlen(cipher_list)); 802 EVP_DigestUpdate(mdctx, info->client_tls_1_3_plus_cipher_list, 808 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/node/deps/openssl/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/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 | 1464 EVP_MD_CTX *mdctx = NULL; in test_siphash_digestsign() local 1478 if (!TEST_ptr(mdctx = EVP_MD_CTX_create())) in test_siphash_digestsign() 1481 if (!TEST_true(EVP_DigestSignInit(mdctx, &ctx, NULL, NULL, pkey))) in test_siphash_digestsign() 1488 if (!TEST_true(EVP_DigestSignInit(mdctx, NULL, NULL, NULL, NULL))) in test_siphash_digestsign() 1490 if (!TEST_true(EVP_DigestSignUpdate(mdctx, buf, 8))) in test_siphash_digestsign() 1492 if (!TEST_true(EVP_DigestSignFinal(mdctx, digest, &len))) in test_siphash_digestsign() 1500 EVP_MD_CTX_free(mdctx); in test_siphash_digestsign() 2324 EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); in get_cmac_val() local 2329 if (!TEST_ptr(mdctx) in get_cmac_val() 2330 || !TEST_true(EVP_DigestSignInit_ex(mdctx, NULL, NULL, testctx, in get_cmac_val() [all …]
|
/third_party/node/deps/openssl/openssl/ssl/ |
D | tls13_enc.c | 438 EVP_MD_CTX *mdctx = NULL; in quic_change_cipher_state() local 476 mdctx = EVP_MD_CTX_new(); in quic_change_cipher_state() 477 if (mdctx == NULL) { in quic_change_cipher_state() 482 if (md == NULL || !EVP_DigestInit_ex(mdctx, md, NULL) in quic_change_cipher_state() 483 || !EVP_DigestUpdate(mdctx, hdata, handlen) in quic_change_cipher_state() 484 || !EVP_DigestFinal_ex(mdctx, hash, &hashlenui)) { in quic_change_cipher_state() 486 EVP_MD_CTX_free(mdctx); in quic_change_cipher_state() 490 EVP_MD_CTX_free(mdctx); in quic_change_cipher_state() 687 EVP_MD_CTX *mdctx = NULL; in tls13_change_cipher_state() local 730 mdctx = EVP_MD_CTX_new(); in tls13_change_cipher_state() [all …]
|
/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/node/deps/openssl/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/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/node/src/crypto/ |
D | crypto_sig.cc | 76 EVPMDPointer&& mdctx, in ValidateDSAParameters() argument 83 if (!EVP_DigestFinal_ex(mdctx.get(), m, &m_len)) in ValidateDSAParameters() 98 EVP_PKEY_CTX_set_signature_md(pkctx.get(), EVP_MD_CTX_md(mdctx.get())) && in ValidateDSAParameters() 396 EVPMDPointer mdctx = std::move(mdctx_); in SignFinal() local 402 Node_SignFinal(env(), std::move(mdctx), pkey, padding, salt_len); in SignFinal() 518 EVPMDPointer mdctx = std::move(mdctx_); in VerifyFinal() local 520 if (!EVP_DigestFinal_ex(mdctx.get(), m, &m_len)) in VerifyFinal() 528 EVP_MD_CTX_md(mdctx.get())) > 0) { in VerifyFinal()
|
/third_party/openssl/doc/man3/ |
D | EVP_DigestInit.pod | 679 EVP_MD_CTX *mdctx; 697 mdctx = EVP_MD_CTX_new(); 698 if (!EVP_DigestInit_ex2(mdctx, md, NULL)) { 700 EVP_MD_CTX_free(mdctx); 703 if (!EVP_DigestUpdate(mdctx, mess1, strlen(mess1))) { 705 EVP_MD_CTX_free(mdctx); 708 if (!EVP_DigestUpdate(mdctx, mess2, strlen(mess2))) { 710 EVP_MD_CTX_free(mdctx); 713 if (!EVP_DigestFinal_ex(mdctx, md_value, &md_len)) { 715 EVP_MD_CTX_free(mdctx); [all …]
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-genhash.h | 66 EVP_MD_CTX *mdctx; member
|