zephyr/samples/drivers/crypto
Kumar Gala a1b77fd589 zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-08 08:23:57 -05:00
..
src zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
CMakeLists.txt samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
README.rst samples: drivers: crypto: Change README to rst format 2020-05-15 17:18:56 +02:00
prj.conf samples: drivers: crypto: fix test failure 2020-01-13 16:35:10 -05:00
prj_mtls_shim.conf modules: mbedtls: Update mbedTLS commit and apply fixes 2020-05-07 23:46:08 -05:00
prj_nrf_ecb.conf drivers: crypto: add driver for nRF ECB 2020-04-08 16:20:53 +02:00
prj_stm32.conf samples: drivers: crypto: Add STM32 driver support 2020-02-07 10:45:51 -06:00
sample.yaml samples: remove unused harness definition 2020-05-05 06:16:50 -04:00

README.rst

.. _crypto_sample:

Crypto
######

Overview
********
An example to illustrate the usage of crypto APIs.

Building and Running
********************

This project outputs to the console.  It can be built and executed
on QEMU as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/crypto
   :host-os: unix
   :board: qemu_x86
   :goals: run
   :compact:

Sample Output
=============

.. code-block:: console

    [general] [INF] main: Encryption Sample

    [general] [INF] cbc_mode: CBC Mode

    [general] [INF] cbc_mode: cbc mode ENCRYPT - Match

    [general] [INF] cbc_mode: cbc mode DECRYPT - Match

    [general] [INF] ctr_mode: CTR Mode

    [general] [INF] ctr_mode: ctr mode ENCRYPT - Match

    [general] [INF] ctr_mode: ctr mode DECRYPT - Match

    [general] [INF] ccm_mode: CCM Mode

    [general] [INF] ccm_mode: CCM mode ENCRYPT - Match

    [general] [INF] ccm_mode: CCM mode DECRYPT - Match

Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.