Home
last modified time | relevance | path

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

123

/third_party/openssl/apps/
Dpasswd.c375 || !EVP_DigestUpdate(md, passwd, passwd_len)) in md5crypt()
379 if (!EVP_DigestUpdate(md, ascii_dollar, 1) in md5crypt()
380 || !EVP_DigestUpdate(md, ascii_magic, magic_len) in md5crypt()
381 || !EVP_DigestUpdate(md, ascii_dollar, 1)) in md5crypt()
384 if (!EVP_DigestUpdate(md, ascii_salt, salt_len)) in md5crypt()
390 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
391 || !EVP_DigestUpdate(md2, ascii_salt, salt_len) in md5crypt()
392 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
397 if (!EVP_DigestUpdate(md, buf, sizeof(buf))) in md5crypt()
400 if (!EVP_DigestUpdate(md, buf, i)) in md5crypt()
[all …]
/third_party/openssl/crypto/ec/curve448/
Deddsa.c31 || !EVP_DigestUpdate(hashctx, in, inlen) in oneshot_hash()
69 || !EVP_DigestUpdate(hashctx, dom_s, strlen(dom_s)) in hash_init_with_dom()
70 || !EVP_DigestUpdate(hashctx, dom, sizeof(dom)) in hash_init_with_dom()
71 || !EVP_DigestUpdate(hashctx, context, context_len)) in hash_init_with_dom()
165 || !EVP_DigestUpdate(hashctx, in c448_ed448_sign()
168 || !EVP_DigestUpdate(hashctx, message, message_len)) { in c448_ed448_sign()
206 || !EVP_DigestUpdate(hashctx, nonce_point, sizeof(nonce_point)) in c448_ed448_sign()
207 || !EVP_DigestUpdate(hashctx, pubkey, EDDSA_448_PUBLIC_BYTES) in c448_ed448_sign()
208 || !EVP_DigestUpdate(hashctx, message, message_len) in c448_ed448_sign()
301 || !EVP_DigestUpdate(hashctx, signature, EDDSA_448_PUBLIC_BYTES) in 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/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()
366 ret = EVP_DigestUpdate(s->s3->handshake_dgst, buf, len); in ssl3_finish_mac()
399 || !EVP_DigestUpdate(s->s3->handshake_dgst, hdata, hdatalen)) { in ssl3_digest_cached_records()
451 if ((sender != NULL && EVP_DigestUpdate(ctx, sender, len) <= 0) in ssl3_final_finish_mac()
494 || EVP_DigestUpdate(ctx, salt[i], in ssl3_generate_master_secret()
[all …]
Ds3_cbc.c464 if (EVP_DigestUpdate(md_ctx, mac_secret, mac_secret_length) <= 0 in ssl3_cbc_digest_record()
465 || EVP_DigestUpdate(md_ctx, hmac_pad, sslv3_pad_length) <= 0 in ssl3_cbc_digest_record()
466 || EVP_DigestUpdate(md_ctx, mac_out, md_size) <= 0) in ssl3_cbc_digest_record()
473 if (EVP_DigestUpdate(md_ctx, hmac_pad, md_block_size) <= 0 in ssl3_cbc_digest_record()
474 || EVP_DigestUpdate(md_ctx, mac_out, md_size) <= 0) in ssl3_cbc_digest_record()
/third_party/openssl/crypto/sm2/
Dsm2_sign.c80 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in sm2_compute_z_digest()
85 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in sm2_compute_z_digest()
90 if (id_len > 0 && !EVP_DigestUpdate(hash, id, id_len)) { in sm2_compute_z_digest()
108 || !EVP_DigestUpdate(hash, buf, p_bytes) in sm2_compute_z_digest()
110 || !EVP_DigestUpdate(hash, buf, p_bytes) in sm2_compute_z_digest()
115 || !EVP_DigestUpdate(hash, buf, p_bytes) in sm2_compute_z_digest()
117 || !EVP_DigestUpdate(hash, buf, p_bytes) in sm2_compute_z_digest()
122 || !EVP_DigestUpdate(hash, buf, p_bytes) in sm2_compute_z_digest()
124 || !EVP_DigestUpdate(hash, buf, p_bytes) in sm2_compute_z_digest()
167 || !EVP_DigestUpdate(hash, z, md_size) in sm2_compute_msg_hash()
[all …]
Dsm2_crypt.c208 || EVP_DigestUpdate(hash, x2y2, field_size) == 0 in sm2_encrypt()
209 || EVP_DigestUpdate(hash, msg, msg_len) == 0 in sm2_encrypt()
210 || EVP_DigestUpdate(hash, x2y2 + field_size, field_size) == 0 in sm2_encrypt()
359 || !EVP_DigestUpdate(hash, x2y2, field_size) in sm2_decrypt()
360 || !EVP_DigestUpdate(hash, ptext_buf, msg_len) in sm2_decrypt()
361 || !EVP_DigestUpdate(hash, x2y2 + field_size, field_size) in sm2_decrypt()
/third_party/openssl/crypto/rsa/
Drsa_pss.c114 || !EVP_DigestUpdate(ctx, zeroes, sizeof(zeroes)) in RSA_verify_PKCS1_PSS_mgf1()
115 || !EVP_DigestUpdate(ctx, mHash, hLen)) in RSA_verify_PKCS1_PSS_mgf1()
118 if (!EVP_DigestUpdate(ctx, DB + i, maskedDBLen - i)) in RSA_verify_PKCS1_PSS_mgf1()
212 || !EVP_DigestUpdate(ctx, zeroes, sizeof(zeroes)) in RSA_padding_add_PKCS1_PSS_mgf1()
213 || !EVP_DigestUpdate(ctx, mHash, hLen)) in RSA_padding_add_PKCS1_PSS_mgf1()
215 if (sLen && !EVP_DigestUpdate(ctx, salt, sLen)) in RSA_padding_add_PKCS1_PSS_mgf1()
Drsa_oaep.c294 || !EVP_DigestUpdate(c, seed, seedlen) in PKCS1_MGF1()
295 || !EVP_DigestUpdate(c, cnt, 4)) in PKCS1_MGF1()
/third_party/openssl/crypto/evp/
Devp_key.c99 if (!EVP_DigestUpdate(c, &(md_buf[0]), mds)) in EVP_BytesToKey()
101 if (!EVP_DigestUpdate(c, data, datal)) in EVP_BytesToKey()
104 if (!EVP_DigestUpdate(c, salt, PKCS5_SALT_LEN)) in EVP_BytesToKey()
112 if (!EVP_DigestUpdate(c, &(md_buf[0]), mds)) in EVP_BytesToKey()
Dp5_crpt.c84 if (!EVP_DigestUpdate(ctx, pass, passlen)) in PKCS5_PBE_keyivgen()
86 if (!EVP_DigestUpdate(ctx, salt, saltlen)) in PKCS5_PBE_keyivgen()
98 if (!EVP_DigestUpdate(ctx, md_tmp, mdsize)) in PKCS5_PBE_keyivgen()
Dbio_md.c96 if (EVP_DigestUpdate(ctx, (unsigned char *)out, in md_read()
122 if (!EVP_DigestUpdate(ctx, (const unsigned char *)in, in md_write()
Dbio_ok.c475 if (!EVP_DigestUpdate(md, WELLKNOWN, strlen(WELLKNOWN))) in sig_out()
513 if (!EVP_DigestUpdate(md, WELLKNOWN, strlen(WELLKNOWN))) in sig_in()
554 if (!EVP_DigestUpdate(md, in block_out()
591 if (!EVP_DigestUpdate(md, in block_in()
Ddigest.c161 int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data, size_t count) in EVP_DigestUpdate() function
295 && EVP_DigestUpdate(ctx, data, count) in EVP_Digest()
/third_party/openssl/crypto/ec/
Decdh_kdf.c44 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()
/third_party/openssl/crypto/hmac/
Dhmac.c54 || !EVP_DigestUpdate(ctx->md_ctx, key, len) in HMAC_Init_ex()
71 || !EVP_DigestUpdate(ctx->i_ctx, pad, EVP_MD_block_size(md))) in HMAC_Init_ex()
77 || !EVP_DigestUpdate(ctx->o_ctx, pad, EVP_MD_block_size(md))) in HMAC_Init_ex()
104 return EVP_DigestUpdate(ctx->md_ctx, data, len); in HMAC_Update()
119 if (!EVP_DigestUpdate(ctx->md_ctx, buf, i)) in HMAC_Final()
/third_party/openssl/test/
Dmdc2test.c52 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen)) in test_mdc2()
60 if (!TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen)) in test_mdc2()
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-client.c784 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);
808 EVP_DigestUpdate(mdctx, ca_filepath, strlen(ca_filepath));
811 EVP_DigestUpdate(mdctx, cert_filepath, strlen(cert_filepath));
814 EVP_DigestUpdate(mdctx, private_key_filepath,
817 EVP_DigestUpdate(mdctx, ca_mem, ca_mem_len);
820 EVP_DigestUpdate(mdctx, cert_mem, cert_mem_len);
/third_party/openssl/crypto/srp/
Dsrp_lib.c137 || !EVP_DigestUpdate(ctxt, user, strlen(user)) in SRP_Calc_x()
138 || !EVP_DigestUpdate(ctxt, ":", 1) in SRP_Calc_x()
139 || !EVP_DigestUpdate(ctxt, pass, strlen(pass)) in SRP_Calc_x()
145 if (!EVP_DigestUpdate(ctxt, cs, BN_num_bytes(s))) in SRP_Calc_x()
148 if (!EVP_DigestUpdate(ctxt, dig, sizeof(dig)) in SRP_Calc_x()
/third_party/openssl/crypto/pkcs12/
Dp12_key.c127 || !EVP_DigestUpdate(ctx, D, v) in PKCS12_key_gen_uni()
128 || !EVP_DigestUpdate(ctx, I, Ilen) in PKCS12_key_gen_uni()
133 || !EVP_DigestUpdate(ctx, Ai, u) in PKCS12_key_gen_uni()
/third_party/openssl/doc/man3/
DEVP_DigestInit.pod8 EVP_Digest, EVP_DigestInit_ex, EVP_DigestInit, EVP_DigestUpdate,
32 int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, size_t cnt);
115 =item EVP_DigestUpdate()
127 no additional calls to EVP_DigestUpdate() can be made, but
134 After calling this function no additional calls to EVP_DigestUpdate() can be
190 This is the function that is called by EVP_DigestUpdate. If not set, the
295 EVP_DigestUpdate(),
399 EVP_DigestUpdate(mdctx, mess1, strlen(mess1));
400 EVP_DigestUpdate(mdctx, mess2, strlen(mess2));
/third_party/openssl/crypto/dh/
Ddh_kdf.c121 || !EVP_DigestUpdate(mctx, Z, Zlen)) in DH_KDF_X9_42()
127 if (!EVP_DigestUpdate(mctx, der, derlen)) in DH_KDF_X9_42()
/third_party/openssl/crypto/pem/
Dpem_sign.c24 return EVP_DigestUpdate(ctx, data, count); in PEM_SignUpdate()
/third_party/openssl/crypto/x509/
Dx509_cmp.c46 if (!EVP_DigestUpdate(ctx, (unsigned char *)f, strlen(f))) in X509_issuer_and_serial_hash()
49 if (!EVP_DigestUpdate in X509_issuer_and_serial_hash()
228 && EVP_DigestUpdate(md_ctx, x->bytes->data, x->bytes->length) in X509_NAME_hash_old()
/third_party/openssl/ssl/record/
Dssl3_record.c1257 || EVP_DigestUpdate(md_ctx, mac_sec, md_size) <= 0 in n_ssl3_mac()
1258 || EVP_DigestUpdate(md_ctx, ssl3_pad_1, npad) <= 0 in n_ssl3_mac()
1259 || EVP_DigestUpdate(md_ctx, seq, 8) <= 0 in n_ssl3_mac()
1260 || EVP_DigestUpdate(md_ctx, &rec_char, 1) <= 0 in n_ssl3_mac()
1261 || EVP_DigestUpdate(md_ctx, md, 2) <= 0 in n_ssl3_mac()
1262 || EVP_DigestUpdate(md_ctx, rec->input, rec->length) <= 0 in n_ssl3_mac()
1265 || EVP_DigestUpdate(md_ctx, mac_sec, md_size) <= 0 in n_ssl3_mac()
1266 || EVP_DigestUpdate(md_ctx, ssl3_pad_2, npad) <= 0 in n_ssl3_mac()
1267 || EVP_DigestUpdate(md_ctx, md, md_size) <= 0 in n_ssl3_mac()

123