Home
last modified time | relevance | path

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

1234

/openssl/apps/
H A Dpasswd.c381 if (!EVP_DigestUpdate(md, ascii_dollar, 1) in md5crypt()
386 if (!EVP_DigestUpdate(md, ascii_salt, salt_len)) in md5crypt()
399 if (!EVP_DigestUpdate(md, buf, sizeof(buf))) in md5crypt()
402 if (!EVP_DigestUpdate(md, buf, i)) in md5crypt()
417 if (!EVP_DigestUpdate(md2, in md5crypt()
429 if (!EVP_DigestUpdate(md2, in md5crypt()
624 if (!EVP_DigestUpdate(md, buf, buf_size)) in shacrypt()
627 if (!EVP_DigestUpdate(md, buf, n)) in shacrypt()
632 if (!EVP_DigestUpdate(md, in shacrypt()
678 if (!EVP_DigestUpdate(md2, in shacrypt()
[all …]
/openssl/crypto/ct/
H A 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()
/openssl/crypto/ec/curve448/
H A Deddsa.c39 || !EVP_DigestUpdate(hashctx, in, inlen) in oneshot_hash()
81 || !EVP_DigestUpdate(hashctx, dom_s, sizeof(dom_s)-1) in hash_init_with_dom()
82 || !EVP_DigestUpdate(hashctx, dom, sizeof(dom)) in hash_init_with_dom()
83 || !EVP_DigestUpdate(hashctx, context, context_len)) { in hash_init_with_dom()
191 || !EVP_DigestUpdate(hashctx, in ossl_c448_ed448_sign()
194 || !EVP_DigestUpdate(hashctx, message, message_len)) { in ossl_c448_ed448_sign()
233 || !EVP_DigestUpdate(hashctx, nonce_point, sizeof(nonce_point)) in ossl_c448_ed448_sign()
234 || !EVP_DigestUpdate(hashctx, pubkey, EDDSA_448_PUBLIC_BYTES) in ossl_c448_ed448_sign()
235 || !EVP_DigestUpdate(hashctx, message, message_len) in ossl_c448_ed448_sign()
344 || !EVP_DigestUpdate(hashctx, pubkey, EDDSA_448_PUBLIC_BYTES) in ossl_c448_ed448_verify()
[all …]
/openssl/ssl/
H A Ds3_enc.c52 || !EVP_DigestUpdate(s1, buf, k) in ssl3_generate_key_block()
53 || !EVP_DigestUpdate(s1, s->session->master_key, in ssl3_generate_key_block()
59 || !EVP_DigestUpdate(m5, s->session->master_key, in ssl3_generate_key_block()
61 || !EVP_DigestUpdate(m5, smd, SHA_DIGEST_LENGTH)) { in ssl3_generate_key_block()
263 ret = EVP_DigestUpdate(s->s3.handshake_dgst, buf, len); in ssl3_finish_mac()
360 if (EVP_DigestUpdate(ctx, sender, len) <= 0 in ssl3_final_finish_mac()
401 || EVP_DigestUpdate(ctx, salt[i], in ssl3_generate_master_secret()
403 || EVP_DigestUpdate(ctx, p, len) <= 0 in ssl3_generate_master_secret()
404 || EVP_DigestUpdate(ctx, &(s->s3.client_random[0]), in ssl3_generate_master_secret()
410 || EVP_DigestUpdate(ctx, p, len) <= 0 in ssl3_generate_master_secret()
[all …]
/openssl/ssl/record/methods/
H A Dssl3_meth.c289 || EVP_DigestUpdate(md_ctx, mac_sec, md_size) <= 0 in ssl3_mac()
290 || EVP_DigestUpdate(md_ctx, ssl3_pad_1, npad) <= 0 in ssl3_mac()
291 || EVP_DigestUpdate(md_ctx, seq, 8) <= 0 in ssl3_mac()
292 || EVP_DigestUpdate(md_ctx, &rec_char, 1) <= 0 in ssl3_mac()
293 || EVP_DigestUpdate(md_ctx, md, 2) <= 0 in ssl3_mac()
294 || EVP_DigestUpdate(md_ctx, rec->input, rec->length) <= 0 in ssl3_mac()
297 || EVP_DigestUpdate(md_ctx, mac_sec, md_size) <= 0 in ssl3_mac()
298 || EVP_DigestUpdate(md_ctx, ssl3_pad_2, npad) <= 0 in ssl3_mac()
299 || EVP_DigestUpdate(md_ctx, md, md_size) <= 0 in ssl3_mac()
H A Dssl3_cbc.c465 if (EVP_DigestUpdate(md_ctx, mac_secret, mac_secret_length) <= 0 in ssl3_cbc_digest_record()
466 || EVP_DigestUpdate(md_ctx, hmac_pad, sslv3_pad_length) <= 0 in ssl3_cbc_digest_record()
467 || EVP_DigestUpdate(md_ctx, mac_out, md_size) <= 0) in ssl3_cbc_digest_record()
474 if (EVP_DigestUpdate(md_ctx, hmac_pad, md_block_size) <= 0 in ssl3_cbc_digest_record()
475 || EVP_DigestUpdate(md_ctx, mac_out, md_size) <= 0) in ssl3_cbc_digest_record()
/openssl/test/
H A Devp_xof_test.c186 if (!TEST_true(EVP_DigestUpdate(ctx, shake256_input, in shake_kat_test()
212 if (!TEST_true(EVP_DigestUpdate(ctx, shake256_input, in shake_kat_digestfinal_test()
226 if (!TEST_true(EVP_DigestUpdate(ctx, shake256_input, in shake_kat_digestfinal_test()
267 || !TEST_true(EVP_DigestUpdate(ctx, shake256_input, in shake_kat_digestfinal_xoflen_test()
302 if (!TEST_true(EVP_DigestUpdate(ctx, shake256_largemsg_input + i, in shake_absorb_test()
383 if (!TEST_true(EVP_DigestUpdate(ctx, in, inlen))) in do_shake_squeeze_test()
424 || !TEST_true(EVP_DigestUpdate(ctx, msg, sizeof(msg))) in shake_squeeze_large_test()
455 if (!TEST_true(EVP_DigestUpdate(ctx, in, inlen))) in do_shake_squeeze_dup_test()
492 || !TEST_true(EVP_DigestUpdate(ctx, msg, sizeof(msg))) in shake_squeeze_dup_test()
H A Dmdc2test.c71 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen)) in test_mdc2()
78 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen)) in test_mdc2()
/openssl/crypto/sm2/
H A Dsm2_sign.c92 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
97 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
102 if (id_len > 0 && !EVP_DigestUpdate(hash, id, id_len)) { in ossl_sm2_compute_z_digest()
118 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
120 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
125 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
127 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
132 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
134 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
188 || !EVP_DigestUpdate(hash, z, md_size) in sm2_compute_msg_hash()
[all …]
H A Dsm2_crypt.c228 || EVP_DigestUpdate(hash, x2y2, field_size) == 0 in ossl_sm2_encrypt()
229 || EVP_DigestUpdate(hash, msg, msg_len) == 0 in ossl_sm2_encrypt()
230 || EVP_DigestUpdate(hash, x2y2 + field_size, field_size) == 0 in ossl_sm2_encrypt()
385 || !EVP_DigestUpdate(hash, x2y2, field_size) in ossl_sm2_decrypt()
386 || !EVP_DigestUpdate(hash, ptext_buf, msg_len) in ossl_sm2_decrypt()
387 || !EVP_DigestUpdate(hash, x2y2 + field_size, field_size) in ossl_sm2_decrypt()
/openssl/crypto/evp/
H A 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()
H A Dbio_md.c91 if (EVP_DigestUpdate(ctx, (unsigned char *)out, in md_read()
117 if (!EVP_DigestUpdate(ctx, (const unsigned char *)in, in md_write()
H A Dbio_ok.c463 if (!EVP_DigestUpdate(md, WELLKNOWN, strlen(WELLKNOWN))) in sig_out()
503 if (!EVP_DigestUpdate(md, WELLKNOWN, strlen(WELLKNOWN))) in sig_in()
546 if (!EVP_DigestUpdate(md, in block_out()
585 if (!EVP_DigestUpdate(md, in block_in()
/openssl/providers/implementations/kdfs/
H A Dsshkdf.c356 if (!EVP_DigestUpdate(md, key, key_len)) in SSHKDF()
359 if (!EVP_DigestUpdate(md, xcghash, xcghash_len)) in SSHKDF()
362 if (!EVP_DigestUpdate(md, &type, 1)) in SSHKDF()
365 if (!EVP_DigestUpdate(md, session_id, session_id_len)) in SSHKDF()
384 if (!EVP_DigestUpdate(md, key, key_len)) in SSHKDF()
387 if (!EVP_DigestUpdate(md, xcghash, xcghash_len)) in SSHKDF()
390 if (!EVP_DigestUpdate(md, okey, cursize)) in SSHKDF()
H A Dpbkdf1.c68 || !EVP_DigestUpdate(ctx, pass, passlen) in kdf_pbkdf1_do_derive()
69 || !EVP_DigestUpdate(ctx, salt, saltlen) in kdf_pbkdf1_do_derive()
83 if (!EVP_DigestUpdate(ctx, md_tmp, mdsize)) in kdf_pbkdf1_do_derive()
H A Dpkcs12kdf.c95 || !EVP_DigestUpdate(ctx, D, v) in pkcs12kdf_derive()
96 || !EVP_DigestUpdate(ctx, I, Ilen) in pkcs12kdf_derive()
101 || !EVP_DigestUpdate(ctx, Ai, u) in pkcs12kdf_derive()
/openssl/crypto/hmac/
H A Dhmac.c68 || !EVP_DigestUpdate(ctx->md_ctx, key, len) in HMAC_Init_ex()
85 || !EVP_DigestUpdate(ctx->i_ctx, pad, in HMAC_Init_ex()
92 || !EVP_DigestUpdate(ctx->o_ctx, pad, in HMAC_Init_ex()
126 return EVP_DigestUpdate(ctx->md_ctx, data, len); in HMAC_Update()
146 if (!EVP_DigestUpdate(ctx->md_ctx, buf, i)) in HMAC_Final()
/openssl/crypto/rsa/
H A Drsa_pss.c133 || !EVP_DigestUpdate(ctx, zeroes, sizeof(zeroes)) in ossl_rsa_verify_PKCS1_PSS_mgf1()
134 || !EVP_DigestUpdate(ctx, mHash, hLen)) in ossl_rsa_verify_PKCS1_PSS_mgf1()
137 if (!EVP_DigestUpdate(ctx, DB + i, sLen)) in ossl_rsa_verify_PKCS1_PSS_mgf1()
251 || !EVP_DigestUpdate(ctx, zeroes, sizeof(zeroes)) in ossl_rsa_padding_add_PKCS1_PSS_mgf1()
252 || !EVP_DigestUpdate(ctx, mHash, hLen)) in ossl_rsa_padding_add_PKCS1_PSS_mgf1()
254 if (sLen && !EVP_DigestUpdate(ctx, salt, sLen)) in ossl_rsa_padding_add_PKCS1_PSS_mgf1()
/openssl/providers/implementations/rands/
H A Ddrbg_hash.c106 && EVP_DigestUpdate(ctx, tmp, tmp_sz) in hash_df()
107 && EVP_DigestUpdate(ctx, in, inlen) in hash_df()
108 && (in2 == NULL || EVP_DigestUpdate(ctx, in2, in2len)) in hash_df()
109 && (in3 == NULL || EVP_DigestUpdate(ctx, in3, in3len)))) in hash_df()
184 && EVP_DigestUpdate(ctx, &inbyte, 1) in add_hash_to_v()
185 && EVP_DigestUpdate(ctx, hash->V, drbg->seedlen) in add_hash_to_v()
186 && (adin == NULL || EVP_DigestUpdate(ctx, adin, adinlen)) in add_hash_to_v()
220 || !EVP_DigestUpdate(hash->ctx, hash->vtmp, drbg->seedlen)) in hash_gen()
/openssl/crypto/crmf/
H A Dcrmf_pbm.c170 if (!EVP_DigestUpdate(ctx, sec, seclen)) in OSSL_CRMF_pbm_new()
173 if (!EVP_DigestUpdate(ctx, pbmp->salt->data, pbmp->salt->length)) in OSSL_CRMF_pbm_new()
188 if (!EVP_DigestUpdate(ctx, basekey, bklen)) in OSSL_CRMF_pbm_new()
/openssl/demos/digest/
H A DEVP_MD_demo.c137 if (EVP_DigestUpdate(digest_context, hamlet_1, strlen(hamlet_1)) != 1) { in demonstrate_digest()
141 if (EVP_DigestUpdate(digest_context, hamlet_2, strlen(hamlet_2)) != 1) { in demonstrate_digest()
/openssl/crypto/srp/
H A Dsrp_lib.c167 || !EVP_DigestUpdate(ctxt, user, strlen(user)) in SRP_Calc_x_ex()
168 || !EVP_DigestUpdate(ctxt, ":", 1) in SRP_Calc_x_ex()
169 || !EVP_DigestUpdate(ctxt, pass, strlen(pass)) in SRP_Calc_x_ex()
175 if (!EVP_DigestUpdate(ctxt, cs, BN_num_bytes(s))) in SRP_Calc_x_ex()
178 if (!EVP_DigestUpdate(ctxt, dig, sizeof(dig)) in SRP_Calc_x_ex()
/openssl/doc/life-cycles/
H A Ddigest.dot14 initialised -> updated [label="EVP_DigestUpdate", weight=100];
15 updated -> updated [label="EVP_DigestUpdate"];
/openssl/crypto/bn/
H A Dbn_rand.c351 || !EVP_DigestUpdate(mdctx, &i, sizeof(i)) in ossl_bn_gen_dsa_nonce_fixed_top()
352 || !EVP_DigestUpdate(mdctx, private_bytes, in ossl_bn_gen_dsa_nonce_fixed_top()
354 || !EVP_DigestUpdate(mdctx, message, message_len) in ossl_bn_gen_dsa_nonce_fixed_top()
355 || !EVP_DigestUpdate(mdctx, random_bytes, in ossl_bn_gen_dsa_nonce_fixed_top()
/openssl/crypto/pem/
H A Dpem_sign.c25 return EVP_DigestUpdate(ctx, data, count); in PEM_SignUpdate()

Completed in 47 milliseconds

1234