Searched refs:shash (Results 1 – 4 of 4) sorted by relevance
/security/apparmor/ |
D | crypto.c | 36 struct shash_desc shash; in aa_calc_profile_hash() member 49 desc.shash.tfm = apparmor_tfm; in aa_calc_profile_hash() 50 desc.shash.flags = 0; in aa_calc_profile_hash() 52 error = crypto_shash_init(&desc.shash); in aa_calc_profile_hash() 55 error = crypto_shash_update(&desc.shash, (u8 *) &le32_version, 4); in aa_calc_profile_hash() 58 error = crypto_shash_update(&desc.shash, (u8 *) start, len); in aa_calc_profile_hash() 61 error = crypto_shash_final(&desc.shash, profile->hash); in aa_calc_profile_hash()
|
/security/integrity/ima/ |
D | ima_crypto.c | 389 SHASH_DESC_ON_STACK(shash, tfm); in ima_calc_file_hash_tfm() 391 shash->tfm = tfm; in ima_calc_file_hash_tfm() 392 shash->flags = 0; in ima_calc_file_hash_tfm() 396 rc = crypto_shash_init(shash); in ima_calc_file_hash_tfm() 426 rc = crypto_shash_update(shash, rbuf, rbuf_len); in ima_calc_file_hash_tfm() 435 rc = crypto_shash_final(shash, hash->digest); in ima_calc_file_hash_tfm() 493 SHASH_DESC_ON_STACK(shash, tfm); in ima_calc_field_array_hash_tfm() 496 shash->tfm = tfm; in ima_calc_field_array_hash_tfm() 497 shash->flags = 0; in ima_calc_field_array_hash_tfm() 501 rc = crypto_shash_init(shash); in ima_calc_field_array_hash_tfm() [all …]
|
/security/keys/ |
D | trusted.c | 38 struct shash_desc shash; member 54 sdesc->shash.tfm = alg; in init_sdesc() 55 sdesc->shash.flags = 0x0; in init_sdesc() 71 ret = crypto_shash_digest(&sdesc->shash, data, datalen, digest); in TSS_sha1() 94 ret = crypto_shash_init(&sdesc->shash); in TSS_rawhmac() 108 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_rawhmac() 114 ret = crypto_shash_final(&sdesc->shash, digest); in TSS_rawhmac() 142 ret = crypto_shash_init(&sdesc->shash); in TSS_authhmac() 155 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_authhmac() 161 ret = crypto_shash_final(&sdesc->shash, paramdigest); in TSS_authhmac() [all …]
|
/security/keys/encrypted-keys/ |
D | encrypted.c | 58 struct shash_desc shash; member 340 sdesc->shash.tfm = alg; in alloc_sdesc() 341 sdesc->shash.flags = 0x0; in alloc_sdesc() 359 ret = crypto_shash_digest(&sdesc->shash, buf, buflen, digest); in calc_hmac() 375 ret = crypto_shash_digest(&sdesc->shash, buf, buflen, digest); in calc_hash()
|