Home
last modified time | relevance | path

Searched refs:EVP_DigestUpdate (Results 1 – 25 of 139) sorted by relevance

123456

/third_party/openssl/apps/
Dpasswd.c378 || !EVP_DigestUpdate(md, passwd, passwd_len)) in md5crypt()
382 if (!EVP_DigestUpdate(md, ascii_dollar, 1) in md5crypt()
383 || !EVP_DigestUpdate(md, ascii_magic, magic_len) in md5crypt()
384 || !EVP_DigestUpdate(md, ascii_dollar, 1)) in md5crypt()
387 if (!EVP_DigestUpdate(md, ascii_salt, salt_len)) in md5crypt()
393 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
394 || !EVP_DigestUpdate(md2, ascii_salt, salt_len) in md5crypt()
395 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
400 if (!EVP_DigestUpdate(md, buf, sizeof(buf))) in md5crypt()
403 if (!EVP_DigestUpdate(md, buf, i)) in md5crypt()
[all …]
/third_party/node/deps/openssl/openssl/apps/
Dpasswd.c378 || !EVP_DigestUpdate(md, passwd, passwd_len)) in md5crypt()
382 if (!EVP_DigestUpdate(md, ascii_dollar, 1) in md5crypt()
383 || !EVP_DigestUpdate(md, ascii_magic, magic_len) in md5crypt()
384 || !EVP_DigestUpdate(md, ascii_dollar, 1)) in md5crypt()
387 if (!EVP_DigestUpdate(md, ascii_salt, salt_len)) in md5crypt()
393 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
394 || !EVP_DigestUpdate(md2, ascii_salt, salt_len) in md5crypt()
395 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
400 if (!EVP_DigestUpdate(md, buf, sizeof(buf))) in md5crypt()
403 if (!EVP_DigestUpdate(md, buf, i)) in md5crypt()
[all …]
/third_party/openssl/crypto/ec/curve448/
Deddsa.c39 || !EVP_DigestUpdate(hashctx, in, inlen) in oneshot_hash()
85 || !EVP_DigestUpdate(hashctx, dom_s, strlen(dom_s)) in hash_init_with_dom()
86 || !EVP_DigestUpdate(hashctx, dom, sizeof(dom)) in hash_init_with_dom()
87 || !EVP_DigestUpdate(hashctx, context, context_len)) { in hash_init_with_dom()
195 || !EVP_DigestUpdate(hashctx, in ossl_c448_ed448_sign()
198 || !EVP_DigestUpdate(hashctx, message, message_len)) { in ossl_c448_ed448_sign()
237 || !EVP_DigestUpdate(hashctx, nonce_point, sizeof(nonce_point)) in ossl_c448_ed448_sign()
238 || !EVP_DigestUpdate(hashctx, pubkey, EDDSA_448_PUBLIC_BYTES) in ossl_c448_ed448_sign()
239 || !EVP_DigestUpdate(hashctx, message, message_len) in ossl_c448_ed448_sign()
336 || !EVP_DigestUpdate(hashctx, signature, EDDSA_448_PUBLIC_BYTES) in ossl_c448_ed448_verify()
[all …]
/third_party/node/deps/openssl/openssl/crypto/ec/curve448/
Deddsa.c39 || !EVP_DigestUpdate(hashctx, in, inlen) in oneshot_hash()
85 || !EVP_DigestUpdate(hashctx, dom_s, strlen(dom_s)) in hash_init_with_dom()
86 || !EVP_DigestUpdate(hashctx, dom, sizeof(dom)) in hash_init_with_dom()
87 || !EVP_DigestUpdate(hashctx, context, context_len)) { in hash_init_with_dom()
195 || !EVP_DigestUpdate(hashctx, in ossl_c448_ed448_sign()
198 || !EVP_DigestUpdate(hashctx, message, message_len)) { in ossl_c448_ed448_sign()
237 || !EVP_DigestUpdate(hashctx, nonce_point, sizeof(nonce_point)) in ossl_c448_ed448_sign()
238 || !EVP_DigestUpdate(hashctx, pubkey, EDDSA_448_PUBLIC_BYTES) in ossl_c448_ed448_sign()
239 || !EVP_DigestUpdate(hashctx, message, message_len) in ossl_c448_ed448_sign()
336 || !EVP_DigestUpdate(hashctx, signature, EDDSA_448_PUBLIC_BYTES) in ossl_c448_ed448_verify()
[all …]
/third_party/openssl/crypto/ct/
Dct_vfy.c58 if (!EVP_DigestUpdate(ctx, tmpbuf, p - tmpbuf)) in sct_ctx_update()
65 if (!EVP_DigestUpdate(ctx, sctx->ihash, sctx->ihashlen)) in sct_ctx_update()
79 if (!EVP_DigestUpdate(ctx, tmpbuf, 3)) in sct_ctx_update()
81 if (!EVP_DigestUpdate(ctx, der, derlen)) in sct_ctx_update()
87 if (!EVP_DigestUpdate(ctx, tmpbuf, 2)) in sct_ctx_update()
90 if (sct->ext_len && !EVP_DigestUpdate(ctx, sct->ext, sct->ext_len)) in sct_ctx_update()
/third_party/node/deps/openssl/openssl/crypto/ct/
Dct_vfy.c58 if (!EVP_DigestUpdate(ctx, tmpbuf, p - tmpbuf)) in sct_ctx_update()
65 if (!EVP_DigestUpdate(ctx, sctx->ihash, sctx->ihashlen)) in sct_ctx_update()
79 if (!EVP_DigestUpdate(ctx, tmpbuf, 3)) in sct_ctx_update()
81 if (!EVP_DigestUpdate(ctx, der, derlen)) in sct_ctx_update()
87 if (!EVP_DigestUpdate(ctx, tmpbuf, 2)) in sct_ctx_update()
90 if (sct->ext_len && !EVP_DigestUpdate(ctx, sct->ext, sct->ext_len)) in sct_ctx_update()
/third_party/openssl/ssl/
Ds3_enc.c51 || !EVP_DigestUpdate(s1, buf, k) in ssl3_generate_key_block()
52 || !EVP_DigestUpdate(s1, s->session->master_key, in ssl3_generate_key_block()
54 || !EVP_DigestUpdate(s1, s->s3.server_random, SSL3_RANDOM_SIZE) in ssl3_generate_key_block()
55 || !EVP_DigestUpdate(s1, s->s3.client_random, SSL3_RANDOM_SIZE) in ssl3_generate_key_block()
58 || !EVP_DigestUpdate(m5, s->session->master_key, in ssl3_generate_key_block()
60 || !EVP_DigestUpdate(m5, smd, SHA_DIGEST_LENGTH)) { in ssl3_generate_key_block()
358 ret = EVP_DigestUpdate(s->s3.handshake_dgst, buf, len); in ssl3_finish_mac()
393 || !EVP_DigestUpdate(s->s3.handshake_dgst, hdata, hdatalen)) { in ssl3_digest_cached_records()
455 if (EVP_DigestUpdate(ctx, sender, len) <= 0 in ssl3_final_finish_mac()
495 || EVP_DigestUpdate(ctx, salt[i], in ssl3_generate_master_secret()
[all …]
Ds3_cbc.c492 if (EVP_DigestUpdate(md_ctx, mac_secret, mac_secret_length) <= 0 in ssl3_cbc_digest_record()
493 || EVP_DigestUpdate(md_ctx, hmac_pad, sslv3_pad_length) <= 0 in ssl3_cbc_digest_record()
494 || EVP_DigestUpdate(md_ctx, mac_out, md_size) <= 0) in ssl3_cbc_digest_record()
501 if (EVP_DigestUpdate(md_ctx, hmac_pad, md_block_size) <= 0 in ssl3_cbc_digest_record()
502 || EVP_DigestUpdate(md_ctx, mac_out, md_size) <= 0) in ssl3_cbc_digest_record()
/third_party/node/deps/openssl/openssl/ssl/
Ds3_enc.c51 || !EVP_DigestUpdate(s1, buf, k) in ssl3_generate_key_block()
52 || !EVP_DigestUpdate(s1, s->session->master_key, in ssl3_generate_key_block()
54 || !EVP_DigestUpdate(s1, s->s3.server_random, SSL3_RANDOM_SIZE) in ssl3_generate_key_block()
55 || !EVP_DigestUpdate(s1, s->s3.client_random, SSL3_RANDOM_SIZE) in ssl3_generate_key_block()
58 || !EVP_DigestUpdate(m5, s->session->master_key, in ssl3_generate_key_block()
60 || !EVP_DigestUpdate(m5, smd, SHA_DIGEST_LENGTH)) { in ssl3_generate_key_block()
362 ret = EVP_DigestUpdate(s->s3.handshake_dgst, buf, len); in ssl3_finish_mac()
397 || !EVP_DigestUpdate(s->s3.handshake_dgst, hdata, hdatalen)) { in ssl3_digest_cached_records()
459 if (EVP_DigestUpdate(ctx, sender, len) <= 0 in ssl3_final_finish_mac()
499 || EVP_DigestUpdate(ctx, salt[i], in ssl3_generate_master_secret()
[all …]
Ds3_cbc.c492 if (EVP_DigestUpdate(md_ctx, mac_secret, mac_secret_length) <= 0 in ssl3_cbc_digest_record()
493 || EVP_DigestUpdate(md_ctx, hmac_pad, sslv3_pad_length) <= 0 in ssl3_cbc_digest_record()
494 || EVP_DigestUpdate(md_ctx, mac_out, md_size) <= 0) in ssl3_cbc_digest_record()
501 if (EVP_DigestUpdate(md_ctx, hmac_pad, md_block_size) <= 0 in ssl3_cbc_digest_record()
502 || EVP_DigestUpdate(md_ctx, mac_out, md_size) <= 0) in ssl3_cbc_digest_record()
/third_party/node/deps/openssl/openssl/crypto/sm2/
Dsm2_sign.c82 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
87 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
92 if (id_len > 0 && !EVP_DigestUpdate(hash, id, id_len)) { in ossl_sm2_compute_z_digest()
110 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
112 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
117 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
119 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
124 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
126 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
178 || !EVP_DigestUpdate(hash, z, md_size) in sm2_compute_msg_hash()
[all …]
Dsm2_crypt.c223 || EVP_DigestUpdate(hash, x2y2, field_size) == 0 in ossl_sm2_encrypt()
224 || EVP_DigestUpdate(hash, msg, msg_len) == 0 in ossl_sm2_encrypt()
225 || EVP_DigestUpdate(hash, x2y2 + field_size, field_size) == 0 in ossl_sm2_encrypt()
377 || !EVP_DigestUpdate(hash, x2y2, field_size) in ossl_sm2_decrypt()
378 || !EVP_DigestUpdate(hash, ptext_buf, msg_len) in ossl_sm2_decrypt()
379 || !EVP_DigestUpdate(hash, x2y2 + field_size, field_size) in ossl_sm2_decrypt()
/third_party/openssl/crypto/sm2/
Dsm2_sign.c82 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
87 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
92 if (id_len > 0 && !EVP_DigestUpdate(hash, id, id_len)) { in ossl_sm2_compute_z_digest()
110 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
112 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
117 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
119 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
124 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
126 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
178 || !EVP_DigestUpdate(hash, z, md_size) in sm2_compute_msg_hash()
[all …]
Dsm2_crypt.c223 || EVP_DigestUpdate(hash, x2y2, field_size) == 0 in ossl_sm2_encrypt()
224 || EVP_DigestUpdate(hash, msg, msg_len) == 0 in ossl_sm2_encrypt()
225 || EVP_DigestUpdate(hash, x2y2 + field_size, field_size) == 0 in ossl_sm2_encrypt()
377 || !EVP_DigestUpdate(hash, x2y2, field_size) in ossl_sm2_decrypt()
378 || !EVP_DigestUpdate(hash, ptext_buf, msg_len) in ossl_sm2_decrypt()
379 || !EVP_DigestUpdate(hash, x2y2 + field_size, field_size) in ossl_sm2_decrypt()
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/
Dsshkdf.c246 if (!EVP_DigestUpdate(md, key, key_len)) in SSHKDF()
249 if (!EVP_DigestUpdate(md, xcghash, xcghash_len)) in SSHKDF()
252 if (!EVP_DigestUpdate(md, &type, 1)) in SSHKDF()
255 if (!EVP_DigestUpdate(md, session_id, session_id_len)) in SSHKDF()
274 if (!EVP_DigestUpdate(md, key, key_len)) in SSHKDF()
277 if (!EVP_DigestUpdate(md, xcghash, xcghash_len)) in SSHKDF()
280 if (!EVP_DigestUpdate(md, okey, cursize)) in SSHKDF()
/third_party/openssl/providers/implementations/kdfs/
Dsshkdf.c246 if (!EVP_DigestUpdate(md, key, key_len)) in SSHKDF()
249 if (!EVP_DigestUpdate(md, xcghash, xcghash_len)) in SSHKDF()
252 if (!EVP_DigestUpdate(md, &type, 1)) in SSHKDF()
255 if (!EVP_DigestUpdate(md, session_id, session_id_len)) in SSHKDF()
274 if (!EVP_DigestUpdate(md, key, key_len)) in SSHKDF()
277 if (!EVP_DigestUpdate(md, xcghash, xcghash_len)) in SSHKDF()
280 if (!EVP_DigestUpdate(md, okey, cursize)) in SSHKDF()
/third_party/openssl/crypto/evp/
Devp_key.c103 if (!EVP_DigestUpdate(c, &(md_buf[0]), mds)) in EVP_BytesToKey()
105 if (!EVP_DigestUpdate(c, data, datal)) in EVP_BytesToKey()
108 if (!EVP_DigestUpdate(c, salt, PKCS5_SALT_LEN)) in EVP_BytesToKey()
116 if (!EVP_DigestUpdate(c, &(md_buf[0]), mds)) in EVP_BytesToKey()
/third_party/node/deps/openssl/openssl/crypto/evp/
Devp_key.c103 if (!EVP_DigestUpdate(c, &(md_buf[0]), mds)) in EVP_BytesToKey()
105 if (!EVP_DigestUpdate(c, data, datal)) in EVP_BytesToKey()
108 if (!EVP_DigestUpdate(c, salt, PKCS5_SALT_LEN)) in EVP_BytesToKey()
116 if (!EVP_DigestUpdate(c, &(md_buf[0]), mds)) in EVP_BytesToKey()
/third_party/node/deps/openssl/openssl/crypto/rsa/
Drsa_pss.c122 || !EVP_DigestUpdate(ctx, zeroes, sizeof(zeroes)) in RSA_verify_PKCS1_PSS_mgf1()
123 || !EVP_DigestUpdate(ctx, mHash, hLen)) in RSA_verify_PKCS1_PSS_mgf1()
126 if (!EVP_DigestUpdate(ctx, DB + i, maskedDBLen - i)) in RSA_verify_PKCS1_PSS_mgf1()
217 || !EVP_DigestUpdate(ctx, zeroes, sizeof(zeroes)) in RSA_padding_add_PKCS1_PSS_mgf1()
218 || !EVP_DigestUpdate(ctx, mHash, hLen)) in RSA_padding_add_PKCS1_PSS_mgf1()
220 if (sLen && !EVP_DigestUpdate(ctx, salt, sLen)) in RSA_padding_add_PKCS1_PSS_mgf1()
/third_party/openssl/crypto/rsa/
Drsa_pss.c122 || !EVP_DigestUpdate(ctx, zeroes, sizeof(zeroes)) in RSA_verify_PKCS1_PSS_mgf1()
123 || !EVP_DigestUpdate(ctx, mHash, hLen)) in RSA_verify_PKCS1_PSS_mgf1()
126 if (!EVP_DigestUpdate(ctx, DB + i, maskedDBLen - i)) in RSA_verify_PKCS1_PSS_mgf1()
217 || !EVP_DigestUpdate(ctx, zeroes, sizeof(zeroes)) in RSA_padding_add_PKCS1_PSS_mgf1()
218 || !EVP_DigestUpdate(ctx, mHash, hLen)) in RSA_padding_add_PKCS1_PSS_mgf1()
220 if (sLen && !EVP_DigestUpdate(ctx, salt, sLen)) in RSA_padding_add_PKCS1_PSS_mgf1()
/third_party/openssl/providers/implementations/rands/
Ddrbg_hash.c104 && EVP_DigestUpdate(ctx, tmp, tmp_sz) in hash_df()
105 && EVP_DigestUpdate(ctx, in, inlen) in hash_df()
106 && (in2 == NULL || EVP_DigestUpdate(ctx, in2, in2len)) in hash_df()
107 && (in3 == NULL || EVP_DigestUpdate(ctx, in3, in3len)))) in hash_df()
182 && EVP_DigestUpdate(ctx, &inbyte, 1) in add_hash_to_v()
183 && EVP_DigestUpdate(ctx, hash->V, drbg->seedlen) in add_hash_to_v()
184 && (adin == NULL || EVP_DigestUpdate(ctx, adin, adinlen)) in add_hash_to_v()
218 || !EVP_DigestUpdate(hash->ctx, hash->vtmp, drbg->seedlen)) in hash_gen()
/third_party/node/deps/openssl/openssl/providers/implementations/rands/
Ddrbg_hash.c104 && EVP_DigestUpdate(ctx, tmp, tmp_sz) in hash_df()
105 && EVP_DigestUpdate(ctx, in, inlen) in hash_df()
106 && (in2 == NULL || EVP_DigestUpdate(ctx, in2, in2len)) in hash_df()
107 && (in3 == NULL || EVP_DigestUpdate(ctx, in3, in3len)))) in hash_df()
182 && EVP_DigestUpdate(ctx, &inbyte, 1) in add_hash_to_v()
183 && EVP_DigestUpdate(ctx, hash->V, drbg->seedlen) in add_hash_to_v()
184 && (adin == NULL || EVP_DigestUpdate(ctx, adin, adinlen)) in add_hash_to_v()
218 || !EVP_DigestUpdate(hash->ctx, hash->vtmp, drbg->seedlen)) in hash_gen()
/third_party/openssl/crypto/hmac/
Dhmac.c62 || !EVP_DigestUpdate(ctx->md_ctx, key, len) in HMAC_Init_ex()
79 || !EVP_DigestUpdate(ctx->i_ctx, pad, in HMAC_Init_ex()
86 || !EVP_DigestUpdate(ctx->o_ctx, pad, in HMAC_Init_ex()
114 return EVP_DigestUpdate(ctx->md_ctx, data, len); in HMAC_Update()
129 if (!EVP_DigestUpdate(ctx->md_ctx, buf, i)) in HMAC_Final()
/third_party/node/deps/openssl/openssl/crypto/hmac/
Dhmac.c62 || !EVP_DigestUpdate(ctx->md_ctx, key, len) in HMAC_Init_ex()
79 || !EVP_DigestUpdate(ctx->i_ctx, pad, in HMAC_Init_ex()
86 || !EVP_DigestUpdate(ctx->o_ctx, pad, in HMAC_Init_ex()
114 return EVP_DigestUpdate(ctx->md_ctx, data, len); in HMAC_Update()
129 if (!EVP_DigestUpdate(ctx->md_ctx, buf, i)) in HMAC_Final()
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-client.c788 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);
812 EVP_DigestUpdate(mdctx, ca_filepath, strlen(ca_filepath));
815 EVP_DigestUpdate(mdctx, cert_filepath, strlen(cert_filepath));
818 EVP_DigestUpdate(mdctx, private_key_filepath,
821 EVP_DigestUpdate(mdctx, ca_mem, ca_mem_len);
824 EVP_DigestUpdate(mdctx, cert_mem, cert_mem_len);

123456