Lines Matching refs:send_cmd
337 keymaster_gen_keypair_cmd_t *send_cmd = NULL; in qcom_km_generate_keypair() local
344 send_cmd = (keymaster_gen_keypair_cmd_t *)handle->ion_sbuffer; in qcom_km_generate_keypair()
347 send_cmd->cmd_id = KEYMASTER_GENERATE_KEYPAIR; in qcom_km_generate_keypair()
348 send_cmd->key_type = key_type; in qcom_km_generate_keypair()
349 send_cmd->rsa_params.modulus_size = rsa_params->modulus_size; in qcom_km_generate_keypair()
350 send_cmd->rsa_params.public_exponent = rsa_params->public_exponent; in qcom_km_generate_keypair()
360 ret = (*km_handle->QSEECom_send_cmd)(handle, send_cmd, in qcom_km_generate_keypair()
419 keymaster_import_keypair_cmd_t *send_cmd = NULL; in qcom_km_import_keypair() local
424 send_cmd = (keymaster_import_keypair_cmd_t *)handle->ion_sbuffer; in qcom_km_import_keypair()
427 send_cmd->cmd_id = KEYMASTER_IMPORT_KEYPAIR; in qcom_km_import_keypair()
428 send_cmd->pkcs8_key = (uint32_t)ihandle.ion_sbuffer; in qcom_km_import_keypair()
432 send_cmd->pkcs8_key_len = key_length; in qcom_km_import_keypair()
442 ret = (*km_handle->QSEECom_send_modified_cmd)(handle, send_cmd, in qcom_km_import_keypair()
443 QSEECOM_ALIGN(sizeof(*send_cmd)), resp, in qcom_km_import_keypair()
500 keymaster_sign_data_cmd_t *send_cmd = NULL; in qcom_km_sign_data() local
521 send_cmd = (keymaster_sign_data_cmd_t *)handle->ion_sbuffer; in qcom_km_sign_data()
524 send_cmd->cmd_id = KEYMASTER_SIGN_DATA ; in qcom_km_sign_data()
525 send_cmd->sign_param.digest_type = sign_params->digest_type; in qcom_km_sign_data()
526 send_cmd->sign_param.padding_type = sign_params->padding_type; in qcom_km_sign_data()
527 memcpy((unsigned char *)(&send_cmd->key_blob), keyBlob, keyBlobLength); in qcom_km_sign_data()
530 send_cmd->data = (uint32_t)ihandle.ion_sbuffer; in qcom_km_sign_data()
531 send_cmd->dlen = dataLength; in qcom_km_sign_data()
542 ret = (*km_handle->QSEECom_send_modified_cmd)(handle, send_cmd, in qcom_km_sign_data()
543 QSEECOM_ALIGN(sizeof(*send_cmd)), resp, in qcom_km_sign_data()
599 keymaster_verify_data_cmd_t *send_cmd = NULL; in qcom_km_verify_data() local
621 send_cmd = (keymaster_verify_data_cmd_t *)handle->ion_sbuffer; in qcom_km_verify_data()
624 send_cmd->cmd_id = KEYMASTER_VERIFY_DATA ; in qcom_km_verify_data()
625 send_cmd->sign_param.digest_type = sign_params->digest_type; in qcom_km_verify_data()
626 send_cmd->sign_param.padding_type = sign_params->padding_type; in qcom_km_verify_data()
627 memcpy((unsigned char *)(&send_cmd->key_blob), keyBlob, keyBlobLength); in qcom_km_verify_data()
629 send_cmd->signed_data = (uint32_t)ihandle.ion_sbuffer; in qcom_km_verify_data()
630 send_cmd->signed_dlen = signedDataLength; in qcom_km_verify_data()
633 send_cmd->signature = signedDataLength; in qcom_km_verify_data()
634 send_cmd->slen = signatureLength; in qcom_km_verify_data()
646 ret = (*km_handle->QSEECom_send_modified_cmd)(handle, send_cmd, in qcom_km_verify_data()
647 QSEECOM_ALIGN(sizeof(*send_cmd)), resp, in qcom_km_verify_data()