19. Montmult_fun_ctest_gfp
19.1. Function description:
This demo shows the operation of Montgomery Multiplication in GF(p).
Allocate enough memory space of SRAM used by internal logic during computation.
Filling data to address of N.
Configure & start INV_N0 operation.
Filling data to operand a & b address for montgomery multiplication operation.
Configure & start MontMult operation.
Configure & start MOD operation.
Waiting process done to compare the result with the golden data to check.
19.2. Main Configuration:
19.2.1. INV_N0 operation:
Operation code |
Field |
Data length |
Reserved area size |
OP_INV_N0 |
GF(p) |
1 words |
6 words per variable |
19.2.2. MontMult operation:
Operation code |
Type |
Field |
OP_MontMult |
MM_MULT |
GF(p) |
19.2.3. MOD operation:
Operation code |
Option |
Field |
Operand a length |
Operand b length |
OP_MOD |
ordinary |
GF(p) |
2 words |
1 words |
Note
For MOD operation, the length of operand a must greater than operand b.
19.3. Test result:
If the result is same as the standard data, then print pass, if not print fail.
19.4. IO connection:
None