I have 2 big numbers, one about 4096 bits and the other 2048 bits, stored in a structure:
typedef uint32_t word;
typedef struct BigNumber {
word words[128];
} BigNumber;
I have to make the modulo of those and only way I can think to do it is subtract multiple times, but this take some time.
Does any one know a better way to do this?