STDA045 November   2026 MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0G3518 , MSPM0G3519

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2ED25519PH Algorithm Introduction
  6. 3MSPM0G Math Accelerator (MATHACL)
    1. 3.1 MATHACL Module
    2. 3.2 Multiply-Accumulate (MAC) Operation
  7. 4Accelerate the ED25519PH Algorithm by Using MATHACL
    1. 4.1 Loop Unrolled Implementation
      1. 4.1.1 Non-MATHACL Optimization
      2. 4.1.2 MATHACL Optimization
    2. 4.2 Loop Rolled Implementation
      1. 4.2.1 Non-MATHACL Optimization
      2. 4.2.2 MATHACL Optimization
    3. 4.3 Benchmark
  8. 5Summary
  9. 6References

Benchmark

Table 4-1 shows the memory and latency benchmark for the ED25519PH algorithm verification process. Under the select implementation style (loop-rolled or loop-unrolled), the use of MATHACL can improve code execution efficiency by potentially 3 to 5 times normal efficiency of a pure software implementation.

The bench test conditions are listed below:

  • Compiler: TI Clang v4.0.4.LTS
  • Compiler Optimization Level: -Os
  • Test Cases: Four different test cases can be defined by macro USE_MATHACL and CRYPTO_OPT_SIZE in the Sign_Util_Cfg.h header file of the example project.
Table 4-1 ED25519PH Algorithm Verification Benchmark Comparisons
Size Optimized (Loop Rolled) Speed Optimized (Loop Unrolled)
Runtime (ms) Code Size (KB) Runtime (ms) Code Size (KB)
CPU 488 11 428 16
CPU + MATHACL 135 11 85 15