You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by GitBox <gi...@apache.org> on 2022/10/08 13:39:46 UTC

[GitHub] [incubator-teaclave-trustzone-sdk] HakonToemte opened a new issue, #97: Question: returning data from the TA

HakonToemte opened a new issue, #97:
URL: https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/97

   Hello.
   I'm trying to create a TA that gets data, appends it to a blockchain and returns the blockchain to the CA. The idea being that the blockchain can then be trusted without any resource-heavy verifying.
   
   Right now I'm just trying to instantiate a struct, App, in the TA and return it to the CA.
   I've been using the rust examples as guidance and it seems that accessing data from the TA is done via the Operation parameters. From my understanding these parameters can only be of type [ParamTmpRef](https://docs.rs/optee-teec/latest/optee_teec/struct.ParamTmpRef.html) or [ParamValue](https://docs.rs/optee-teec/latest/optee_teec/struct.ParamValue.html). So bytes or u32. 
   Can i then only access values from the TA in the form of bytes or u32?
   
   Is it not possible to return directly from invoke_command? In my approach below invoke_command returns an empty Result<()>.
   CA:
   ![image](https://user-images.githubusercontent.com/55509202/194708611-506d62d6-32a5-42cb-9510-acf2ff736856.png)
   TA:
   ![image](https://user-images.githubusercontent.com/55509202/194708569-bbf0c099-2df2-4833-83de-39d4a9983c45.png)
   
   It might be obvious to you that it's my first time working with a TEE, so I can suffer from misconceptions :)
   
   Thankful for any help!
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org


[GitHub] [incubator-teaclave-trustzone-sdk] HakonToemte closed issue #97: Question: returning data from the TA

Posted by GitBox <gi...@apache.org>.
HakonToemte closed issue #97: Question: returning data from the TA
URL: https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/97


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org