STDA045 November 2026 MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0G3518 , MSPM0G3519
Based on the Radix-25.5 implementation, the fe25519_mul routine (implemented in ed25519_ref10_fe_25_5.h of the example code) uses an optimized schoolbook multiplication. Partial products are accumulated directly into ten 64-bit temporary variables, avoiding large multi-precision intermediate buffers.
Using the identity 2255 ≡ 19 (mod p), terms that exceed bit 255 are immediately folded back into lower limbs. Therefore, the implementation combines multiplication and modular reduction into a single operation.
The argument definition of fe25519_mul(fe25519 h, const fe25519 f, const fe25519 g):