| 1094 | // M[N] - modulus |
| 1095 | |
| 1096 | void MultiplyByPower2Mod(word *R, const word *A, unsigned int k, const word *M, unsigned int N) |
| 1097 | { |
| 1098 | CopyWords(R, A, N); |
| 1099 | |
| 1100 | while (k--) |
| 1101 | if (ShiftWordsLeftByBits(R, N, 1) || Compare(R, M, N)>=0) |
| 1102 | Subtract(R, R, M, N); |
| 1103 | } |
| 1104 | |
| 1105 | // ****************************************************************** |
| 1106 |
no test coverage detected