Home
last modified time | relevance | path

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

123

/Linux-v5.4/net/mac80211/
Daes_cmac.c33 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac()
34 crypto_shash_update(desc, data, data_len - CMAC_TLEN); in ieee80211_aes_cmac()
48 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac_256()
49 crypto_shash_update(desc, data, data_len - CMAC_TLEN_256); in ieee80211_aes_cmac_256()
/Linux-v5.4/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-v5.4/fs/crypto/
Dhkdf.c142 err = crypto_shash_update(desc, prev, HKDF_HASHLEN); in fscrypt_hkdf_expand()
147 err = crypto_shash_update(desc, prefix, sizeof(prefix)); in fscrypt_hkdf_expand()
151 err = crypto_shash_update(desc, info, infolen); in fscrypt_hkdf_expand()
/Linux-v5.4/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()
221 crypto_shash_update(desc, (const u8 *)req_xattr_value, in evm_calc_hmac_or_hash()
238 crypto_shash_update(desc, (const u8 *)xattr_value, xattr_size); in evm_calc_hmac_or_hash()
344 crypto_shash_update(desc, lsm_xattr->value, lsm_xattr->value_len); in evm_init_hmac()
/Linux-v5.4/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-v5.4/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-v5.4/arch/powerpc/crypto/
Dcrc-vpmsum_test.c86 crypto_shash_update(crct10dif_shash, data+offset, len); in crc_test_init()
97 crypto_shash_update(crc32c_shash, data+offset, len); in crc_test_init()
/Linux-v5.4/drivers/target/iscsi/
Discsi_target_auth.c254 ret = crypto_shash_update(desc, &chap->id, 1); in chap_server_compute_md5()
260 ret = crypto_shash_update(desc, (char *)&auth->password, in chap_server_compute_md5()
364 ret = crypto_shash_update(desc, &id_as_uchar, 1); in chap_server_compute_md5()
370 ret = crypto_shash_update(desc, auth->password_mutual, in chap_server_compute_md5()
/Linux-v5.4/fs/cifs/
Dcifsencrypt.c69 rc = crypto_shash_update(shash, in __cifs_calc_signature()
87 rc = crypto_shash_update(shash, kaddr, len); in __cifs_calc_signature()
131 rc = crypto_shash_update(&server->secmech.sdescmd5->shash, in cifs_calc_signature()
542 rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in calc_ntlmv2_hash()
562 crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in calc_ntlmv2_hash()
582 crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in calc_ntlmv2_hash()
637 rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in CalcNTLMv2_response()
752 rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, in setup_ntlmv2_rsp()
Dsmb2transport.c215 rc = crypto_shash_update(shash, iov[0].iov_base, in smb2_calc_signature()
266 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
273 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
280 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
287 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
294 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
474 rc = crypto_shash_update(shash, iov[0].iov_base, in smb3_calc_signature()
/Linux-v5.4/crypto/
Dhmac.c76 crypto_shash_update(shash, ipad, bs) ?: in hmac_setkey()
79 crypto_shash_update(shash, opad, bs) ?: in hmac_setkey()
110 return crypto_shash_update(desc, data, nbytes); in hmac_update()
Dshash.c110 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update() function
122 EXPORT_SYMBOL_GPL(crypto_shash_update);
168 return crypto_shash_update(desc, data, len) ?: in shash_finup_unaligned()
247 nbytes = crypto_shash_update(desc, walk.data, nbytes); in shash_ahash_update()
276 crypto_shash_update(desc, walk.data, nbytes); in shash_ahash_finup()
/Linux-v5.4/security/integrity/ima/
Dima_crypto.c369 rc = crypto_shash_update(shash, rbuf, rbuf_len); in ima_calc_file_hash_tfm()
491 rc = crypto_shash_update(shash, in ima_calc_field_array_hash_tfm()
501 rc = crypto_shash_update(shash, data_to_hash, datalen); in ima_calc_field_array_hash_tfm()
606 rc = crypto_shash_update(shash, buf, len); in calc_buffer_shash_tfm()
678 rc = crypto_shash_update(shash, d.digest, TPM_DIGEST_SIZE); in ima_calc_boot_aggregate_tfm()
/Linux-v5.4/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-v5.4/security/keys/
Dtrusted.c107 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_rawhmac()
157 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_authhmac()
221 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, in TSS_checkhmac1()
225 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, in TSS_checkhmac1()
235 ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); in TSS_checkhmac1()
314 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, in TSS_checkhmac2()
318 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, in TSS_checkhmac2()
329 ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); in TSS_checkhmac2()
Ddh.c157 err = crypto_shash_update(desc, (u8 *)&counter, sizeof(__be32)); in kdf_ctr()
167 err = crypto_shash_update(desc, tmpbuffer, in kdf_ctr()
178 err = crypto_shash_update(desc, src, slen); in kdf_ctr()
/Linux-v5.4/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.c72 err = crypto_shash_update(&desc.shash, buffer, len); in crc_t10dif_update()
/Linux-v5.4/fs/ubifs/
Dauth.c427 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); in ubifs_node_calc_hmac()
433 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac()
546 err = crypto_shash_update(shash, well_known_message, in ubifs_hmac_wkm()
/Linux-v5.4/drivers/infiniband/sw/rxe/
Drxe.h80 err = crypto_shash_update(shash, next, len); in rxe_crc32()
/Linux-v5.4/drivers/infiniband/sw/siw/
Dsiw_qp_tx.c255 if (crypto_shash_update(c_tx->mpa_crc_hd, in siw_qp_prepare_tx()
477 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
515 crypto_shash_update( in siw_tx_hdt()
520 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
530 crypto_shash_update( in siw_tx_hdt()
570 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
732 crypto_shash_update(c_tx->mpa_crc_hd, (u8 *)&c_tx->pkt, in siw_prepare_fpdu()
/Linux-v5.4/Documentation/crypto/
Dapi-digest.rst35 …h_digest crypto_shash_export crypto_shash_import crypto_shash_init crypto_shash_update crypto_shas…
/Linux-v5.4/drivers/crypto/
Dpadlock-sha.c45 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update()
97 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha1_finup()
158 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha256_finup()
/Linux-v5.4/drivers/crypto/bcm/
Dutil.c248 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()

123