Hello, @ashwini2024
Thanks for the reply.
From the description before, I assume that you may want to implement your own application to support the TLS connections, maybe https server/client or so, and take use of HSE to do something during handshake and/or even data encryption/decryption during the TLS communication, is it right?
Theoretically, it could be done on S32G board, since Linux could be correctly running on it, with various applications/libs supported.(openssl, libcrypto, libssl, etc.)
From NXP's perspective, in formal released BSP, the TLS operation could be done via software, HSE is not involved, since lacking of enough APIs to let the openssl to call the HSE related lower APIs, as you may know, in formal BSPs, only libhse and libpkcs are provided, the users have to learn the details of the lib to implement their own applications on them, but there is not openssl interface, so that the openssl cannot directly access the HSE services in formal BSP release.
In AN14072, the author implemented some code to let the openssl to call the libpkcs, so that some operation could be done via openssl->libpkcs->HSE, the main TLS connection logic is based on the openssl, a few selected algorithm(like ECDH-ECDSA-AES128-SHA) related operation in TLS connection could be done via HSE, while all others are still done via the openssl libs.
For you questions:
1. TLS Cipher Suite Configuration
[Chenyin]: Check the script, there are available cipher suite supported.
2. Location of TLS Scripts
[Chenyin]: The scripts you mentioned are part of the demo, and could not be directly used in BSP.
3. AES Key Storage in HSE
[Chenyin]: Yes, there is not any other documents related, reading the code is suggested.
4. Overview of Required Steps and other related questions
[Chenyin]: Follow the guides in AN14072, firstly apply all patches to the corresponding packages, then rebuild them and put the generating libxxx to the board running with the formal BSP(in the example, BSP38 is used, for recent BSPs, porting may be needed.), then running the script to demo the TLS connections with selected cipher suite.
In summary:
1. With default BSPs, the TLS connection could be done only via openssl and related libs(software based), HSE could not be involved with default configuration.
2. With the patches from AN14072 applied, some selected cipher suite could be offloaded to HSE while doing the TLS test.
3. There seems no other formal documents/demos related with this topic.
I suggest firstly reproducing the TLS demo shown in AN14072 on your board(maybe based on recent BSPs according to the requirements), to check if it could fulfill your requirement, and then to implement your own code based on it(or only reference) to add new features that needed from your own applications.
BR
Chenyin