Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
However, I cannot find any documentation of how to make use of the core on the board. I have found an app snip/crypto/crypto.c which implements a variety of encrypt/decrypt routines (AES,DES etc) but seems to be purely reliant on software, as it uses libraries included in the WICED SDK. If anyone can point me to documentation or examples of the use of the hardware cryptography core I would much appreciate it.
So far, my best lead is in a file called crypto_api.h under /include/ where functions including "hwcrypto_..." in the name can be found, but I have had no success yet. I have pasted both files:
I have been able to use the crypto_api functions, specifically AES. However, I have not been able to use hw_aes functionality to correctly encrypt and decrypt a buffer. Here is my current code: HW_AES attempt based on snip/crypto/crypto.c with changes - Pastebin.com . It is simply a trimmed down copy of the code in snip/crypto/crypto.c with a few changes in type/argument/function name to behave according to the definitions found in crypto_api.h
Any example code running a HW_AES encryption/decryption routine would be greatly appreciated!