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 | |- libNo_OSLayer_RXv1_L.lib ....... OSインターフェース設定ファイル | |- SYS ........................ SYS インターフェース設定(ソース・ヘッダ)
プロジェクト設定では「\Application\_Exclude\CRYPTO」フォルダはビルド対象外に設定しています。以下のどちらかの方法で動作確認を行うサンプルアプリケーションを選択します。
プロジェクトを再ビルドし、評価ボードに接続してデバッグセッションを開始します。
デバッガのIOコンソールのログ画面から結果を確認します。
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ AES Benchmark compiled May 23 2024 13:07:23 Compiler: CC-RX V3.05.00 System: Processor speed = 32.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 | 0.22 0.23 | 0.21 0.21 | | AES | 192 | 0.18 0.19 | 0.17 0.18 | | AES | 256 | 0.16 0.16 | 0.15 0.16 | +--------------+------+-----------------+-----------------+ | | | GCM MB/s | CCM MB/s | | Cipher | Bits | Enc Dec | Enc Dec | +--------------+------+-----------------+-----------------+ | AES | 128 | 0.02 0.02 | 0.10 0.10 | | AES | 192 | 0.02 0.02 | 0.08 0.08 | | AES | 256 | 0.02 0.02 | 0.07 0.07 | +--------------+------+-----------------+-----------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ Camellia Benchmark compiled May 23 2024 13:10:00 Compiler: CC-RX V3.05.00 System: Processor speed = 32.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 | 0.36 0.36 | 0.33 0.33 | | CAMELLIA | 192 | 0.28 0.28 | 0.26 0.26 | | CAMELLIA | 256 | 0.28 0.28 | 0.26 0.26 | +--------------+------+-----------------+-----------------+ | | | GCM MB/s | CCM MB/s | | Cipher | Bits | Enc Dec | Enc Dec | +--------------+------+-----------------+-----------------+ | Camellia | 128 | 0.02 0.02 | 0.16 0.16 | | Camellia | 192 | 0.02 0.02 | 0.13 0.13 | | Camellia | 256 | 0.02 0.02 | 0.13 0.13 | +--------------+------+-----------------+-----------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ DES Benchmark compiled May 23 2024 13:15:22 Compiler: CC-RX V3.05.00 System: Processor speed = 32.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 | 0.26 0.26 | 0.24 0.24 | | DES | 128 | 0.09 0.09 | 0.09 0.09 | | DES | 192 | 0.09 0.09 | 0.09 0.09 | +--------------+------+---------------+---------------+ * Note: key sizes include parity bits Benchmark complete STOP.
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ ECDH Key Agreement Benchmark compiled May 23 2024 13:17:20 Compiler: CC-RX V3.05.00 System: Processor speed = 32.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 | 680.50 | 704 | | secp192k1 | 1011.50 | 704 | | secp224r1 | 838.00 | 792 | | secp224k1 | 1370.00 | 792 | | secp256r1 | 1318.50 | 880 | | secp256k1 | 1762.50 | 880 | | secp384r1 | 2498.50 | 1232 | | secp521r1 | 5549.00 | 1628 | | brainpoolP160r1 | 748.00 | 616 | | brainpoolP160t1 | 695.50 | 616 | | brainpoolP192r1 | 1009.50 | 704 | | brainpoolP192t1 | 974.00 | 704 | | brainpoolP224r1 | 1389.50 | 792 | | brainpoolP224t1 | 1254.50 | 792 | | brainpoolP256r1 | 1894.00 | 880 | | brainpoolP256t1 | 1741.00 | 880 | | brainpoolP320r1 | 3050.00 | 1056 | | brainpoolP320t1 | 2877.00 | 1056 | | brainpoolP384r1 | 4917.50 | 1232 | | brainpoolP384t1 | 4489.00 | 1232 | | brainpoolP512r1 | 10307.50 | 1584 | | brainpoolP512t1 | 9759.00 | 1584 | +------------------+--------------+--------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ ECDSA Sign and Verify Benchmark compiled May 23 2024 11:55:43 Compiler: CC-RX V3.05.00 System: Processor speed = 32.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 | 180.50 | 1152 | 175.00 | 1920 | | secp192k1 | 258.25 | 1152 | 244.17 | 1920 | | secp224r1 | 220.67 | 1296 | 210.33 | 2160 | | secp224k1 | 350.00 | 1296 | 331.75 | 2160 | | secp256r1 | 343.25 | 1440 | 325.50 | 2400 | | secp256k1 | 449.50 | 1440 | 433.25 | 2400 | | secp384r1 | 641.50 | 2016 | 587.50 | 3360 | | secp521r1 | 1376.00 | 2664 | 1274.00 | 4440 | | brainpoolP160r1 | 183.50 | 1008 | 173.00 | 1680 | | brainpoolP160t1 | 173.67 | 1008 | 166.63 | 1680 | | brainpoolP192r1 | 267.75 | 1152 | 246.83 | 1920 | | brainpoolP192t1 | 246.83 | 1152 | 234.17 | 1920 | | brainpoolP224r1 | 346.75 | 1296 | 340.75 | 2160 | | brainpoolP224t1 | 335.50 | 1296 | 314.25 | 2160 | | brainpoolP256r1 | 513.50 | 1440 | 458.00 | 2400 | | brainpoolP256t1 | 435.75 | 1440 | 421.00 | 2400 | | brainpoolP320r1 | 767.00 | 1728 | 725.50 | 2880 | | brainpoolP320t1 | 704.50 | 1728 | 664.50 | 2880 | | brainpoolP384r1 | 1277.50 | 2016 | 1202.00 | 3360 | | brainpoolP384t1 | 1204.50 | 2016 | 1067.00 | 3360 | | brainpoolP512r1 | 2635.50 | 2592 | 2369.00 | 4320 | | brainpoolP512t1 | 2349.50 | 2592 | 2191.00 | 4320 | +------------------+-----------+-----------+-----------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ EdDSA Sign and Verify Benchmark compiled May 23 2024 13:23:04 Compiler: CC-RX V3.05.00 System: Processor speed = 32.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 | 333.50 | | Ed448 | 714.00 | +--------------+--------------+ +--------------+--------------+ | Curve | ms/Verify | +--------------+--------------+ | Ed25519 | 753.50 | | Ed448 | 1563.50 | +--------------+--------------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ MD5 Benchmark compiled May 23 2024 13:26:02 Compiler: CC-RX V3.05.00 System: Processor speed = 32.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 | 0.95 | +--------------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ SHA-1 Benchmark compiled May 23 2024 13:28:58 Compiler: CC-RX V3.05.00 System: Processor speed = 32.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 | 0.50 | +--------------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ SHA-3 Benchmark compiled May 23 2024 13:32:31 Compiler: CC-RX V3.05.00 System: Processor speed = 32.000 MHz Config: CRYPTO_VERSION = 24001 [2.40a] Config: CRYPTO_CONFIG_SHA3_OPTIMIZE = 1 +--------------+-----------+ | Algorithm | Hash MB/s | +--------------+-----------+ | SHA-3 | 0.08 | +--------------+-----------+ Benchmark complete STOP.
Debug IO Console:
Eval Board: HSB-RX113 Base: Baremetal (No RTOS) ------------------------------------------------ SHA-256 Benchmark compiled May 23 2024 13:30:31 Compiler: CC-RX V3.05.00 System: Processor speed = 32.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) | 0.41 | | SHA-256 (SW) | 0.41 | +--------------+-----------+ Benchmark complete STOP.
評価版パッケージ内容