Teensy 4 crypto

Status
Not open for further replies.

nanomonkey

New member
Are there libraries, or Arm Cortex assembler references for using the data co-processor (DCP) cryptographic acceleration? I'm new to the Teensy environment, and have a few projects that could utilize SHA256 hashing functionality and random number generator.

Thanks in advance.
 
The Entropy library uses the random number hardware.

So far there is no library support for SHA256 or AES128 in the DCP.
 
Duino coin was working on Teensy 4, according to another forum member, although you'd need their modded code to get it to work
 
here is an earlier post https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=197722&viewfull=1#post197722
that describes using the T4 crypto accelerators for AES and SHA. The low level block operations are accelerated, so one would need to add code to do blocking etc to get a full library-like implementation. The NXP SDK has modified the mbedtls and wolfssl crypto libs to incorporate the T4 acceleration and T4 TRNG. You could study those libraries to see how you might make an accelerated Teensy lib. (the "unaccelerated" versions of mbedtls and wolfssl work on the Teensy 3/4)

some comparisons of AES and SHA256 on various MCUs in perf.txt
 
Status
Not open for further replies.
Back
Top