09-05-2019 05:45 AM - edited 09-05-2019 05:48 AM
i am using OPTEE on the zcu102 board and are working on combining the software crypto library with hardware accelerated crypto. Now the AES example driver implementation for the board is using the sys/socket.h library, which is not available on OPTEE-os.
My approach was to instead use the xilsecure crypto API, but I'm not sure on how I can add it to my project. Right now I'm making changes to the optee-os in a pure software environment and I'm not sure if i can continue developing it from within Xilinx SDK.
Is it possible to link to the xilsecure library outside the SDK? I have found the xilsecure git but I don't know how to use it.
I'm also happy to hear about possible different solutions.
09-13-2019 10:36 AM - edited 09-13-2019 10:37 AM
Question: Are you running the PMUFW in your system? If so then you can include the XilSecure in PMUFW and have your OS call the various functions through APIs.
Would that work?
About the linking question ... maybe you are better off asking the SDK forum.
09-24-2019 07:54 AM
That sounds like a practical solution. So after adding xilsecure to the PMUFW I would then program the encryption / decryption routine executed after interrupt on the PMUFW side. Is there a guideline on how to create the API on the PMU side? I don't know how to setup the interrupt routine.
09-25-2019 10:17 AM
Check your XSDK installation folder. It has have some RPU/APU examples on how to call those API.
09-27-2019 06:57 AM - edited 09-27-2019 07:06 AM
Right now im trying to setup the IPI system between APU and PMU. Following the instructions given in the tutorial, I now have a communication system where PMU initiates the transmission. For my use case I would need the APU to initiate the communication. When I just change the Receive / Send macros as listed at the bottom of the tutorial I don't see any messages at all.
I also tried to setup the RPU example to see if I did any mistakes, but there the RPU -> PMU direction also doesn't work in the example setup.
Is there any additional setup necessary so the IPI channel works? For example changes to the bsp?