samples/drivers/crypto/README.html · samples/drivers/crypto/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Drivers · Crypto

Crypto Sample

QEMU x86에서 세 cipher mode의 encrypt·decrypt 결과를 검증합니다.

Official pathsamples/drivers/crypto/README.html
Source filesamples/drivers/crypto/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

각 mode의 결과가 기준값과 일치하는 전체 console 출력을 보존합니다.

Modes

CBC · CTR · CCM

Operations

Encrypt · Decrypt

Target

QEMU x86

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 95724E291A90D058EC720E6BC7533236DB9A74F6142F9A38BAB14E3AE8F3DD36
.. zephyr:code-sample:: crypto
   :name: Crypto
   :relevant-api: crypto

   Use the crypto APIs to perform various encryption/decryption operations.

Overview
********
An example to illustrate the usage of :ref:`crypto APIs <crypto_api>`.

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

Part 3

한국어 전문 번역

개요

Crypto API의 사용법을 보여주는 예제입니다.

Build와 실행

이 project는 console로 출력합니다. QEMU에서는 다음과 같이 build하고 실행할 수 있습니다.

west build -b qemu_x86 samples/drivers/crypto
west build -t run

Sample 출력

[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

QEMU를 종료하려면 CTRL+A를 누른 뒤 x를 누릅니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.