Topic: Building Wolfssl with Xilinx 2016.2 for freertos

Hi,

I have trouble building wolfssl in Xilinx SDK 2016.2. Dependency errors keep popping up one after other.

I got it to build successfully on linux.


Tool Details:
Xilinx SDK 2016.2
OS Platform: freertos823_xilinx
Processor: ps7_cortexa9

Purpose :
1. Verify the authenticity of a signature using public key. (ECDSA)
2. Need a 128 bit random number generator meeting SP800-90A and SP800-90B.

PS: I tried uncommenting #define FREERTOS in settings.h.

Any suggestions are appreciated.

Share

Re: Building Wolfssl with Xilinx 2016.2 for freertos

Hi Kannan,

We support the A9 and Aarch64 speedups and the Zynqmp hardware acceleration.
Here is the wolfSSL FreeRTOS Xilinx port:
https://github.com/wolfSSL/wolfssl-examples/pull/155

Here is Xilinx's performance write up on it:
https://www.xilinx.com/support/document … crypto.pdf

Thanks,
David Garske, wolfSSL

Share

Re: Building Wolfssl with Xilinx 2016.2 for freertos

Hi David,

Thank you for your quick reply.

I am having trouble finding wolfssl-examples/Xilinx/FreeRTOS/ . I found this in the link which you shared previously.

Can you guide me through this?

Thanks,
Kannan

Share

Re: Building Wolfssl with Xilinx 2016.2 for freertos

Hi kannan,


The GitHub PR is here: https://github.com/wolfSSL/wolfssl-examples/pull/155

Here is the branch and directory with instructions:
https://github.com/JacobBarthelmeh/wolf … x/FreeRTOS

Let me know if you have any questions.

Thanks,
David Garske, wolfSSL

Share

Re: Building Wolfssl with Xilinx 2016.2 for freertos

Hi David,

I tried building the code from wolfssl-examples/Xilinx/FreeRTOS/. I am facing build errors.


undefined reference to `XSecure_RsaPrivateDecrypt'
undefined reference to `XSecure_RsaPublicEncrypt'.

I have included xilsecure in the BSP.

Attached screenshot for reference.

SDK version> 2017.2

Thanks,
kannan

Share

Re: Building Wolfssl with Xilinx 2016.2 for freertos

Hi Kannan,

Just to double check possible places that could cause the undefined issue. Did you build the BSP after xilsecure was added?

Regards,
Jacob

Share

7 (edited by kannan 2020-05-12 22:45:21)

Re: Building Wolfssl with Xilinx 2016.2 for freertos

Hi Jacob,

Since you mentioned it, i regenerated the BSP again. The error is still the same.

Should i add any user_settings.h file explicitly ?.

What more information can i provide?

Regards,
Kannan

Share

Re: Building Wolfssl with Xilinx 2016.2 for freertos

Hi Kannan,

Thanks for double checking that. I re-read through the "Purpose" you listed in the first message. It looks like you are concerned for just ECDSA and HASH-DRBG? (note that you will need some form of entropy to seed the HASH-DRBG) These two algorithms do not benefit from xilsecure use of RSA, AES-GCM, and SHA3. To that end lets first try without the macro WOLFSSL_XILINX_CRYPT defined in user_settings.h. A helpful write up with adjusting the user_settings.h is located at "Xilinx/FreeRTOS/README.pdf" in the pull request David sent earlier.

Regards,
Jacob

Share

Re: Building Wolfssl with Xilinx 2016.2 for freertos

Hi Jacob,

I tried the procedure mentioned in Xilinx/FreeRTOS/README.pdf, i am facing a wc_GenerateSeed error.


Attaching screenshots for reference.

Regards,
Kannan

Post's attachments

error.png
error.png 186.11 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Share