Lines Matching refs:ihandle
73 struct QSEECom_ion_fd_info *ihandle);
402 struct qcom_km_ion_info_t ihandle; in qcom_km_import_keypair() local
405 ihandle.ion_fd = 0; in qcom_km_import_keypair()
406 ihandle.ion_alloc_handle.handle = NULL; in qcom_km_import_keypair()
407 if (qcom_km_ION_memalloc(&ihandle, QSEECOM_ALIGN(key_length)) < 0) { in qcom_km_import_keypair()
414 ion_fd_info.data[0].fd = ihandle.ifd_data_fd; in qcom_km_import_keypair()
428 send_cmd->pkcs8_key = (uint32_t)ihandle.ion_sbuffer; in qcom_km_import_keypair()
430 memcpy((unsigned char *)ihandle.ion_sbuffer, key, key_length); in qcom_km_import_keypair()
439 qcom_km_ion_dealloc(&ihandle); in qcom_km_import_keypair()
451 qcom_km_ion_dealloc(&ihandle); in qcom_km_import_keypair()
465 qcom_km_ion_dealloc(&ihandle); in qcom_km_import_keypair()
503 struct qcom_km_ion_info_t ihandle; in qcom_km_sign_data() local
508 ihandle.ion_fd = 0; in qcom_km_sign_data()
509 ihandle.ion_alloc_handle.handle = NULL; in qcom_km_sign_data()
510 if (qcom_km_ION_memalloc(&ihandle, dataLength) < 0) { in qcom_km_sign_data()
517 ion_fd_info.data[0].fd = ihandle.ifd_data_fd; in qcom_km_sign_data()
528 memcpy((unsigned char *)ihandle.ion_sbuffer, data, dataLength); in qcom_km_sign_data()
530 send_cmd->data = (uint32_t)ihandle.ion_sbuffer; in qcom_km_sign_data()
538 qcom_km_ion_dealloc(&ihandle); in qcom_km_sign_data()
551 qcom_km_ion_dealloc(&ihandle); in qcom_km_sign_data()
557 qcom_km_ion_dealloc(&ihandle); in qcom_km_sign_data()
566 qcom_km_ion_dealloc(&ihandle); in qcom_km_sign_data()
603 struct qcom_km_ion_info_t ihandle; in qcom_km_verify_data() local
608 ihandle.ion_fd = 0; in qcom_km_verify_data()
609 ihandle.ion_alloc_handle.handle = NULL; in qcom_km_verify_data()
610 if (qcom_km_ION_memalloc(&ihandle, signedDataLength + signatureLength) <0) { in qcom_km_verify_data()
617 ion_fd_info.data[0].fd = ihandle.ifd_data_fd; in qcom_km_verify_data()
629 send_cmd->signed_data = (uint32_t)ihandle.ion_sbuffer; in qcom_km_verify_data()
631 memcpy((unsigned char *)ihandle.ion_sbuffer, signedData, signedDataLength); in qcom_km_verify_data()
635 memcpy(((unsigned char *)ihandle.ion_sbuffer + signedDataLength), in qcom_km_verify_data()
642 qcom_km_ion_dealloc(&ihandle); in qcom_km_verify_data()
655 qcom_km_ion_dealloc(&ihandle); in qcom_km_verify_data()
658 qcom_km_ion_dealloc(&ihandle); in qcom_km_verify_data()