last update: 2024/05
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 | |- CRYPTO_OS_uITRON_Config.c ........... OSリソースID設定ファイル | |- libRI600V4_OSLayer_RXv3_L.lib ....... OSインターフェース設定ファイル | |- SYS ........................ SYS インターフェース設定(ソース・ヘッダ)
プロジェクト設定では「\Application\_Exclude\CRYPTO」フォルダはビルド対象外に設定しています。
「\_Exclude\CRYPTO」フォルダ下の動作確認を行うテストサンプルファイルをビルド対象設定の「\Application」フォルダ下にコピーします。
プロジェクトを再ビルドし、評価ボードに接続してデバッグセッションを開始します。
デバッガのIOコンソールのログ画面から結果を確認します。
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ AES Benchmark compiled May 3 2024 15:27:12 Compiler: CC-RX V3.05.00 System: Processor speed = 240.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 | 2.24 2.39 | 2.11 2.21 | | AES | 192 | 1.87 2.00 | 1.77 1.88 | | AES | 256 | 1.60 1.72 | 1.53 1.63 | +--------------+------+-----------------+-----------------+ | | | GCM MB/s | CCM MB/s | | Cipher | Bits | Enc Dec | Enc Dec | +--------------+------+-----------------+-----------------+ | AES | 128 | 0.18 0.18 | 1.04 1.04 | | AES | 192 | 0.18 0.18 | 0.87 0.87 | | AES | 256 | 0.19 0.19 | 0.75 0.75 | +--------------+------+-----------------+-----------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ Camellia Benchmark compiled May 3 2024 15:30:00 Compiler: CC-RX V3.05.00 System: Processor speed = 240.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 | 3.98 4.09 | 3.56 3.60 | | CAMELLIA | 192 | 3.09 3.12 | 2.83 2.83 | | CAMELLIA | 256 | 3.09 3.12 | 2.83 2.83 | +--------------+------+-----------------+-----------------+ | | | GCM MB/s | CCM MB/s | | Cipher | Bits | Enc Dec | Enc Dec | +--------------+------+-----------------+-----------------+ | Camellia | 128 | 0.19 0.19 | 1.74 1.74 | | Camellia | 192 | 0.18 0.18 | 1.38 1.38 | | Camellia | 256 | 0.19 0.19 | 1.38 1.38 | +--------------+------+-----------------+-----------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ DES Benchmark compiled May 3 2024 15:31:56 Compiler: CC-RX V3.05.00 System: Processor speed = 240.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 | 2.05 2.08 | 2.21 2.21 | | DES | 128 | 0.78 0.79 | 0.80 0.81 | | DES | 192 | 0.78 0.79 | 0.80 0.81 | +--------------+------+---------------+---------------+ * Note: key sizes include parity bits Benchmark complete STOP.
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ ECDH Key Agreement Benchmark compiled May 3 2024 15:38:09 Compiler: CC-RX V3.05.00 System: Processor speed = 240.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 | 59.28 | 704 | | secp192k1 | 87.33 | 704 | | secp224r1 | 71.71 | 792 | | secp224k1 | 115.80 | 792 | | secp256r1 | 116.60 | 880 | | secp256k1 | 154.75 | 880 | | secp384r1 | 214.17 | 1232 | | secp521r1 | 451.50 | 1628 | | brainpoolP160r1 | 61.72 | 616 | | brainpoolP160t1 | 57.44 | 616 | | brainpoolP192r1 | 86.67 | 704 | | brainpoolP192t1 | 80.64 | 704 | | brainpoolP224r1 | 116.30 | 792 | | brainpoolP224t1 | 108.50 | 792 | | brainpoolP256r1 | 161.00 | 880 | | brainpoolP256t1 | 150.50 | 880 | | brainpoolP320r1 | 250.25 | 1056 | | brainpoolP320t1 | 241.00 | 1056 | | brainpoolP384r1 | 420.25 | 1232 | | brainpoolP384t1 | 383.25 | 1232 | | brainpoolP512r1 | 888.00 | 1584 | | brainpoolP512t1 | 795.00 | 1584 | +------------------+--------------+--------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ ECDSA Sign and Verify Benchmark compiled May 3 2024 15:48:38 Compiler: CC-RX V3.05.00 System: Processor speed = 240.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 | 15.27 | 1152 | 14.87 | 1920 | | secp192k1 | 21.87 | 1152 | 20.50 | 1920 | | secp224r1 | 18.50 | 1296 | 17.38 | 2160 | | secp224k1 | 29.97 | 1296 | 27.94 | 2160 | | secp256r1 | 29.28 | 1440 | 27.63 | 2400 | | secp256k1 | 39.62 | 1440 | 36.86 | 2400 | | secp384r1 | 53.85 | 2016 | 49.91 | 3360 | | secp521r1 | 114.80 | 2664 | 108.90 | 4440 | | brainpoolP160r1 | 15.75 | 1008 | 15.29 | 1680 | | brainpoolP160t1 | 14.67 | 1008 | 14.69 | 1680 | | brainpoolP192r1 | 22.61 | 1152 | 20.82 | 1920 | | brainpoolP192t1 | 20.56 | 1152 | 19.38 | 1920 | | brainpoolP224r1 | 29.91 | 1296 | 27.94 | 2160 | | brainpoolP224t1 | 27.86 | 1296 | 26.10 | 2160 | | brainpoolP256r1 | 41.00 | 1440 | 39.12 | 2400 | | brainpoolP256t1 | 38.46 | 1440 | 36.04 | 2400 | | brainpoolP320r1 | 65.13 | 1728 | 61.50 | 2880 | | brainpoolP320t1 | 59.83 | 1728 | 55.89 | 2880 | | brainpoolP384r1 | 106.50 | 2016 | 100.80 | 3360 | | brainpoolP384t1 | 96.92 | 2016 | 89.33 | 3360 | | brainpoolP512r1 | 218.00 | 2592 | 202.67 | 4320 | | brainpoolP512t1 | 199.50 | 2592 | 182.50 | 4320 | +------------------+-----------+-----------+-----------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ EdDSA Sign and Verify Benchmark compiled May 3 2024 15:52:06 Compiler: CC-RX V3.05.00 System: Processor speed = 240.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 | 28.25 | | Ed448 | 63.94 | +--------------+--------------+ +--------------+--------------+ | Curve | ms/Verify | +--------------+--------------+ | Ed25519 | 63.87 | | Ed448 | 140.38 | +--------------+--------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ MD5 Benchmark compiled May 3 2024 15:53:37 Compiler: CC-RX V3.05.00 System: Processor speed = 240.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 | 9.30 | +--------------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ SHA-1 Benchmark compiled May 3 2024 15:54:45 Compiler: CC-RX V3.05.00 System: Processor speed = 240.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 | 5.73 | +--------------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ SHA-3 Benchmark compiled May 3 2024 15:56:34 Compiler: CC-RX V3.05.00 System: Processor speed = 240.000 MHz Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_CONFIG_SHA3_OPTIMIZE = 1 +--------------+-----------+ | Algorithm | Hash MB/s | +--------------+-----------+ | SHA-3 | 1.05 | +--------------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: RX72N Envision Kit Base: Renesas RI600V4 RTOS ------------------------------------------------ SHA-256 Benchmark compiled May 3 2024 15:58:02 Compiler: CC-RX V3.05.00 System: Processor speed = 240.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) | 5.28 | | SHA-256 (SW) | 5.28 | +--------------+-----------+ Benchmark complete STOP.
FAT32 ファイルシステム