Commit d40ea5f
committed
field: add magnitude check and _fe_verify check for internal field APIs
1. _fe_verify on inputs of the functions:
1. _fe_normalizes_to_zero, _fe_normalizes_to_zero_var
2. _fe_to_storage
3. _fe_inv,_fe_inv_var
4. _fe_equal, _fe_equal_var
5. _fe_sqrt
2. _fe_verify on the result calculated in the functions:
1. _fe_inv,_fe_inv_var
2. _fe_sqrt
3. magnitude checks for inputs of the functions:
1. _fe_inv,_fe_inv_var
2. _fe_equal, _fe_equal_var
3. _fe_sqrt
4. move a VERIFY_CHECK call (in _fe_inv, _fe_inv_var) out of #ifdef VERIFY in `field_5x52_impl.h`
5. move _fe_verify call after else block in _fe_setb321 parent c6c44f4 commit d40ea5f
3 files changed
+59
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
| |||
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
227 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
| |||
348 | 352 | | |
349 | 353 | | |
350 | 354 | | |
351 | | - | |
352 | 355 | | |
353 | 356 | | |
354 | 357 | | |
| 358 | + | |
355 | 359 | | |
356 | 360 | | |
357 | 361 | | |
| |||
1151 | 1155 | | |
1152 | 1156 | | |
1153 | 1157 | | |
| 1158 | + | |
1154 | 1159 | | |
1155 | 1160 | | |
1156 | 1161 | | |
| |||
1245 | 1250 | | |
1246 | 1251 | | |
1247 | 1252 | | |
1248 | | - | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
1249 | 1257 | | |
1250 | 1258 | | |
1251 | 1259 | | |
1252 | 1260 | | |
1253 | 1261 | | |
1254 | | - | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
1255 | 1265 | | |
1256 | 1266 | | |
1257 | 1267 | | |
1258 | 1268 | | |
1259 | 1269 | | |
1260 | 1270 | | |
1261 | | - | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1262 | 1275 | | |
1263 | 1276 | | |
1264 | 1277 | | |
1265 | 1278 | | |
1266 | 1279 | | |
1267 | | - | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1268 | 1283 | | |
1269 | 1284 | | |
1270 | 1285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
199 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
| |||
332 | 336 | | |
333 | 337 | | |
334 | 338 | | |
335 | | - | |
336 | 339 | | |
337 | 340 | | |
338 | 341 | | |
| 342 | + | |
339 | 343 | | |
340 | 344 | | |
341 | 345 | | |
| |||
491 | 495 | | |
492 | 496 | | |
493 | 497 | | |
| 498 | + | |
494 | 499 | | |
495 | 500 | | |
496 | 501 | | |
| |||
560 | 565 | | |
561 | 566 | | |
562 | 567 | | |
563 | | - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
564 | 572 | | |
565 | 573 | | |
566 | 574 | | |
567 | 575 | | |
568 | 576 | | |
569 | | - | |
570 | 577 | | |
571 | | - | |
| 578 | + | |
572 | 579 | | |
| 580 | + | |
573 | 581 | | |
574 | 582 | | |
575 | 583 | | |
576 | 584 | | |
577 | 585 | | |
578 | | - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
579 | 590 | | |
580 | 591 | | |
581 | 592 | | |
582 | 593 | | |
583 | 594 | | |
584 | | - | |
585 | 595 | | |
586 | | - | |
| 596 | + | |
587 | 597 | | |
| 598 | + | |
588 | 599 | | |
589 | 600 | | |
590 | 601 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
| |||
47 | 57 | | |
48 | 58 | | |
49 | 59 | | |
50 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
51 | 64 | | |
52 | 65 | | |
53 | 66 | | |
| |||
128 | 141 | | |
129 | 142 | | |
130 | 143 | | |
131 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
132 | 147 | | |
133 | | - | |
134 | 148 | | |
135 | 149 | | |
136 | 150 | | |
| |||
0 commit comments