nolzaheo / OPTEE

#trusted-firmware-a #CoT #tb_fw.crt #gen_proof
0 stars 0 forks source link

Sorry to bother you, I would like to know some related issues:https://github.com/OP-TEE/optee_os/issues/6411 #2

Open oldoldcoder opened 9 months ago

oldoldcoder commented 9 months ago

At present, I also need to use OpenSsl on the TA side to implement the requirements. I saw you said that you will use mbedTLS in the future.

but in document: https://optee.readthedocs.io/en/latest/faq/faq.html#q-how-do-i-link-a-library-into-a-trusted-application I saw that you can manually import the library into it, so I want to ask:

Have you tried manually integrating the OpenSsl library as per (https://optee.readthedocs.io/en/latest/faq/faq.html#q-how-do-i-link-a-library-into-a-trusted- application), have you tried this step?

Sorry to bother you, hope to receive your reply

nolzaheo commented 9 months ago

As you see here,(https://github.com/OP-TEE/optee_os/issues/6411) optee doesn't support openssl in ta(you can import openssl only in ca). So I used MbedTLS, instead.

oldoldcoder commented 9 months ago

@nolzaheo thank you for your reply ,Maybe I should to refactor my code,Salute you

oldoldcoder commented 9 months ago

@nolzaheo I spent a day refactoring the code, but currently when compiling, I can't add in the mbedTls dependency in ca as per the previous method, can you tell me how you did it?

nolzaheo commented 9 months ago

@nolzaheo I spent a day refactoring the code, but currently when compiling, I can't add in the mbedTls dependency in ca as per the previous method, can you tell me how you did it?

Have you followed these steps in this link? (https://optee.readthedocs.io/en/latest/architecture/libraries.html#libmbedtls)

Be careful the info is bit wrong.

CFG_CRYPTOLIB_DIR=core/lib/libmbedtls (x) CFG_CRYPTOLIB_DIR=/lib/libmbedtls (o)

image

oldoldcoder commented 9 months ago

@nolzaheo Since I'm a newbie, so maybe I don't understand the above very well, my problem is that when I use some mbedtls header files in ca, it prompts during compilation that it can't find the:

image

According to the previous author's reply, I use:

image image

to work it out, but seem to have run into some problems, i.e. I still don't know at the moment what the process is that I need to do when I need to add a different non-standard library to ca.

oldoldcoder commented 9 months ago

@nolzaheo I just need a standardized process for adding non-standard libraries to CA and TA,It doesn't seem to be found in the document

nolzaheo commented 9 months ago

@oldoldcoder Have you tried modifying config values in optee_os/mk/config.mk like below? image