/trusted-firmware-a-latest/drivers/auth/ |
D | crypto_mod.c | 79 int crypto_mod_verify_signature(void *data_ptr, unsigned int data_len, in crypto_mod_verify_signature() argument 84 assert(data_ptr != NULL); in crypto_mod_verify_signature() 93 return crypto_lib_desc.verify_signature(data_ptr, data_len, in crypto_mod_verify_signature() 107 int crypto_mod_verify_hash(void *data_ptr, unsigned int data_len, in crypto_mod_verify_hash() argument 110 assert(data_ptr != NULL); in crypto_mod_verify_hash() 115 return crypto_lib_desc.verify_hash(data_ptr, data_len, in crypto_mod_verify_hash() 132 int crypto_mod_calc_hash(enum crypto_md_algo alg, void *data_ptr, in crypto_mod_calc_hash() argument 136 assert(data_ptr != NULL); in crypto_mod_calc_hash() 140 return crypto_lib_desc.calc_hash(alg, data_ptr, data_len, output); in crypto_mod_calc_hash() 170 int crypto_mod_auth_decrypt(enum crypto_dec_algo dec_algo, void *data_ptr, in crypto_mod_auth_decrypt() argument [all …]
|
D | auth_mod.c | 93 void *data_ptr, *hash_der_ptr; in auth_hash() local 109 img, img_len, &data_ptr, &data_len); in auth_hash() 117 rc = crypto_mod_verify_hash(data_ptr, data_len, in auth_hash() 159 void *data_ptr, *pk_ptr, *cnv_pk_ptr, *pk_plat_ptr, *sig_ptr, *sig_alg_ptr, *pk_oid; in auth_signature() local 166 img, img_len, &data_ptr, &data_len); in auth_signature() 292 rc = crypto_mod_verify_signature(data_ptr, data_len, in auth_signature() 327 void *data_ptr = NULL; in auth_nvctr() local 336 img, img_len, &data_ptr, &data_len); in auth_nvctr() 344 assert(data_ptr); in auth_nvctr() 345 p = (unsigned char *)data_ptr; in auth_nvctr()
|
/trusted-firmware-a-latest/include/drivers/auth/ |
D | crypto_mod.h | 55 int (*verify_signature)(void *data_ptr, unsigned int data_len, 61 int (*verify_hash)(void *data_ptr, unsigned int data_len, 65 int (*calc_hash)(enum crypto_md_algo md_alg, void *data_ptr, 77 int (*auth_decrypt)(enum crypto_dec_algo dec_algo, void *data_ptr, 95 int crypto_mod_verify_signature(void *data_ptr, unsigned int data_len, 99 int crypto_mod_verify_hash(void *data_ptr, unsigned int data_len, 104 int crypto_mod_auth_decrypt(enum crypto_dec_algo dec_algo, void *data_ptr, 112 int crypto_mod_calc_hash(enum crypto_md_algo alg, void *data_ptr,
|
/trusted-firmware-a-latest/drivers/nxp/crypto/caam/src/auth/ |
D | nxp_crypto.c | 41 static int verify_signature(void *data_ptr, unsigned int data_len, in verify_signature() argument 53 ret = rsa_verify_signature(data_ptr, data_len, sig_ptr, sig_len, in verify_signature() 77 static int verify_hash(void *data_ptr, unsigned int data_len, in verify_hash() argument 94 ret = hash_update(algo, ctx, data_ptr, data_len); in verify_hash()
|
D | hash.c | 64 int hash_update(enum hash_algo algo, void *context, void *data_ptr, in hash_update() argument 83 flush_dcache_range((uintptr_t)data_ptr, data_len); in hash_update() 89 (uint32_t) ((uintptr_t) data_ptr >> 32)); in hash_update() 93 sec_out32(&ctx->sg_tbl[ctx->sg_num].addr_lo, (uintptr_t) data_ptr); in hash_update()
|
/trusted-firmware-a-latest/drivers/auth/mbedtls/ |
D | mbedtls_crypto.c | 74 static int verify_signature(void *data_ptr, unsigned int data_len, in verify_signature() argument 131 p = (unsigned char *)data_ptr; in verify_signature() 163 static int verify_hash(void *data_ptr, unsigned int data_len, in verify_hash() argument 218 p = (unsigned char *)data_ptr; in verify_hash() 261 static int calc_hash(enum crypto_md_algo md_algo, void *data_ptr, in calc_hash() argument 277 return mbedtls_md(md_info, data_ptr, data_len, output); in calc_hash() 289 static int aes_gcm_decrypt(void *data_ptr, size_t len, const void *key, in aes_gcm_decrypt() argument 298 unsigned char *pt = data_ptr; in aes_gcm_decrypt() 371 static int auth_decrypt(enum crypto_dec_algo dec_algo, void *data_ptr, in auth_decrypt() argument 383 rc = aes_gcm_decrypt(data_ptr, len, key, key_len, iv, iv_len, in auth_decrypt()
|
D | mbedtls_psa_crypto.c | 301 static int verify_signature(void *data_ptr, unsigned int data_len, in verify_signature() argument 407 data_ptr, data_len, in verify_signature() 434 static int verify_hash(void *data_ptr, unsigned int data_len, in verify_hash() argument 491 data_ptr, (size_t)data_len, in verify_hash() 531 static int calc_hash(enum crypto_md_algo md_algo, void *data_ptr, in calc_hash() argument 547 status = psa_hash_compute(psa_md_alg, data_ptr, (size_t)data_len, in calc_hash() 568 static int aes_gcm_decrypt(void *data_ptr, size_t len, const void *key, in aes_gcm_decrypt() argument 577 unsigned char *pt = data_ptr; in aes_gcm_decrypt() 650 static int auth_decrypt(enum crypto_dec_algo dec_algo, void *data_ptr, in auth_decrypt() argument 662 rc = aes_gcm_decrypt(data_ptr, len, key, key_len, iv, iv_len, in auth_decrypt()
|
/trusted-firmware-a-latest/plat/st/common/ |
D | usb_dfu.c | 223 uintptr_t data_ptr; in usb_dfu_download() local 239 ret = hdfu->callback->download(hdfu->alt_setting, &data_ptr, in usb_dfu_download() 245 usb_core_receive_ep0(pdev, (uint8_t *)data_ptr, length); in usb_dfu_download() 276 uintptr_t data_ptr; in usb_dfu_upload() local 297 ret = hdfu->callback->upload(hdfu->alt_setting, &data_ptr, &length, pdev->user_data); in usb_dfu_upload() 303 usb_core_transmit_ep0(pdev, (uint8_t *)data_ptr, length); in usb_dfu_upload()
|
D | stm32mp_crypto_lib.c | 305 static int crypto_verify_signature(void *data_ptr, unsigned int data_len, in crypto_verify_signature() argument 436 ret = stm32_hash_final_update((uint8_t *)data_ptr, data_len, image_hash); in crypto_verify_signature() 445 static int crypto_verify_hash(void *data_ptr, unsigned int data_len, in crypto_verify_hash() argument 468 ret = stm32_hash_final_update(data_ptr, data_len, calc_hash); in crypto_verify_hash() 623 static int crypto_auth_decrypt(enum crypto_dec_algo dec_algo, void *data_ptr, size_t len, in crypto_auth_decrypt() argument 642 rc = stm32_decrypt_aes_gcm(data_ptr, len, key, key_len, key_flags, in crypto_auth_decrypt()
|
/trusted-firmware-a-latest/include/drivers/nxp/crypto/caam/ |
D | hash.h | 80 int hash_update(enum hash_algo algo, void *context, void *data_ptr,
|
/trusted-firmware-a-latest/docs/design/ |
D | auth-framework.rst | 235 int (*verify_signature)(void *data_ptr, unsigned int data_len, 239 int (*calc_hash)(enum crypto_md_algo alg, void *data_ptr, 242 int (*verify_hash)(void *data_ptr, unsigned int data_len, 244 int (*auth_decrypt)(enum crypto_dec_algo dec_algo, void *data_ptr, 982 int verify_signature(void *data_ptr, unsigned int data_len, 986 int crypto_mod_calc_hash(enum crypto_md_algo alg, void *data_ptr, 989 int verify_hash(void *data_ptr, unsigned int data_len, 991 int auth_decrypt(enum crypto_dec_algo dec_algo, void *data_ptr,
|