1 (edited by simplyembedded 2020-04-24 13:53:55)

Topic: RSA unpad error with Xilinx HW crypto

I am running wolfSSL baremetal on a Xilinx Ultrascale+ SoC. It is documented that wolfSSL supports the Xilinx hardware crypto, however it appears it has not been updated since Xilink SDK 2017. I have tried port it to the latest SDK myself and both SHA3 and AES work however RSA does not. I keep getting the following error on the client side.

RsaUnPad error, invalid formatting
wolfSSL Leaving ConfirmSignature, return -155

If I run the woflSSL tests they also fail with error -6773. I am running wolfSSL 4.3.0.

Share

Re: RSA unpad error with Xilinx HW crypto

Hi simplyembedded,

I believe we fixed that issue here: https://github.com/wolfSSL/wolfssl/pull/2903

See the changes in rsa.c. These are also in the latest v4.4.0 release tagged last week.

It occurred with RSA when RNG was disabled. "RSA PKCS #1.5 padding for signing is not reliant on a random."

As for the Xilinx SDK project we used 2018.2. We also have one for the latest Xilinx Vitis SDK 2019.2 we can share. Please send us an email at suport@wolfssl.com and request it.

Thanks,
David Garske, wolfSSL

Thanks,
David Garske, wolfSSL

Share