Godspped
Godspped

Reputation: 743

WolfSSL on a Microblaze speed?

Hi I have a small ARTY development board with a ARTY-35T, I have a sample project running on the board with lwip and a webserver. I was wondering if WolfSSL will be fast enough on a Microblaze running at 50MHz without a floating point unit. With all the mathematics involved I am wondering if the connection will time out before it can finish on the development board? Has anyone had experience in this?

Thanks in advance.

Upvotes: 0

Views: 132

Answers (1)

Kaleb
Kaleb

Reputation: 611

I would recommend looking into run-time clock adjustment on the device. It is common to speed up the clock for the heavy crypto operations that are involved when initially establishing a secure connection (I.E. the handshake portion of the TLS connection). Once the connection is established and the device is just doing record layer transactions the clock can then be tuned back to a lower speed. This setup would allow the connection to be established before a timeout occurs (in nearly all cases), while also allowing for power consideration.

I think it would be completely possible to realize a connection before timeout on your device. In addition to evaluating clock run-time adjustments wolfSSL offers single-precision math optimizations for some of the most expensive crypto operations involved during the handshake process. I recommend you review the below settings for wolfSSL:

WOLFSSL_HAVE_SP_RSA
WOLFSSL_HAVE_SP_ECC
WOLFSSL_HAVE_SP_DH

With the Single Precision assembly optimizations + clock tuning for the handshake you should have no issues establishing a secure connection before timeouts become an issue.

For more information or details please feel free to contact the wolfSSL support team directly at anytime by sending an email to "support [at] wolfssl [dot] com" or through the zendesk portal at "wolfssl [dot] zendesk [dot] com".

Upvotes: 0

Related Questions