Home
last modified time | relevance | path

Searched refs:calc_hash (Results 1 – 8 of 8) sorted by relevance

/trusted-firmware-a-3.7.0/plat/st/common/
Dstm32mp_trusted_boot.c98 uint8_t calc_hash[BOOT_API_SHA256_DIGEST_SIZE_IN_BYTES]; in get_rotpk_hash() local
120 param->nb_pk * sizeof(boot_api_sha256_t), calc_hash); in get_rotpk_hash()
132 ret = memcmp(calc_hash, otp_hash, sizeof(calc_hash)); in get_rotpk_hash()
Dstm32mp_crypto_lib.c450 uint8_t calc_hash[BOOT_API_SHA256_DIGEST_SIZE_IN_BYTES]; in crypto_verify_hash() local
459 if ((ret != 0) || (md_alg != MBEDTLS_MD_SHA256) || (len != sizeof(calc_hash))) { in crypto_verify_hash()
468 ret = stm32_hash_final_update(data_ptr, data_len, calc_hash); in crypto_verify_hash()
474 ret = memcmp(calc_hash, digest_info_ptr, digest_info_len); in crypto_verify_hash()
/trusted-firmware-a-3.7.0/include/drivers/auth/
Dcrypto_mod.h65 int (*calc_hash)(enum crypto_md_algo md_alg, void *data_ptr, member
129 .calc_hash = _calc_hash, \
/trusted-firmware-a-3.7.0/drivers/auth/
Dcrypto_mod.c58 assert(crypto_lib_desc.calc_hash != NULL); in crypto_mod_init()
140 return crypto_lib_desc.calc_hash(alg, data_ptr, data_len, output); in crypto_mod_calc_hash()
/trusted-firmware-a-3.7.0/drivers/auth/mbedtls/
Dmbedtls_crypto.c261 static int calc_hash(enum crypto_md_algo md_algo, void *data_ptr, in calc_hash() function
401 REGISTER_CRYPTO_LIB(LIB_NAME, init, verify_signature, verify_hash, calc_hash,
404 REGISTER_CRYPTO_LIB(LIB_NAME, init, verify_signature, verify_hash, calc_hash,
416 REGISTER_CRYPTO_LIB(LIB_NAME, init, NULL, NULL, calc_hash, NULL, NULL);
Dmbedtls_psa_crypto.c531 static int calc_hash(enum crypto_md_algo md_algo, void *data_ptr, in calc_hash() function
680 REGISTER_CRYPTO_LIB(LIB_NAME, init, verify_signature, verify_hash, calc_hash,
683 REGISTER_CRYPTO_LIB(LIB_NAME, init, verify_signature, verify_hash, calc_hash,
695 REGISTER_CRYPTO_LIB(LIB_NAME, init, NULL, NULL, calc_hash, NULL, NULL);
/trusted-firmware-a-3.7.0/docs/design/
Dauth-framework.rst239 int (*calc_hash)(enum crypto_md_algo alg, void *data_ptr,
/trusted-firmware-a-3.7.0/docs/
Dchange-log.md6284 - auth: Add `calc_hash` function for hash calculation. Used for authentication