cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

Anonymous
Not applicable

Hello,

   

I have a CYW943907EVAL1F kit and am trying to make use of the on-board cryptography core as shown in the document below.

   

http://www.cypress.com/file/298241/download

   

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:

   

crypto.c : https://pastebin.com/qJYMT8k8

   

​crypto_api.h : https://pastebin.com/UTxV3EGd

0 Likes
2 Replies
GauravS_31
Moderator
Moderator

You can right-click on any hwcrypto function in crypto_api.h and select "Open Call Hierarchy". That would show where and how the function was used.

Anonymous
Not applicable

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!

0 Likes