Lines Matching refs:ehdr
69 struct shdr_encrypted_ta *ehdr; member
255 struct shdr_encrypted_ta *ehdr = NULL; in ree_fs_ta_open() local
451 ehdr = malloc(ehdr_sz); in ree_fs_ta_open()
452 if (!ehdr) { in ree_fs_ta_open()
457 *ehdr = img_ehdr; in ree_fs_ta_open()
458 memcpy((uint8_t *)ehdr + sizeof(img_ehdr), in ree_fs_ta_open()
462 res = crypto_hash_update(hash_ctx, (uint8_t *)ehdr, ehdr_sz); in ree_fs_ta_open()
466 res = tee_ta_decrypt_init(&handle->enc_ctx, ehdr, in ree_fs_ta_open()
472 handle->ehdr = ehdr; in ree_fs_ta_open()
496 free(ehdr); in ree_fs_ta_open()
624 handle->ehdr, NULL, NULL, 0); in ree_fs_ta_read()
657 free(handle->ehdr); in ree_fs_ta_close()