JacobBarthelmeh b801a96f8c Port to RT1170 and expand CAAM driver | il y a 2 ans | |
---|---|---|
.. | ||
RT1170 | il y a 1 an | |
benchmark | il y a 2 ans | |
wolfcrypt_test | il y a 1 an | |
wolfssl | il y a 2 ans | |
README.md | il y a 1 an | |
include.am | il y a 1 an | |
user_settings.h | il y a 2 ans | |
wolfcrypt_test.c | il y a 1 an |
The files RT1170/fsl_caam_h.patch and RT1170/fsl_caam_c.patch include changes to the existing NXP CAAM driver for use with creating/opening Blobs and generating and using ECC black keys.
To apply the patches first create a project that has the caam driver. This will generate the base fsl_caam.c and fsl_caam.h in the drivers directory. (i.e wolfcrypt_test_cm7/drivers/fls_caam.{c,h}) . Once the base files are generated then 'cd' to the drivers directory and apply the patch. The following is an example of applying the patch to the PKCS7 example using Cygwin (cd wolfcrypt_test_cm7/drivers/ && /bin/patch < ../../fsl_caam_c.patch && /bin/patch < ../../fsl_caam_h.patch).
In the patch for fsl_caam.h there are macros defined for both the ECC and Blob expansion (CAAM_ECC_EXPANSION and CAAM_BLOB_EXPANSION). When wolfSSL code finds that these macros are defined (the patch has been applied) then it tries to compile in use of the expanded driver.
See the cmake directory in https://github.com/wolfssl/wolfssl-examples for an example of building with CMake and CSR/PKCS7 examples.