Lines Matching refs:desc
30 SHASH_DESC_ON_STACK(desc, apparmor_tfm); in aa_calc_hash()
41 desc->tfm = apparmor_tfm; in aa_calc_hash()
43 error = crypto_shash_init(desc); in aa_calc_hash()
46 error = crypto_shash_update(desc, (u8 *) data, len); in aa_calc_hash()
49 error = crypto_shash_final(desc, hash); in aa_calc_hash()
64 SHASH_DESC_ON_STACK(desc, apparmor_tfm); in aa_calc_profile_hash()
78 desc->tfm = apparmor_tfm; in aa_calc_profile_hash()
80 error = crypto_shash_init(desc); in aa_calc_profile_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()
89 error = crypto_shash_final(desc, profile->hash); in aa_calc_profile_hash()