wolfssl-examples/caam/seco
Jacob Barthelmeh ffd01dc2ed fix ccm example and add printout 2022-04-08 14:55:54 -06:00
..
cryptodev adding devcrypto examples 2022-03-04 13:16:37 -08:00
Makefile adding devcrypto examples 2022-03-04 13:16:37 -08:00
README.md fix typo and remove magic number 2022-04-05 14:58:36 -07:00
aes-cbc.c fix typo and remove magic number 2022-04-05 14:58:36 -07:00
aes-ccm.c fix ccm example and add printout 2022-04-08 14:55:54 -06:00
aes-ecb.c fix typo and remove magic number 2022-04-05 14:58:36 -07:00
aes-gcm.c fix typo and remove magic number 2022-04-05 14:58:36 -07:00
aes-update-key.c fix ccm example and add printout 2022-04-08 14:55:54 -06:00
cmac.c fix ccm example and add printout 2022-04-08 14:55:54 -06:00
ecc-sign-verify.c add seco examples 2022-03-02 15:24:13 -08:00
import-key.c add stdio include 2022-03-02 15:38:16 -08:00

README.md

Example use cases when compiling wolfSSL with --enable-caam=seco

Setup Environment

Setup the location to SECO HSM and NVM library, cryptodev header (if wolfSSL is built to look for it), wolfSSL library path, and libz install path. The following is examples of setting the environment variables:

export HSM_DIR=/home/user/imx-seco-libs/export/usr export CRYPTODEV_DIR=/home/user/build-xwayland/sysroots-components/aarch64/cryptodev-linux/usr/include export WOLFSSL_PATH=/home/user/wolfssl-install export ZLIB_DIR=/home/user/zlib-aarch64-install

Building wolfSSL

This is an example configure for building wolfSSL ./configure --host=aarch64-poky-linux --with-libz=$ZLIB_DIR --with-seco=$HSM_DIR --enable-caam=seco --enable-cmac --enable-aesgcm --enable-aesccm --enable-keygen CPPFLAGS="-DHAVE_AES_ECB -I$CRYPTODEV_DIR" --enable-devcrypto=seco --enable-curve25519 --enable-static --prefix=$WOLFSSL_PATH

Additional cryptodev-linux Examples

Examples for use in conjunction with SECO are in the cryptodev directory