Part Number: MSPM0G3519
This thread is created to presenta an efficient implementation of the ED25519PH elliptic curve cryptography algorithm (from the Libsodium library) optimized for MSPM0G microcontrollers with MATHACL module.
While the ARM Cortex-M0+ core provides a 32-bit ALU, it lacks a native 32x32 to 64-bit multiplication instruction, necessitating software-based multi-precision arithmetic for 256-bit operations. This thread shows a hybrid implementation example that offloads critical arithmetic tasks to the MATHACL peripheral, which supports 32x32 to 64-bit multiplication and Multiply-Accumulate (MAC) operations.
The example optimizes both runtime and code density, achieving a 3x to 5x speed-up compared to pure software implementations on the Cortex-M0+ core, depending on the target code size constraints.
The CCS example project of the optimized ED25519PH algorithm based on MSPM0G3519 could be accessed in: ED25519PH_crypto_mspm0g3519.zip