Home
last modified time | relevance | path

Searched refs:crypto_shash_update (Results 1 – 25 of 68) sorted by relevance

123

/linux-5.19.10/net/mac80211/
Daes_cmac.c35 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-5.19.10/security/apparmor/
Dcrypto.c46 error = crypto_shash_update(desc, (u8 *) data, len); in aa_calc_hash()
83 error = crypto_shash_update(desc, (u8 *) &le32_version, 4); in aa_calc_profile_hash()
86 error = crypto_shash_update(desc, (u8 *) start, len); in aa_calc_profile_hash()
/linux-5.19.10/fs/ksmbd/
Dauth.c105 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()
263 rc = crypto_shash_update(CRYPTO_HMACMD5(ctx), construct, len); in ksmbd_auth_ntlmv2()
588 rc = crypto_shash_update(CRYPTO_HMACSHA256(ctx), in ksmbd_sign_smb2_pdu()
639 rc = crypto_shash_update(CRYPTO_CMACAES(ctx), in ksmbd_sign_smb3_pdu()
695 rc = crypto_shash_update(CRYPTO_HMACSHA256(ctx), i, 4); in generate_key()
701 rc = crypto_shash_update(CRYPTO_HMACSHA256(ctx), in generate_key()
709 rc = crypto_shash_update(CRYPTO_HMACSHA256(ctx), &zero, 1); in generate_key()
715 rc = crypto_shash_update(CRYPTO_HMACSHA256(ctx), in generate_key()
[all …]
/linux-5.19.10/fs/crypto/
Dhkdf.c143 err = crypto_shash_update(desc, prev, HKDF_HASHLEN); in fscrypt_hkdf_expand()
148 err = crypto_shash_update(desc, prefix, sizeof(prefix)); in fscrypt_hkdf_expand()
152 err = crypto_shash_update(desc, info, infolen); in fscrypt_hkdf_expand()
/linux-5.19.10/security/integrity/evm/
Devm_crypto.c172 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()
252 crypto_shash_update(desc, (const u8 *)req_xattr_value, in evm_calc_hmac_or_hash()
285 crypto_shash_update(desc, (const u8 *)xattr_value, xattr_size); in evm_calc_hmac_or_hash()
399 crypto_shash_update(desc, lsm_xattr->value, lsm_xattr->value_len); in evm_init_hmac()
/linux-5.19.10/crypto/asymmetric_keys/
Dverify_pefile.c251 ret = crypto_shash_update(desc, pebuf, ctx->image_checksum_offset); in pefile_digest_pe_contents()
256 ret = crypto_shash_update(desc, pebuf + tmp, in pefile_digest_pe_contents()
262 ret = crypto_shash_update(desc, pebuf + tmp, ctx->header_size - tmp); in pefile_digest_pe_contents()
291 ret = crypto_shash_update(desc, in pefile_digest_pe_contents()
304 ret = crypto_shash_update(desc, in pefile_digest_pe_contents()
/linux-5.19.10/drivers/net/wireless/intersil/orinoco/
Dmic.c77 err = crypto_shash_update(desc, hdr, sizeof(hdr)); in orinoco_mic()
81 err = crypto_shash_update(desc, data, data_len); in orinoco_mic()
/linux-5.19.10/fs/cifs/
Dcifsencrypt.c56 rc = crypto_shash_update(shash, in __cifs_calc_signature()
74 rc = crypto_shash_update(shash, kaddr, len); in __cifs_calc_signature()
118 rc = crypto_shash_update(&server->secmech.sdescmd5->shash, in cifs_calc_signature()
452 rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in calc_ntlmv2_hash()
472 crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in calc_ntlmv2_hash()
492 crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in calc_ntlmv2_hash()
547 rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in CalcNTLMv2_response()
667 rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in setup_ntlmv2_rsp()
Dsmb2transport.c273 rc = crypto_shash_update(shash, iov[0].iov_base, in smb2_calc_signature()
331 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
338 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
345 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
352 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
361 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
364 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
603 rc = crypto_shash_update(shash, iov[0].iov_base, in smb3_calc_signature()
/linux-5.19.10/crypto/
Dkdf_sp800108.c35 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()
Dhmac.c80 crypto_shash_update(shash, ipad, bs) ?: in hmac_setkey()
83 crypto_shash_update(shash, opad, bs) ?: in hmac_setkey()
114 return crypto_shash_update(desc, data, nbytes); in hmac_update()
Dshash.c121 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update() function
133 EXPORT_SYMBOL_GPL(crypto_shash_update);
179 return crypto_shash_update(desc, data, len) ?: in shash_finup_unaligned()
274 nbytes = crypto_shash_update(desc, walk.data, nbytes); in shash_ahash_update()
303 crypto_shash_update(desc, walk.data, nbytes); in shash_ahash_finup()
/linux-5.19.10/arch/powerpc/crypto/
Dcrc-vpmsum_test.c88 crypto_shash_update(crct10dif_shash, data+offset, len); in crc_test_init()
99 crypto_shash_update(crc32c_shash, data+offset, len); in crc_test_init()
/linux-5.19.10/drivers/target/iscsi/
Discsi_target_auth.c334 ret = crypto_shash_update(desc, &chap->id, 1); in chap_server_compute_hash()
340 ret = crypto_shash_update(desc, (char *)&auth->password, in chap_server_compute_hash()
448 ret = crypto_shash_update(desc, &id_as_uchar, 1); in chap_server_compute_hash()
454 ret = crypto_shash_update(desc, auth->password_mutual, in chap_server_compute_hash()
/linux-5.19.10/security/integrity/ima/
Dima_crypto.c496 rc = crypto_shash_update(shash, rbuf, rbuf_len); in ima_calc_file_hash_tfm()
606 rc = crypto_shash_update(shash, in ima_calc_field_array_hash_tfm()
616 rc = crypto_shash_update(shash, data_to_hash, datalen); in ima_calc_field_array_hash_tfm()
738 rc = crypto_shash_update(shash, buf, len); in calc_buffer_shash_tfm()
821 rc = crypto_shash_update(shash, d.digest, in ima_calc_boot_aggregate_tfm()
835 rc = crypto_shash_update(shash, d.digest, in ima_calc_boot_aggregate_tfm()
/linux-5.19.10/drivers/net/ppp/
Dppp_mppe.c134 crypto_shash_update(state->sha1, state->master_key, in get_new_key_from_sha()
136 crypto_shash_update(state->sha1, sha_pad->sha_pad1, in get_new_key_from_sha()
138 crypto_shash_update(state->sha1, state->session_key, in get_new_key_from_sha()
140 crypto_shash_update(state->sha1, sha_pad->sha_pad2, in get_new_key_from_sha()
/linux-5.19.10/security/keys/trusted-keys/
Dtrusted_tpm1.c100 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-5.19.10/fs/ubifs/
Dauth.c405 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); in ubifs_node_calc_hmac()
411 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac()
524 err = crypto_shash_update(shash, well_known_message, in ubifs_hmac_wkm()
/linux-5.19.10/lib/
Dlibcrc32c.c47 err = crypto_shash_update(shash, address, length); in crc32c()
Ddigsig.c242 crypto_shash_update(desc, data, datalen); in digsig_verify()
243 crypto_shash_update(desc, sig, sizeof(*sh)); in digsig_verify()
Dcrc-t10dif.c77 err = crypto_shash_update(&desc.shash, buffer, len); in crc_t10dif_update()
Dcrc64-rocksoft.c71 err = crypto_shash_update(&desc.shash, buffer, len); in crc64_rocksoft_update()
/linux-5.19.10/drivers/infiniband/sw/siw/
Dsiw_qp_tx.c255 if (crypto_shash_update(c_tx->mpa_crc_hd, in siw_qp_prepare_tx()
484 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
524 crypto_shash_update( in siw_tx_hdt()
530 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
550 crypto_shash_update( in siw_tx_hdt()
590 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
752 crypto_shash_update(c_tx->mpa_crc_hd, (u8 *)&c_tx->pkt, in siw_prepare_fpdu()
/linux-5.19.10/Documentation/crypto/
Dapi-digest.rst35 …h_digest crypto_shash_export crypto_shash_import crypto_shash_init crypto_shash_update crypto_shas…
/linux-5.19.10/drivers/crypto/
Dpadlock-sha.c46 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update()
98 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha1_finup()
159 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha256_finup()

123