Searched refs:tfm (Results 1 – 7 of 7) sorted by relevance
95 return tfm; in ima_alloc_tfm()102 if (IS_ERR(tfm)) { in ima_alloc_tfm()107 return tfm; in ima_alloc_tfm()217 if (ima_algo_array[i].tfm == tfm) in ima_free_tfm()304 return tfm; in ima_alloc_atfm()441 if (IS_ERR(tfm)) in ima_calc_file_ahash()460 shash->tfm = tfm; in ima_calc_file_hash_tfm()508 if (IS_ERR(tfm)) in ima_calc_file_shash()587 shash->tfm = ima_algo_array[tfm_idx].tfm; in ima_calc_field_array_hash_tfm()723 shash->tfm = tfm; in calc_buffer_shash_tfm()[all …]
54 struct crypto_shash *tfm; member
69 struct crypto_shash *tfm; in kdf_alloc() local73 if (IS_ERR(tfm)) { in kdf_alloc()75 return PTR_ERR(tfm); in kdf_alloc()79 crypto_free_shash(tfm); in kdf_alloc()83 *hash = tfm; in kdf_alloc()134 struct crypto_kpp *tfm; in __keyctl_dh_compute() local210 tfm = crypto_alloc_kpp("dh", 0, 0); in __keyctl_dh_compute()211 if (IS_ERR(tfm)) { in __keyctl_dh_compute()212 ret = PTR_ERR(tfm); in __keyctl_dh_compute()220 outlen = crypto_kpp_maxsize(tfm); in __keyctl_dh_compute()[all …]
88 struct crypto_skcipher *tfm; in aes_get_sizes() local91 if (IS_ERR(tfm)) { in aes_get_sizes()93 PTR_ERR(tfm)); in aes_get_sizes()94 return PTR_ERR(tfm); in aes_get_sizes()98 crypto_free_skcipher(tfm); in aes_get_sizes()335 struct crypto_shash *tfm; in calc_hmac() local339 if (IS_ERR(tfm)) { in calc_hmac()342 return PTR_ERR(tfm); in calc_hmac()348 crypto_free_shash(tfm); in calc_hmac()391 if (IS_ERR(tfm)) { in init_skcipher_req()[all …]
81 struct crypto_skcipher *tfm; in do_dcp_crypto() local91 tfm = crypto_alloc_skcipher("ecb-paes-dcp", CRYPTO_ALG_INTERNAL, in do_dcp_crypto()93 if (IS_ERR(tfm)) { in do_dcp_crypto()94 res = PTR_ERR(tfm); in do_dcp_crypto()95 tfm = NULL; in do_dcp_crypto()99 req = skcipher_request_alloc(tfm, GFP_NOFS); in do_dcp_crypto()108 res = crypto_skcipher_setkey(tfm, paes_key, sizeof(paes_key)); in do_dcp_crypto()124 crypto_free_skcipher(tfm); in do_dcp_crypto()
47 sdesc->shash.tfm = alg; in init_sdesc()
78 struct crypto_shash **tfm, *tmp_tfm; in init_desc() local86 tfm = &hmac_tfm; in init_desc()92 tfm = &evm_tfm[hash_algo]; in init_desc()96 if (*tfm) in init_desc()99 if (*tfm) in init_desc()117 *tfm = tmp_tfm; in init_desc()121 desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(*tfm), in init_desc()126 desc->tfm = *tfm; in init_desc()245 data->hdr.length = crypto_shash_digestsize(desc->tfm); in evm_calc_hmac_or_hash()
Completed in 14 milliseconds