/linux/net/mac80211/ |
H A D | aes_cmac.c | 35 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac() 39 crypto_shash_update(desc, zero, 8); in ieee80211_aes_cmac() 40 crypto_shash_update(desc, data + 8, data_len - 8 - CMAC_TLEN); in ieee80211_aes_cmac() 42 crypto_shash_update(desc, data, data_len - CMAC_TLEN); in ieee80211_aes_cmac() 58 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac_256() 62 crypto_shash_update(desc, zero, 8); in ieee80211_aes_cmac_256() 63 crypto_shash_update(desc, data + 8, in ieee80211_aes_cmac_256() 66 crypto_shash_update(desc, data, data_len - CMAC_TLEN_256); in ieee80211_aes_cmac_256()
|
/linux/drivers/nvme/target/ |
H A D | auth.c | 359 ret = crypto_shash_update(shash, challenge, shash_len); in nvmet_auth_host_hash() 363 ret = crypto_shash_update(shash, buf, 4); in nvmet_auth_host_hash() 367 ret = crypto_shash_update(shash, buf, 2); in nvmet_auth_host_hash() 371 ret = crypto_shash_update(shash, buf, 1); in nvmet_auth_host_hash() 374 ret = crypto_shash_update(shash, "HostHost", 8); in nvmet_auth_host_hash() 377 ret = crypto_shash_update(shash, ctrl->hostnqn, strlen(ctrl->hostnqn)); in nvmet_auth_host_hash() 380 ret = crypto_shash_update(shash, buf, 1); in nvmet_auth_host_hash() 383 ret = crypto_shash_update(shash, ctrl->subsysnqn, in nvmet_auth_host_hash() 468 ret = crypto_shash_update(shash, challenge, shash_len); in nvmet_auth_ctrl_hash() 472 ret = crypto_shash_update(shas in nvmet_auth_ctrl_hash() [all...] |
/linux/net/sunrpc/auth_gss/ |
H A D | gss_krb5_keys.c | 319 ret = crypto_shash_update(desc, step->data, step->len); in krb5_cmac_Ki() 322 ret = crypto_shash_update(desc, (u8 *)&i, sizeof(i)); in krb5_cmac_Ki() 325 ret = crypto_shash_update(desc, constant->data, constant->len); in krb5_cmac_Ki() 328 ret = crypto_shash_update(desc, &zero, sizeof(zero)); in krb5_cmac_Ki() 331 ret = crypto_shash_update(desc, (u8 *)&k, sizeof(k)); in krb5_cmac_Ki() 457 ret = crypto_shash_update(desc, (u8 *)&one, sizeof(one)); in krb5_hmac_K1() 460 ret = crypto_shash_update(desc, label->data, label->len); in krb5_hmac_K1() 463 ret = crypto_shash_update(desc, &zero, sizeof(zero)); in krb5_hmac_K1() 466 ret = crypto_shash_update(desc, (u8 *)&k, sizeof(k)); in krb5_hmac_K1()
|
/linux/crypto/ |
H A D | jitterentropy-kcapi.c | 136 crypto_shash_update(desc, intermediary, in jent_hash_time() 147 ret = crypto_shash_update(hash_state_desc, intermediary, sizeof(intermediary)); in jent_hash_time() 164 ret = crypto_shash_update(hash_state_desc, (u8 *)&time, sizeof(__u64)); in jent_hash_time() 180 crypto_shash_update(hash_state_desc, jent_block, in jent_read_random_block()
|
H A D | kdf_sp800108.c | 35 err = crypto_shash_update(desc, (u8 *)&counter, sizeof(__be32)); in crypto_kdf108_ctr_generate() 40 err = crypto_shash_update(desc, info[i].iov_base, in crypto_kdf108_ctr_generate()
|
H A D | hctr2.c | 122 err = crypto_shash_update(shash, (u8 *)tweak_length_block, in hctr2_hash_tweaklen() 183 err = crypto_shash_update(hash_desc, req->iv, TWEAK_SIZE); in hctr2_hash_tweak() 211 err = crypto_shash_update(hash_desc, miter.addr, n); in hctr2_hash_message() 221 err = crypto_shash_update(hash_desc, padding, in hctr2_hash_message()
|
H A D | hkdf.c | 96 err = crypto_shash_update(desc, prev, hashlen); in hkdf_expand() 102 err = crypto_shash_update(desc, info, infolen); in hkdf_expand()
|
H A D | hmac.c | 73 crypto_shash_update(shash, ipad, bs) ?: in hmac_setkey() 76 crypto_shash_update(shash, opad, bs) ?: in hmac_setkey() 127 return crypto_shash_update(desc, data, nbytes); in hmac_update()
|
/linux/drivers/nvme/host/ |
H A D | auth.c | 480 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_host_response() 484 ret = crypto_shash_update(shash, buf, 4); in nvme_auth_dhchap_setup_host_response() 488 ret = crypto_shash_update(shash, buf, 2); in nvme_auth_dhchap_setup_host_response() 492 ret = crypto_shash_update(shash, buf, 1); in nvme_auth_dhchap_setup_host_response() 495 ret = crypto_shash_update(shash, "HostHost", 8); in nvme_auth_dhchap_setup_host_response() 498 ret = crypto_shash_update(shash, ctrl->opts->host->nqn, in nvme_auth_dhchap_setup_host_response() 502 ret = crypto_shash_update(shash, buf, 1); in nvme_auth_dhchap_setup_host_response() 505 ret = crypto_shash_update(shash, ctrl->opts->subsysnqn, in nvme_auth_dhchap_setup_host_response() 565 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_ctrl_response() 569 ret = crypto_shash_update(shas in nvme_auth_dhchap_setup_ctrl_response() [all...] |
/linux/fs/smb/server/ |
H A D | auth.c | 105 rc = crypto_shash_update(CRYPTO_HMACMD5(ctx), in ksmbd_gen_sess_key() 168 ret = crypto_shash_update(CRYPTO_HMACMD5(ctx), in calc_ntlmv2_hash() 191 ret = crypto_shash_update(CRYPTO_HMACMD5(ctx), in calc_ntlmv2_hash() 266 rc = crypto_shash_update(CRYPTO_HMACMD5(ctx), construct, len); in ksmbd_auth_ntlmv2() 618 rc = crypto_shash_update(CRYPTO_HMACSHA256(ctx), in ksmbd_sign_smb2_pdu() 669 rc = crypto_shash_update(CRYPTO_CMACAES(ctx), in ksmbd_sign_smb3_pdu() 726 rc = crypto_shash_update(CRYPTO_HMACSHA256(ctx), i, 4); in generate_key() 732 rc = crypto_shash_update(CRYPTO_HMACSHA256(ctx), in generate_key() 740 rc = crypto_shash_update(CRYPTO_HMACSHA256(ctx), &zero, 1); in generate_key() 746 rc = crypto_shash_update(CRYPTO_HMACSHA25 in generate_key() [all...] |
/linux/drivers/nvme/common/ |
H A D | auth.c | 284 ret = crypto_shash_update(shash, nqn, strlen(nqn)); in nvme_auth_transform_key() 287 ret = crypto_shash_update(shash, "NVMe-over-Fabrics", 17); in nvme_auth_transform_key() 528 ret = crypto_shash_update(shash, c1, hash_len); in nvme_auth_generate_psk() 532 ret = crypto_shash_update(shash, c2, hash_len); in nvme_auth_generate_psk() 646 ret = crypto_shash_update(shash, hostnqn, strlen(hostnqn)); in nvme_auth_generate_digest() 650 ret = crypto_shash_update(shash, " ", 1); in nvme_auth_generate_digest() 654 ret = crypto_shash_update(shash, subsysnqn, strlen(subsysnqn)); in nvme_auth_generate_digest() 658 ret = crypto_shash_update(shash, " NVMe-over-Fabrics", 18); in nvme_auth_generate_digest()
|
/linux/security/integrity/evm/ |
H A D | evm_crypto.c | 172 crypto_shash_update(desc, (const u8 *)&hmac_misc, sizeof(hmac_misc)); in hmac_add_misc() 175 crypto_shash_update(desc, (u8 *)&inode->i_sb->s_uuid, UUID_SIZE); in hmac_add_misc() 264 crypto_shash_update(desc, (const u8 *)req_xattr_value, in evm_calc_hmac_or_hash() 291 crypto_shash_update(desc, (const u8 *)xattr_value, xattr_size); in evm_calc_hmac_or_hash() 415 crypto_shash_update(desc, xattr->value, xattr->value_len); in evm_init_hmac()
|
/linux/fs/smb/client/ |
H A D | cifsencrypt.c | 34 ret = crypto_shash_update(shash, iter_base, len); in cifs_shash_step() 85 rc = crypto_shash_update(shash, in __cifs_calc_signature() 130 rc = crypto_shash_update(server->secmech.md5, in cifs_calc_signature() 445 rc = crypto_shash_update(hmacmd5, (char *)user, 2 * len); in calc_ntlmv2_hash() 462 rc = crypto_shash_update(hmacmd5, (char *)domain, 2 * len); in calc_ntlmv2_hash() 477 rc = crypto_shash_update(hmacmd5, (char *)server, 2 * len); in calc_ntlmv2_hash() 521 rc = crypto_shash_update(hmacmd5, ntlmv2->challenge.key, hash_len); in CalcNTLMv2_response() 693 rc = crypto_shash_update(hmacmd5, ntlmv2->ntlmv2_hash, CIFS_HMAC_MD5_HASH_SIZE); in setup_ntlmv2_rsp()
|
H A D | smb2transport.c | 313 rc = crypto_shash_update(shash, iov[0].iov_base, in smb2_calc_signature() 369 rc = crypto_shash_update(server->secmech.hmacsha256, i, 4); in generate_key() 375 rc = crypto_shash_update(server->secmech.hmacsha256, label.iov_base, label.iov_len); in generate_key() 381 rc = crypto_shash_update(server->secmech.hmacsha256, &zero, 1); in generate_key() 387 rc = crypto_shash_update(server->secmech.hmacsha256, context.iov_base, context.iov_len); in generate_key() 395 rc = crypto_shash_update(server->secmech.hmacsha256, L256, 4); in generate_key() 397 rc = crypto_shash_update(server->secmech.hmacsha256, L128, 4); in generate_key() 640 rc = crypto_shash_update(shash, iov[0].iov_base, in smb3_calc_signature()
|
/linux/security/integrity/ima/ |
H A D | ima_crypto.c | 491 rc = crypto_shash_update(shash, rbuf, rbuf_len); in ima_calc_file_hash_tfm() 601 rc = crypto_shash_update(shash, in ima_calc_field_array_hash_tfm() 611 rc = crypto_shash_update(shash, data_to_hash, datalen); in ima_calc_field_array_hash_tfm() 733 rc = crypto_shash_update(shash, buf, len); in calc_buffer_shash_tfm() 816 rc = crypto_shash_update(shash, d.digest, in ima_calc_boot_aggregate_tfm() 830 rc = crypto_shash_update(shash, d.digest, in ima_calc_boot_aggregate_tfm()
|
/linux/drivers/target/iscsi/ |
H A D | iscsi_target_auth.c | 377 ret = crypto_shash_update(desc, &chap->id, 1); in chap_server_compute_hash() 379 pr_err("crypto_shash_update() failed for id\n"); in chap_server_compute_hash() 383 ret = crypto_shash_update(desc, (char *)&auth->password, in chap_server_compute_hash() 386 pr_err("crypto_shash_update() failed for password\n"); in chap_server_compute_hash() 520 ret = crypto_shash_update(desc, &id_as_uchar, 1); in chap_server_compute_hash() 522 pr_err("crypto_shash_update() failed for id\n"); in chap_server_compute_hash() 526 ret = crypto_shash_update(desc, auth->password_mutual, in chap_server_compute_hash() 529 pr_err("crypto_shash_update() failed for" in chap_server_compute_hash()
|
/linux/security/keys/trusted-keys/ |
H A D | trusted_tpm1.c | 100 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_rawhmac() 150 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_authhmac() 214 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, in TSS_checkhmac1() 218 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, in TSS_checkhmac1() 228 ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); in TSS_checkhmac1() 307 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, in TSS_checkhmac2() 311 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, in TSS_checkhmac2() 322 ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); in TSS_checkhmac2()
|
/linux/lib/ |
H A D | digsig.c | 242 crypto_shash_update(desc, data, datalen); in digsig_verify() 243 crypto_shash_update(desc, sig, sizeof(*sh)); in digsig_verify()
|
/linux/Documentation/crypto/ |
H A D | api-digest.rst | 35 :functions: crypto_alloc_shash crypto_free_shash crypto_shash_blocksize crypto_shash_digestsize crypto_shash_descsize crypto_shash_setkey crypto_shash_digest crypto_shash_export crypto_shash_import crypto_shash_init crypto_shash_update crypto_shash_final crypto_shash_finup
|
/linux/include/crypto/internal/ |
H A D | blake2b.h | 68 crypto_shash_update(desc, tctx->key, BLAKE2B_BLOCK_SIZE) : 0; in crypto_blake2b_init()
|
/linux/fs/ubifs/ |
H A D | auth.c | 404 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); in ubifs_node_calc_hmac() 410 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac()
|
/linux/samples/tsm-mr/ |
H A D | tsm_mr_sample.c | 60 rc = crypto_shash_update(desc, mr->mr_value, mr->mr_size); in sample_report_extend_mr()
|
/linux/crypto/krb5/ |
H A D | rfc3961_simplified.c | 96 ret = crypto_shash_update(desc, miter.addr, n); in crypto_shash_update_sg() 684 ret = crypto_shash_update(desc, metadata->data, metadata->len); in rfc3961_get_mic() 753 ret = crypto_shash_update(desc, metadata->data, metadata->len); in rfc3961_verify_mic()
|
/linux/drivers/crypto/bcm/ |
H A D | util.c | 248 rc = crypto_shash_update(&sdesc->shash, data1, data1_len); in do_shash() 254 rc = crypto_shash_update(&sdesc->shash, data2, data2_len); in do_shash()
|
/linux/drivers/crypto/xilinx/ |
H A D | zynqmp-sha.c | 108 crypto_shash_update(fbdesc, data, length); in zynqmp_sha_update()
|