This is the sample code to call caam driver from user space, on L4.1.0 BSP.
In u-boot, add "caam" in command line.
In kernel menuconfig, select
<*> User-space interface for hash algorithms
<*> User-space interface for symmetric key cipher algorithms
To verify if application have called caam, run “cat /proc/interrupts | grep caam”, if caam interrupt counts is increased, caam driver is called.
Original Attachment has been moved to: Makefile.txt.zip
Original Attachment has been moved to: test_caam_crypto.c.txt.zip