Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: TLS library (for secure https)

  1. #1
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,225

    TLS library (for secure https)

    I wonder if this can be adapted to an Arduino library?

    https://blogs.aws.amazon.com/securit...roducing-s2n-a

  2. #2
    Junior Member
    Join Date
    Aug 2015
    Posts
    1
    That would be great. Majority of the sites are moving to TLS1.2
    With all buzz about IoT almost no microcontroller platform offers decent TLS library.
    I think only mbed integrated PolarSSL into the platform.


    Quote Originally Posted by PaulStoffregen View Post
    I wonder if this can be adapted to an Arduino library?

    https://blogs.aws.amazon.com/securit...roducing-s2n-a

  3. #3
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    1,837
    I have tested some (AES, MD5, SHA, bignumber, entropy) of the mbed TLS on the teensy 3* series, see
    https://forum.pjrc.com/threads/34808...l=1#post108621
    It would be interesting to modify the TLS to utilize the teensy K66/K64 crypto-acceleration unit (CAU)

  4. #4
    Senior Member
    Join Date
    Jun 2013
    Location
    Montréal
    Posts
    463
    This could be great for the mqtt/pubsub library !

  5. #5
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    1,837
    Quote Originally Posted by manitou View Post
    I have tested some (AES, MD5, SHA, bignumber, entropy) of the mbed TLS on the teensy 3* series, see
    https://forum.pjrc.com/threads/34808...l=1#post108621
    It would be interesting to modify the TLS to utilize the teensy K66/K64 crypto-acceleration unit (CAU)
    In testing NXP 1052 (teensy 4 pre-beta), I encountered NXP's wolfssl lib in their SDK along with mbedtls. The NXP libs have provided access to the crypto-acceleration hardware on the T3.5/T3.6 and the new Teensy 4 to speed up AES and SHA. Here is reference describing how to port the wolfssl lib to Arduino. I ported wolfssl and tested on Teensy 3* (though this port does not include support for the crypto-hardware).
    Code:
    wolfssl tests  Faster
               T3.2@120mhz  T3.5@120mhz  T3.6@180mhz  1052@600mhz 
    MD5          4551 KBs     6243         11906 KBs     15 MBs   
    SHA256       1321         1825          2934 KBs     93 MBs with DCP acceleration
    RC4          5145         5197          7757 KBs     36 MBs
    AESCBC        646          870          2522 KBs     62 MBs with DCP acceleration
    100!         1274 us      1145           551 us     253 us
    wolfssl github
    Last edited by manitou; 12-12-2018 at 09:59 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •