zephyr/samples/drivers/crypto
Flavio Ceolin df3d1f83f7 drivers: crypto: Rename cipher file
This file defines the crypto driver API, cipher is supposed to be just
one type of capability (other can be hash) of these drivers, just
change the file name to be consistent with it.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2022-03-01 16:32:43 -05:00
..
src drivers: crypto: Rename cipher file 2022-03-01 16:32:43 -05:00
CMakeLists.txt cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
prj_mtls_shim.conf mbedtls: kconfig: created MBEDTLS_PROMPTLESS and CUSTOM_MBEDTLS_CFG_FILE 2021-05-09 15:24:23 -05:00
prj_nrf_ecb.conf
prj_stm32.conf
prj.conf
README.rst
sample.yaml samples: crypto: change config to run test sample.drivers.crypto.stm32 2021-07-23 16:25:27 -04:00

.. _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`.