/freebsd/crypto/heimdal/kuser/ |
H A D | kdigest.c | 237 EVP_DigestUpdate(ctx, &server_identifier, 1); in client_chap() 238 EVP_DigestUpdate(ctx, password, strlen(password)); in client_chap() 239 EVP_DigestUpdate(ctx, server_nonce, snoncelen); in client_chap() 285 EVP_DigestUpdate(ctx, client_nonce, cnoncelen); in client_mschapv2() 286 EVP_DigestUpdate(ctx, server_nonce, snoncelen); in client_mschapv2() 287 EVP_DigestUpdate(ctx, username, strlen(username)); in client_mschapv2() 295 EVP_DigestUpdate(hctx, &password[i], 1); in client_mschapv2() 296 EVP_DigestUpdate(hctx, &password[len], 1); in client_mschapv2() 312 EVP_DigestUpdate(hctx, hmd, sizeof(hmd)); in client_mschapv2() 318 EVP_DigestUpdate(ctx, hmd, sizeof(hmd)); in client_mschapv2() [all …]
|
/freebsd/crypto/openssl/apps/ |
H A D | passwd.c | 378 || !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 …]
|
/freebsd/crypto/heimdal/kdc/ |
H A D | digest.c | 648 EVP_DigestUpdate(ctx, &idx, 1); in _kdc_do_digest() 649 EVP_DigestUpdate(ctx, password, strlen(password)); in _kdc_do_digest() 650 EVP_DigestUpdate(ctx, serverNonce.data, serverNonce.length); in _kdc_do_digest() 704 EVP_DigestUpdate(ctx, ireq.u.digestRequest.username, in _kdc_do_digest() 706 EVP_DigestUpdate(ctx, ":", 1); in _kdc_do_digest() 707 EVP_DigestUpdate(ctx, *ireq.u.digestRequest.realm, in _kdc_do_digest() 709 EVP_DigestUpdate(ctx, ":", 1); in _kdc_do_digest() 710 EVP_DigestUpdate(ctx, password, strlen(password)); in _kdc_do_digest() 714 EVP_DigestUpdate(ctx, md, sizeof(md)); in _kdc_do_digest() 715 EVP_DigestUpdate(ctx, ":", 1); in _kdc_do_digest() [all …]
|
/freebsd/crypto/openssl/crypto/ct/ |
H A D | ct_vfy.c | 58 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()
|
/freebsd/crypto/heimdal/lib/gssapi/krb5/ |
H A D | 8003.c | 83 EVP_DigestUpdate(ctx, num, sizeof(num)); in hash_input_chan_bindings() 85 EVP_DigestUpdate(ctx, num, sizeof(num)); in hash_input_chan_bindings() 87 EVP_DigestUpdate(ctx, in hash_input_chan_bindings() 91 EVP_DigestUpdate(ctx, num, sizeof(num)); in hash_input_chan_bindings() 93 EVP_DigestUpdate(ctx, num, sizeof(num)); in hash_input_chan_bindings() 95 EVP_DigestUpdate(ctx, in hash_input_chan_bindings() 99 EVP_DigestUpdate(ctx, num, sizeof(num)); in hash_input_chan_bindings() 101 EVP_DigestUpdate(ctx, in hash_input_chan_bindings()
|
/freebsd/crypto/openssl/crypto/ec/curve448/ |
H A D | eddsa.c | 39 || !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 …]
|
/freebsd/crypto/openssl/ssl/ |
H A D | s3_enc.c | 51 || !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 …]
|
H A D | s3_cbc.c | 492 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()
|
/freebsd/crypto/openssl/providers/implementations/kdfs/ |
H A D | sshkdf.c | 246 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()
|
/freebsd/crypto/openssl/crypto/sm2/ |
H A D | sm2_sign.c | 89 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest() 94 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest() 99 if (id_len > 0 && !EVP_DigestUpdate(hash, id, id_len)) { 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() 131 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest() 133 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest() 185 || !EVP_DigestUpdate(has in sm2_compute_msg_hash() [all...] |
H A D | sm2_crypt.c | 241 || EVP_DigestUpdate(hash, x2y2, field_size) == 0 in ossl_sm2_encrypt() 242 || EVP_DigestUpdate(hash, msg, msg_len) == 0 in ossl_sm2_encrypt() 243 || EVP_DigestUpdate(hash, x2y2 + field_size, field_size) == 0 in ossl_sm2_encrypt() 400 || !EVP_DigestUpdate(hash, x2y2, field_size) in ossl_sm2_decrypt() 401 || !EVP_DigestUpdate(hash, ptext_buf, msg_len) in ossl_sm2_decrypt() 402 || !EVP_DigestUpdate(hash, x2y2 + field_size, field_size) in ossl_sm2_decrypt()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | crypto-pk.c | 81 EVP_DigestUpdate(m, &counter, 1); in _krb5_pk_octetstring2key() 82 EVP_DigestUpdate(m, dhdata, dhsize); in _krb5_pk_octetstring2key() 85 EVP_DigestUpdate(m, c_n->data, c_n->length); in _krb5_pk_octetstring2key() 87 EVP_DigestUpdate(m, k_n->data, k_n->length); in _krb5_pk_octetstring2key() 278 EVP_DigestUpdate(m, cdata, 4); in _krb5_pk_kdf() 279 EVP_DigestUpdate(m, dhdata, dhsize); in _krb5_pk_kdf() 280 EVP_DigestUpdate(m, other.data, other.length); in _krb5_pk_kdf()
|
H A D | crypto-des-common.c | 79 EVP_DigestUpdate(m, p, 8); in _krb5_des_checksum() 80 EVP_DigestUpdate(m, data, len); in _krb5_des_checksum() 116 EVP_DigestUpdate(m, tmp, 8); /* confounder */ in _krb5_des_verify() 117 EVP_DigestUpdate(m, data, len); in _krb5_des_verify()
|
H A D | salt-arcfour.c | 84 EVP_DigestUpdate (m, &p, 1); in ARCFOUR_string_to_key() 86 EVP_DigestUpdate (m, &p, 1); in ARCFOUR_string_to_key()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | evp_key.c | 103 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()
|
/freebsd/contrib/ntp/libntp/ |
H A D | a_md5encrypt.c | 146 if (!EVP_DigestUpdate(ctx, key->buf, (u_int)key->len)) { in make_mac() 151 if (!EVP_DigestUpdate(ctx, msg->buf, (u_int)msg->len)) { in make_mac()
|
/freebsd/crypto/openssl/crypto/hmac/ |
H A D | hmac.c | 62 || !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()
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_pss.c | 122 || !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()
|
/freebsd/crypto/openssl/providers/implementations/rands/ |
H A D | drbg_hash.c | 104 && 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()
|
/freebsd/contrib/bsnmp/lib/ |
H A D | snmpcrypto.c | 118 if (EVP_DigestUpdate(ctx, key1, SNMP_EXTENDED_KEY_SIZ) != 1 || in snmp_pdu_calc_digest() 119 EVP_DigestUpdate(ctx, pdu->outer_ptr, pdu->outer_len) != 1 || in snmp_pdu_calc_digest() 124 EVP_DigestUpdate(ctx, key2, SNMP_EXTENDED_KEY_SIZ) != 1 || in snmp_pdu_calc_digest() 125 EVP_DigestUpdate(ctx, md, olen) != 1 || in snmp_pdu_calc_digest() 275 if (EVP_DigestUpdate(ctx, authbuf, SNMP_EXTENDED_KEY_SIZ) != 1) in snmp_passwd_to_keys() 322 if (EVP_DigestUpdate(ctx, authbuf, 2 * keylen + elen) != 1 || in snmp_get_local_keys() 361 if (EVP_DigestUpdate(ctx, keychange, 2 * keylen) != 1 || in snmp_calc_keychange()
|
/freebsd/contrib/ntp/sntp/ |
H A D | crypto.c | 94 if (!EVP_DigestUpdate(ctx, key_data, key_size)) { in compute_mac() 99 if (!EVP_DigestUpdate(ctx, pkt_data, pkt_len)) { in compute_mac() 115 EVP_DigestUpdate(ctx, key_data, key_size); in compute_mac() 116 EVP_DigestUpdate(ctx, pkt_data, pkt_len); in compute_mac()
|
/freebsd/crypto/openssl/test/ |
H A D | mdc2test.c | 69 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen)) in test_mdc2() 76 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen)) in test_mdc2()
|
/freebsd/crypto/openssl/crypto/crmf/ |
H A D | crmf_pbm.c | 171 if (!EVP_DigestUpdate(ctx, sec, seclen)) in OSSL_CRMF_pbm_new() 174 if (!EVP_DigestUpdate(ctx, pbmp->salt->data, pbmp->salt->length)) in OSSL_CRMF_pbm_new() 189 if (!EVP_DigestUpdate(ctx, basekey, bklen)) in OSSL_CRMF_pbm_new()
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_rand.c | 353 || !EVP_DigestUpdate(mdctx, &i, sizeof(i)) 354 || !EVP_DigestUpdate(mdctx, private_bytes, 356 || !EVP_DigestUpdate(mdctx, message, message_len) 357 || !EVP_DigestUpdate(mdctx, random_bytes,
|
/freebsd/crypto/openssl/crypto/srp/ |
H A D | srp_lib.c | 167 || !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()
|