Home
last modified time | relevance | path

Searched refs:crypto_id (Results 1 – 7 of 7) sorted by relevance

/OK3568_Linux_fs/kernel/security/integrity/ima/
H A Dima_queue.c216 u16 crypto_id; in ima_init_digests() local
230 crypto_id = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_digests()
233 if (crypto_id == HASH_ALGO__LAST) in ima_init_digests()
H A Dima_crypto.c129 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto()
154 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto()
847 u16 crypto_id, alg_id; in ima_calc_boot_aggregate() local
851 crypto_id = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_calc_boot_aggregate()
852 if (crypto_id == hash->algo) { in ima_calc_boot_aggregate()
857 if (crypto_id == HASH_ALGO_SHA256) in ima_calc_boot_aggregate()
860 if (bank_idx == -1 && crypto_id == HASH_ALGO_SHA1) in ima_calc_boot_aggregate()
869 hash->algo = ima_tpm_chip->allocated_banks[bank_idx].crypto_id; in ima_calc_boot_aggregate()
/OK3568_Linux_fs/external/security/librkcrypto/src/
H A Drkcrypto_core.c45 uint32_t crypto_id; member
200 static RK_RES rk_get_crypto_id(uint32_t algo, uint32_t mode, uint32_t *crypto_id) in rk_get_crypto_id() argument
206 *crypto_id = algo_map_tbl[i].crypto_id; in rk_get_crypto_id()
460 uint32_t crypto_id = 0; in rk_cipher_init() local
468 res = rk_get_crypto_id(config->algo, config->mode, &crypto_id); in rk_cipher_init()
474 sess.cipher = crypto_id; in rk_cipher_init()
579 uint32_t crypto_id = 0; in rk_ae_init() local
588 res = rk_get_crypto_id(config->algo, config->mode, &crypto_id); in rk_ae_init()
594 sess.cipher = crypto_id; in rk_ae_init()
796 uint32_t crypto_id = 0; in rk_hash_init() local
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dtpm.h53 u16 crypto_id; member
310 unsigned int crypto_id; member
/OK3568_Linux_fs/kernel/drivers/char/tpm/
H A Dtpm2-cmd.c527 enum hash_algo crypto_algo = tpm2_hash_map[i].crypto_id; in tpm2_init_bank_info()
533 bank->crypto_id = crypto_algo; in tpm2_init_bank_info()
537 bank->crypto_id = HASH_ALGO__LAST; in tpm2_init_bank_info()
H A Dtpm1-cmd.c804 chip->allocated_banks[0].crypto_id = HASH_ALGO_SHA1; in tpm1_get_pcr_allocation()
/OK3568_Linux_fs/kernel/security/keys/trusted-keys/
H A Dtrusted_tpm2.c73 if (options->hash == tpm2_hash_map[i].crypto_id) { in tpm2_seal_trusted()