Searched refs:tfm (Results 1 – 4 of 4) sorted by relevance
37 struct crypto_shash **tfm; in init_desc() local41 tfm = &hmac_tfm; in init_desc()44 tfm = &hash_tfm; in init_desc()48 if (*tfm == NULL) { in init_desc()50 if (*tfm) in init_desc()52 *tfm = crypto_alloc_shash(algo, 0, CRYPTO_ALG_ASYNC); in init_desc()53 if (IS_ERR(*tfm)) { in init_desc()54 rc = PTR_ERR(*tfm); in init_desc()56 *tfm = NULL; in init_desc()61 rc = crypto_shash_setkey(*tfm, evmkey, evmkey_len); in init_desc()[all …]
88 struct crypto_blkcipher *tfm; in aes_get_sizes() local90 tfm = crypto_alloc_blkcipher(blkcipher_alg, 0, CRYPTO_ALG_ASYNC); in aes_get_sizes()91 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()96 ivsize = crypto_blkcipher_ivsize(tfm); in aes_get_sizes()97 blksize = crypto_blkcipher_blocksize(tfm); in aes_get_sizes()98 crypto_free_blkcipher(tfm); in aes_get_sizes()333 sdesc->shash.tfm = alg; in alloc_sdesc()410 desc->tfm = crypto_alloc_blkcipher(blkcipher_alg, 0, CRYPTO_ALG_ASYNC); in init_blkcipher_desc()[all …]
53 desc.shash.tfm = ima_shash_tfm; in ima_calc_file_hash()105 desc.shash.tfm = ima_shash_tfm; in ima_calc_buffer_hash()132 desc.shash.tfm = ima_shash_tfm; in ima_calc_boot_aggregate()
54 sdesc->shash.tfm = alg; in init_sdesc()