last update: 2024/04
Demo Sample Application Folder:
Application └ _Exclude ├ CRYPTO ....... 暗号・サイファー機能のデモサンプル
Sample | 説明 |
---|---|
CRYPTO_Bench_AES | AES 暗号ライブラリのベンチマークテスト |
CRYPTO_Bench_Camellia | Camellia 暗号ライブラリのベンチマークテスト |
CRYPTO_Bench_DES | DES 暗号ライブラリのベンチマークテスト |
CRYPTO_Bench_ECDH | ECDH 鍵アグリーメントライブラリのベンチマークテスト |
CRYPTO_Bench_ECDSA | ECDSA デジタル署名暗号(Sign・Verify)のベンチマークテスト |
CRYPTO_Bench_EdDSA | EdDSA デジタル署名暗号(Sign・Verify)のベンチマークテスト |
CRYPTO_Bench_MD5 | MD5 ハッシュアルゴリズムライブラリのベンチマークテスト |
CRYPTO_Bench_SHA1 | SHA-1 ハッシュアルゴリズムライブラリのベンチマークテスト |
CRYPTO_Bench_SHA3 | SHA-3 ハッシュアルゴリズムライブラリのベンチマークテスト |
CRYPTO_Bench_SHA256 | SHA-256 ハッシュアルゴリズムライブラリのベンチマークテスト |
BSP |- Setup |- CRYPTO_X_Config_Full_Generic.c .... 初期化設定ファイル Config |- CRYPTO_Conf.h ............... コンフィグレーション設定ファイル | |- OS | |- libNo_OSLayer_RXv3_L.lib ....... OSインターフェース設定ファイル | |- SYS ........................ SYS インターフェース設定(ソース・ヘッダ)
プロジェクト設定では「\Application\_Exclude\CRYPTO」フォルダはビルド対象外に設定しています。以下のどちらかの方法で動作確認を行うサンプルアプリケーションを選択します。
プロジェクトを再ビルドし、評価ボードに接続してデバッグセッションを開始します。
デバッガのIOコンソールのログ画面から結果を確認します。
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ AES Benchmark compiled Apr 9 2024 13:04:56 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_CONFIG_AES_OPTIMIZE = 7 Config: CRYPTO_CONFIG_AES_HW_OPTIMIZE = 1 Config: CRYPTO_CONFIG_GCM_OPTIMIZE = 0 +--------------+------+-----------------+-----------------+ | | | ECB MB/s | CBC MB/s | | Cipher | Bits | Enc Dec | Enc Dec | +--------------+------+-----------------+-----------------+ | AES | 128 | 1.36 1.46 | 1.27 1.31 | | AES | 192 | 1.14 1.22 | 1.07 1.11 | | AES | 256 | 0.98 1.05 | 0.93 0.97 | +--------------+------+-----------------+-----------------+ | | | GCM MB/s | CCM MB/s | | Cipher | Bits | Enc Dec | Enc Dec | +--------------+------+-----------------+-----------------+ | AES | 128 | 0.09 0.09 | 0.62 0.62 | | AES | 192 | 0.09 0.09 | 0.52 0.52 | | AES | 256 | 0.10 0.10 | 0.45 0.45 | +--------------+------+-----------------+-----------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ Camellia Benchmark compiled Apr 9 2024 13:13:39 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_CONFIG_CAMELLIA_OPTIMIZE = 3 Config: CRYPTO_CONFIG_GCM_OPTIMIZE = 0 +--------------+------+-----------------+-----------------+ | | | ECB MB/s | CBC MB/s | | Cipher | Bits | Enc Dec | Enc Dec | +--------------+------+-----------------+-----------------+ | CAMELLIA | 128 | 2.09 2.16 | 1.86 1.89 | | CAMELLIA | 192 | 1.63 1.64 | 1.49 1.48 | | CAMELLIA | 256 | 1.63 1.64 | 1.49 1.48 | +--------------+------+-----------------+-----------------+ | | | GCM MB/s | CCM MB/s | | Cipher | Bits | Enc Dec | Enc Dec | +--------------+------+-----------------+-----------------+ | Camellia | 128 | 0.09 0.09 | 0.91 0.91 | | Camellia | 192 | 0.09 0.09 | 0.73 0.73 | | Camellia | 256 | 0.09 0.09 | 0.73 0.73 | +--------------+------+-----------------+-----------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ DES Benchmark compiled Apr 9 2024 13:21:08 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_CONFIG_DES_OPTIMIZE = 5 +--------------+------+---------------+---------------+ | | | ECB MB/s | CBC MB/s | | Cipher | Bits | Enc Dec | Enc Dec | +--------------+------+---------------+---------------+ | DES | 64 | 1.44 1.46 | 1.31 1.29 | | DES | 128 | 0.50 0.50 | 0.48 0.48 | | DES | 192 | 0.50 0.50 | 0.48 0.48 | +--------------+------+---------------+---------------+ * Note: key sizes include parity bits Benchmark complete STOP.
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ ECDH Key Agreement Benchmark compiled Apr 9 2024 13:23:20 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: Static heap size = 3256 bytes Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_MPI_BITS_PER_LIMB = 32 This benchmarks both ends of an ECDH key agreement, but timing is reported as the time for one end's calculation. +------------------+--------------+--------------+ | Curve | ms/Agreement | Memory | +------------------+--------------+--------------+ | secp192r1 | 117.00 | 704 | | secp192k1 | 167.50 | 704 | | secp224r1 | 143.13 | 792 | | secp224k1 | 234.00 | 792 | | secp256r1 | 223.00 | 880 | | secp256k1 | 310.75 | 880 | | secp384r1 | 408.50 | 1232 | | secp521r1 | 882.00 | 1628 | | brainpoolP160r1 | 121.00 | 616 | | brainpoolP160t1 | 117.70 | 616 | | brainpoolP192r1 | 171.83 | 704 | | brainpoolP192t1 | 168.00 | 704 | | brainpoolP224r1 | 231.33 | 792 | | brainpoolP224t1 | 216.00 | 792 | | brainpoolP256r1 | 318.25 | 880 | | brainpoolP256t1 | 298.00 | 880 | | brainpoolP320r1 | 513.00 | 1056 | | brainpoolP320t1 | 472.75 | 1056 | | brainpoolP384r1 | 806.50 | 1232 | | brainpoolP384t1 | 774.50 | 1232 | | brainpoolP512r1 | 1695.50 | 1584 | | brainpoolP512t1 | 1528.00 | 1584 | +------------------+--------------+--------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ ECDSA Sign and Verify Benchmark compiled Apr 9 2024 13:25:20 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: Static heap size = 4440 bytes Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_MPI_BITS_PER_LIMB = 32 Config: CRYPTO_CONFIG_ECDSA_TWIN_MULTIPLY = 1 +------------------+-----------+-----------+-----------+-----------+ | | Sign | Sign | Verify | Verify | | Curve | ms | bytes | ms | bytes | +------------------+-----------+-----------+-----------+-----------+ | secp192r1 | 29.79 | 1152 | 28.58 | 1920 | | secp192k1 | 42.71 | 1152 | 40.08 | 1920 | | secp224r1 | 36.54 | 1296 | 34.80 | 2160 | | secp224k1 | 57.94 | 1296 | 53.85 | 2160 | | secp256r1 | 57.50 | 1440 | 54.05 | 2400 | | secp256k1 | 77.79 | 1440 | 73.21 | 2400 | | secp384r1 | 106.30 | 2016 | 100.00 | 3360 | | secp521r1 | 230.67 | 2664 | 212.33 | 4440 | | brainpoolP160r1 | 30.91 | 1008 | 30.59 | 1680 | | brainpoolP160t1 | 28.89 | 1008 | 27.00 | 1680 | | brainpoolP192r1 | 44.92 | 1152 | 41.75 | 1920 | | brainpoolP192t1 | 41.19 | 1152 | 38.04 | 1920 | | brainpoolP224r1 | 59.22 | 1296 | 56.61 | 2160 | | brainpoolP224t1 | 54.20 | 1296 | 50.80 | 2160 | | brainpoolP256r1 | 83.58 | 1440 | 75.57 | 2400 | | brainpoolP256t1 | 75.57 | 1440 | 70.31 | 2400 | | brainpoolP320r1 | 129.13 | 1728 | 118.40 | 2880 | | brainpoolP320t1 | 120.70 | 1728 | 110.60 | 2880 | | brainpoolP384r1 | 211.67 | 2016 | 195.50 | 3360 | | brainpoolP384t1 | 197.00 | 2016 | 180.83 | 3360 | | brainpoolP512r1 | 441.50 | 2592 | 393.50 | 4320 | | brainpoolP512t1 | 392.75 | 2592 | 362.25 | 4320 | +------------------+-----------+-----------+-----------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ EdDSA Sign and Verify Benchmark compiled Apr 9 2024 13:30:04 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: Static heap size = 3844 bytes Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_MPI_BITS_PER_LIMB = 32 +--------------+--------------+ | Curve | ms/Sign | +--------------+--------------+ | Ed25519 | 55.56 | | Ed448 | 125.13 | +--------------+--------------+ +--------------+--------------+ | Curve | ms/Verify | +--------------+--------------+ | Ed25519 | 125.63 | | Ed448 | 274.75 | +--------------+--------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ MD5 Benchmark compiled Apr 9 2024 13:31:21 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_CONFIG_MD5_OPTIMIZE = 1 Config: CRYPTO_CONFIG_MD5_HW_OPTIMIZE = 1 +--------------+-----------+ | Algorithm | Hash MB/s | +--------------+-----------+ | MD5 | 5.38 | +--------------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ SHA-1 Benchmark compiled Apr 9 2024 13:32:49 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_CONFIG_SHA1_OPTIMIZE = 1 Config: CRYPTO_CONFIG_SHA1_HW_OPTIMIZE = 1 +--------------+-----------+ | Algorithm | Hash MB/s | +--------------+-----------+ | SHA-1 | 2.89 | +--------------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ SHA-3 Benchmark compiled Apr 9 2024 13:33:59 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_CONFIG_SHA3_OPTIMIZE = 1 +--------------+-----------+ | Algorithm | Hash MB/s | +--------------+-----------+ | SHA-3 | 0.53 | +--------------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: EK-RX671 Base: Baremetal (No RTOS) ------------------------------------------------ SHA-256 Benchmark compiled Apr 9 2024 13:34:54 Compiler: CC-RX V3.05.00 System: Processor speed = 120.000 MHz Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_CONFIG_SHA256_OPTIMIZE = 1 Config: CRYPTO_CONFIG_SHA256_HW_OPTIMIZE = 1 +--------------+-----------+ | Algorithm | Hash MB/s | +--------------+-----------+ | SHA-224 (SW) | 2.66 | | SHA-256 (SW) | 2.66 | +--------------+-----------+ Benchmark complete STOP.
評価版パッケージ内容