Home
last modified time | relevance | path

Searched refs:tfm (Results 426 – 450 of 481) sorted by relevance

1...<<11121314151617181920

/openbmc/linux/fs/smb/client/
H A Dcifsencrypt.c550 rc = crypto_shash_setkey(ses->server->secmech.hmacmd5->tfm, nt_hash, in calc_ntlmv2_hash()
653 rc = crypto_shash_setkey(ses->server->secmech.hmacmd5->tfm, in CalcNTLMv2_response()
777 rc = crypto_shash_setkey(ses->server->secmech.hmacmd5->tfm, in setup_ntlmv2_rsp()
H A Dmisc.c1084 (*sdesc)->tfm = alg; in cifs_alloc_hash()
1100 if ((*sdesc)->tfm) { in cifs_free_hash()
1101 crypto_free_shash((*sdesc)->tfm); in cifs_free_hash()
1102 (*sdesc)->tfm = NULL; in cifs_free_hash()
/openbmc/linux/crypto/
H A Dserpent_generic.c452 int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in serpent_setkey() argument
454 return __serpent_setkey(crypto_tfm_ctx(tfm), key, keylen); in serpent_setkey()
510 static void serpent_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in serpent_encrypt() argument
512 struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); in serpent_encrypt()
569 static void serpent_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in serpent_decrypt() argument
571 struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); in serpent_decrypt()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k_macsec.c55 struct crypto_skcipher *tfm; in cn10k_ecb_aes_encrypt() local
59 tfm = crypto_alloc_skcipher("ecb(aes)", 0, 0); in cn10k_ecb_aes_encrypt()
60 if (IS_ERR(tfm)) { in cn10k_ecb_aes_encrypt()
62 return PTR_ERR(tfm); in cn10k_ecb_aes_encrypt()
65 req = skcipher_request_alloc(tfm, GFP_KERNEL); in cn10k_ecb_aes_encrypt()
72 err = crypto_skcipher_setkey(tfm, sak, sak_len); in cn10k_ecb_aes_encrypt()
92 crypto_free_skcipher(tfm); in cn10k_ecb_aes_encrypt()
/openbmc/linux/drivers/crypto/
H A Dhifn_795x.c1526 struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); in hifn_setup_session()
1982 struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); in hifn_handle_req()
2003 struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); in hifn_setup_crypto_req()
2073 struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); in hifn_setup_crypto()
2372 static int hifn_init_tfm(struct crypto_skcipher *tfm) in hifn_init_tfm() argument
2374 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in hifn_init_tfm()
2376 struct hifn_context *ctx = crypto_skcipher_ctx(tfm); in hifn_init_tfm()
2379 crypto_skcipher_set_reqsize(tfm, sizeof(struct hifn_request_context)); in hifn_init_tfm()
/openbmc/linux/drivers/nvme/host/
H A Dtcp.c1265 struct crypto_ahash *tfm = crypto_ahash_reqtfm(queue->rcv_hash); in nvme_tcp_free_crypto() local
1269 crypto_free_ahash(tfm); in nvme_tcp_free_crypto()
1274 struct crypto_ahash *tfm; in nvme_tcp_alloc_crypto() local
1276 tfm = crypto_alloc_ahash("crc32c", 0, CRYPTO_ALG_ASYNC); in nvme_tcp_alloc_crypto()
1277 if (IS_ERR(tfm)) in nvme_tcp_alloc_crypto()
1278 return PTR_ERR(tfm); in nvme_tcp_alloc_crypto()
1280 queue->snd_hash = ahash_request_alloc(tfm, GFP_KERNEL); in nvme_tcp_alloc_crypto()
1285 queue->rcv_hash = ahash_request_alloc(tfm, GFP_KERNEL); in nvme_tcp_alloc_crypto()
1294 crypto_free_ahash(tfm); in nvme_tcp_alloc_crypto()
/openbmc/linux/lib/
H A Ddigsig.c239 desc->tfm = shash; in digsig_verify()
/openbmc/linux/drivers/crypto/amcc/
H A Dcrypto4xx_core.h185 int crypto4xx_sha1_alg_init(struct crypto_tfm *tfm);
/openbmc/linux/include/net/
H A Dmacsec.h70 struct crypto_aead *tfm; member
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dutils.c1353 struct crypto_shash *tfm; in irdma_init_hash_desc() local
1356 tfm = crypto_alloc_shash("crc32c", 0, 0); in irdma_init_hash_desc()
1357 if (IS_ERR(tfm)) in irdma_init_hash_desc()
1360 tdesc = kzalloc(sizeof(*tdesc) + crypto_shash_descsize(tfm), in irdma_init_hash_desc()
1363 crypto_free_shash(tfm); in irdma_init_hash_desc()
1367 tdesc->tfm = tfm; in irdma_init_hash_desc()
1380 crypto_free_shash(desc->tfm); in irdma_free_hash_desc()
/openbmc/linux/fs/ecryptfs/
H A Decryptfs_kernel.h239 struct crypto_skcipher *tfm; member
647 int ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_skcipher **tfm,
/openbmc/linux/drivers/nvme/target/
H A Dauth.c330 shash->tfm = shash_tfm; in nvmet_auth_host_hash()
439 shash->tfm = shash_tfm; in nvmet_auth_ctrl_hash()
/openbmc/linux/include/crypto/
H A Daria.h455 int aria_set_key(struct crypto_tfm *tfm, const u8 *in_key,
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dite-it6505.c1930 struct crypto_shash *tfm; in it6505_sha1_digest() local
1934 tfm = crypto_alloc_shash("sha1", 0, 0); in it6505_sha1_digest()
1935 if (IS_ERR(tfm)) { in it6505_sha1_digest()
1937 return PTR_ERR(tfm); in it6505_sha1_digest()
1939 desc = kzalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL); in it6505_sha1_digest()
1941 crypto_free_shash(tfm); in it6505_sha1_digest()
1945 desc->tfm = tfm; in it6505_sha1_digest()
1950 crypto_free_shash(tfm); in it6505_sha1_digest()
/openbmc/linux/Documentation/crypto/
H A Dintro.rst19 Therefore, a cipher handle variable usually has the name "tfm". Besides
/openbmc/linux/drivers/crypto/qce/
H A Dcore.c70 u32 type = crypto_tfm_alg_type(async_req->tfm); in qce_handle_request()
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Ddp_rx.c2748 struct crypto_shash *tfm; in ath12k_dp_rx_peer_frag_setup() local
2753 tfm = crypto_alloc_shash("michael_mic", 0, 0); in ath12k_dp_rx_peer_frag_setup()
2754 if (IS_ERR(tfm)) in ath12k_dp_rx_peer_frag_setup()
2755 return PTR_ERR(tfm); in ath12k_dp_rx_peer_frag_setup()
2762 crypto_free_shash(tfm); in ath12k_dp_rx_peer_frag_setup()
2774 peer->tfm_mmic = tfm; in ath12k_dp_rx_peer_frag_setup()
2781 static int ath12k_dp_rx_h_michael_mic(struct crypto_shash *tfm, u8 *key, in ath12k_dp_rx_h_michael_mic() argument
2785 SHASH_DESC_ON_STACK(desc, tfm); in ath12k_dp_rx_h_michael_mic()
2790 if (!tfm) in ath12k_dp_rx_h_michael_mic()
2793 desc->tfm = tfm; in ath12k_dp_rx_h_michael_mic()
[all …]
/openbmc/linux/drivers/crypto/nx/
H A Dnx-common-powernv.c1034 static int nx842_powernv_crypto_init(struct crypto_tfm *tfm) in nx842_powernv_crypto_init() argument
1036 return nx842_crypto_init(tfm, &nx842_powernv_driver); in nx842_powernv_crypto_init()
H A Dnx-common-pseries.c1011 static int nx842_pseries_crypto_init(struct crypto_tfm *tfm) in nx842_pseries_crypto_init() argument
1013 return nx842_crypto_init(tfm, &nx842_pseries_driver); in nx842_pseries_crypto_init()
/openbmc/openbmc/meta-arm/meta-arm/recipes-bsp/trusted-firmware-m/
H A Dtrusted-firmware-m.inc76 …tls -DTFM_TEST_REPO_PATH=${S}/../tf-m-tests -DTFM_EXTRAS_REPO_PATH=${S}/../tfm-extras -DMCUBOOT_PA…
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_verbs.h405 struct crypto_shash *tfm; member
/openbmc/u-boot/fs/ubifs/
H A Dubifs.c122 crypto_comp_decompress(const struct ubifs_info *c, struct crypto_comp *tfm, in crypto_comp_decompress() argument
126 struct ubifs_compressor *compr = ubifs_compressors[tfm->compressor]; in crypto_comp_decompress()
/openbmc/linux/drivers/crypto/caam/
H A Dcaamhash.c1760 static int caam_hash_cra_init(struct crypto_tfm *tfm) in caam_hash_cra_init() argument
1762 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in caam_hash_cra_init()
1763 struct crypto_alg *base = tfm->__crt_alg; in caam_hash_cra_init()
1869 static void caam_hash_cra_exit(struct crypto_tfm *tfm) in caam_hash_cra_exit() argument
1871 struct caam_hash_ctx *ctx = crypto_tfm_ctx_dma(tfm); in caam_hash_cra_exit()
/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A Ddp_rx.c3135 struct crypto_shash *tfm; in ath11k_peer_rx_frag_setup() local
3140 tfm = crypto_alloc_shash("michael_mic", 0, 0); in ath11k_peer_rx_frag_setup()
3141 if (IS_ERR(tfm)) { in ath11k_peer_rx_frag_setup()
3143 PTR_ERR(tfm)); in ath11k_peer_rx_frag_setup()
3144 return PTR_ERR(tfm); in ath11k_peer_rx_frag_setup()
3153 crypto_free_shash(tfm); in ath11k_peer_rx_frag_setup()
3164 peer->tfm_mmic = tfm; in ath11k_peer_rx_frag_setup()
3175 SHASH_DESC_ON_STACK(desc, tfm); in ath11k_dp_rx_h_michael_mic()
3180 if (!tfm) in ath11k_dp_rx_h_michael_mic()
3183 desc->tfm = tfm; in ath11k_dp_rx_h_michael_mic()
[all …]
/openbmc/linux/drivers/net/wireless/cisco/
H A Dairo.c1225 struct crypto_sync_skcipher *tfm; member
1300 struct crypto_sync_skcipher *tfm);
1307 struct crypto_sync_skcipher *tfm) in age_mic_context() argument
1352 ai->tfm); in micinit()
1358 ai->tfm); in micinit()
1368 if (ai->tfm == NULL) in micsetup()
1371 if (IS_ERR(ai->tfm)) { in micsetup()
1373 ai->tfm = NULL; in micsetup()
1638 struct crypto_sync_skcipher *tfm) in emmh32_setseed() argument
2433 crypto_free_sync_skcipher(ai->tfm); in stop_airo_card()
[all …]

1...<<11121314151617181920