Lines Matching refs:error
39 int error = -ENOMEM; in aa_calc_profile_hash() local
52 error = crypto_shash_init(&desc.shash); in aa_calc_profile_hash()
53 if (error) in aa_calc_profile_hash()
55 error = crypto_shash_update(&desc.shash, (u8 *) &le32_version, 4); in aa_calc_profile_hash()
56 if (error) in aa_calc_profile_hash()
58 error = crypto_shash_update(&desc.shash, (u8 *) start, len); in aa_calc_profile_hash()
59 if (error) in aa_calc_profile_hash()
61 error = crypto_shash_final(&desc.shash, profile->hash); in aa_calc_profile_hash()
62 if (error) in aa_calc_profile_hash()
71 return error; in aa_calc_profile_hash()
83 int error = PTR_ERR(tfm); in init_profile_hash() local
84 AA_ERROR("failed to setup profile sha1 hashing: %d\n", error); in init_profile_hash()
85 return error; in init_profile_hash()