Lines Matching refs:mbedtls_mpi_uint
26 #define ECP_MPI_INIT(_p, _n) { .p = (mbedtls_mpi_uint *) (_p), .s = 1, .n = (_n) }
29 ECP_MPI_INIT(x, sizeof(x) / sizeof(mbedtls_mpi_uint))
49 static const mbedtls_mpi_uint mpi_one[] = { 1 };
61 static const mbedtls_mpi_uint secp192r1_p[] = {
66 static const mbedtls_mpi_uint secp192r1_b[] = {
71 static const mbedtls_mpi_uint secp192r1_gx[] = {
76 static const mbedtls_mpi_uint secp192r1_gy[] = {
81 static const mbedtls_mpi_uint secp192r1_n[] = {
87 static const mbedtls_mpi_uint secp192r1_T_0_X[] = {
92 static const mbedtls_mpi_uint secp192r1_T_0_Y[] = {
97 static const mbedtls_mpi_uint secp192r1_T_1_X[] = {
102 static const mbedtls_mpi_uint secp192r1_T_1_Y[] = {
107 static const mbedtls_mpi_uint secp192r1_T_2_X[] = {
112 static const mbedtls_mpi_uint secp192r1_T_2_Y[] = {
117 static const mbedtls_mpi_uint secp192r1_T_3_X[] = {
122 static const mbedtls_mpi_uint secp192r1_T_3_Y[] = {
127 static const mbedtls_mpi_uint secp192r1_T_4_X[] = {
132 static const mbedtls_mpi_uint secp192r1_T_4_Y[] = {
137 static const mbedtls_mpi_uint secp192r1_T_5_X[] = {
142 static const mbedtls_mpi_uint secp192r1_T_5_Y[] = {
147 static const mbedtls_mpi_uint secp192r1_T_6_X[] = {
152 static const mbedtls_mpi_uint secp192r1_T_6_Y[] = {
157 static const mbedtls_mpi_uint secp192r1_T_7_X[] = {
162 static const mbedtls_mpi_uint secp192r1_T_7_Y[] = {
167 static const mbedtls_mpi_uint secp192r1_T_8_X[] = {
172 static const mbedtls_mpi_uint secp192r1_T_8_Y[] = {
177 static const mbedtls_mpi_uint secp192r1_T_9_X[] = {
182 static const mbedtls_mpi_uint secp192r1_T_9_Y[] = {
187 static const mbedtls_mpi_uint secp192r1_T_10_X[] = {
192 static const mbedtls_mpi_uint secp192r1_T_10_Y[] = {
197 static const mbedtls_mpi_uint secp192r1_T_11_X[] = {
202 static const mbedtls_mpi_uint secp192r1_T_11_Y[] = {
207 static const mbedtls_mpi_uint secp192r1_T_12_X[] = {
212 static const mbedtls_mpi_uint secp192r1_T_12_Y[] = {
217 static const mbedtls_mpi_uint secp192r1_T_13_X[] = {
222 static const mbedtls_mpi_uint secp192r1_T_13_Y[] = {
227 static const mbedtls_mpi_uint secp192r1_T_14_X[] = {
232 static const mbedtls_mpi_uint secp192r1_T_14_Y[] = {
237 static const mbedtls_mpi_uint secp192r1_T_15_X[] = {
242 static const mbedtls_mpi_uint secp192r1_T_15_Y[] = {
274 static const mbedtls_mpi_uint secp224r1_p[] = {
280 static const mbedtls_mpi_uint secp224r1_b[] = {
286 static const mbedtls_mpi_uint secp224r1_gx[] = {
292 static const mbedtls_mpi_uint secp224r1_gy[] = {
298 static const mbedtls_mpi_uint secp224r1_n[] = {
305 static const mbedtls_mpi_uint secp224r1_T_0_X[] = {
311 static const mbedtls_mpi_uint secp224r1_T_0_Y[] = {
317 static const mbedtls_mpi_uint secp224r1_T_1_X[] = {
323 static const mbedtls_mpi_uint secp224r1_T_1_Y[] = {
329 static const mbedtls_mpi_uint secp224r1_T_2_X[] = {
335 static const mbedtls_mpi_uint secp224r1_T_2_Y[] = {
341 static const mbedtls_mpi_uint secp224r1_T_3_X[] = {
347 static const mbedtls_mpi_uint secp224r1_T_3_Y[] = {
353 static const mbedtls_mpi_uint secp224r1_T_4_X[] = {
359 static const mbedtls_mpi_uint secp224r1_T_4_Y[] = {
365 static const mbedtls_mpi_uint secp224r1_T_5_X[] = {
371 static const mbedtls_mpi_uint secp224r1_T_5_Y[] = {
377 static const mbedtls_mpi_uint secp224r1_T_6_X[] = {
383 static const mbedtls_mpi_uint secp224r1_T_6_Y[] = {
389 static const mbedtls_mpi_uint secp224r1_T_7_X[] = {
395 static const mbedtls_mpi_uint secp224r1_T_7_Y[] = {
401 static const mbedtls_mpi_uint secp224r1_T_8_X[] = {
407 static const mbedtls_mpi_uint secp224r1_T_8_Y[] = {
413 static const mbedtls_mpi_uint secp224r1_T_9_X[] = {
419 static const mbedtls_mpi_uint secp224r1_T_9_Y[] = {
425 static const mbedtls_mpi_uint secp224r1_T_10_X[] = {
431 static const mbedtls_mpi_uint secp224r1_T_10_Y[] = {
437 static const mbedtls_mpi_uint secp224r1_T_11_X[] = {
443 static const mbedtls_mpi_uint secp224r1_T_11_Y[] = {
449 static const mbedtls_mpi_uint secp224r1_T_12_X[] = {
455 static const mbedtls_mpi_uint secp224r1_T_12_Y[] = {
461 static const mbedtls_mpi_uint secp224r1_T_13_X[] = {
467 static const mbedtls_mpi_uint secp224r1_T_13_Y[] = {
473 static const mbedtls_mpi_uint secp224r1_T_14_X[] = {
479 static const mbedtls_mpi_uint secp224r1_T_14_Y[] = {
485 static const mbedtls_mpi_uint secp224r1_T_15_X[] = {
491 static const mbedtls_mpi_uint secp224r1_T_15_Y[] = {
524 static const mbedtls_mpi_uint secp256r1_p[] = {
530 static const mbedtls_mpi_uint secp256r1_b[] = {
536 static const mbedtls_mpi_uint secp256r1_gx[] = {
542 static const mbedtls_mpi_uint secp256r1_gy[] = {
548 static const mbedtls_mpi_uint secp256r1_n[] = {
555 static const mbedtls_mpi_uint secp256r1_T_0_X[] = {
561 static const mbedtls_mpi_uint secp256r1_T_0_Y[] = {
567 static const mbedtls_mpi_uint secp256r1_T_1_X[] = {
573 static const mbedtls_mpi_uint secp256r1_T_1_Y[] = {
579 static const mbedtls_mpi_uint secp256r1_T_2_X[] = {
585 static const mbedtls_mpi_uint secp256r1_T_2_Y[] = {
591 static const mbedtls_mpi_uint secp256r1_T_3_X[] = {
597 static const mbedtls_mpi_uint secp256r1_T_3_Y[] = {
603 static const mbedtls_mpi_uint secp256r1_T_4_X[] = {
609 static const mbedtls_mpi_uint secp256r1_T_4_Y[] = {
615 static const mbedtls_mpi_uint secp256r1_T_5_X[] = {
621 static const mbedtls_mpi_uint secp256r1_T_5_Y[] = {
627 static const mbedtls_mpi_uint secp256r1_T_6_X[] = {
633 static const mbedtls_mpi_uint secp256r1_T_6_Y[] = {
639 static const mbedtls_mpi_uint secp256r1_T_7_X[] = {
645 static const mbedtls_mpi_uint secp256r1_T_7_Y[] = {
651 static const mbedtls_mpi_uint secp256r1_T_8_X[] = {
657 static const mbedtls_mpi_uint secp256r1_T_8_Y[] = {
663 static const mbedtls_mpi_uint secp256r1_T_9_X[] = {
669 static const mbedtls_mpi_uint secp256r1_T_9_Y[] = {
675 static const mbedtls_mpi_uint secp256r1_T_10_X[] = {
681 static const mbedtls_mpi_uint secp256r1_T_10_Y[] = {
687 static const mbedtls_mpi_uint secp256r1_T_11_X[] = {
693 static const mbedtls_mpi_uint secp256r1_T_11_Y[] = {
699 static const mbedtls_mpi_uint secp256r1_T_12_X[] = {
705 static const mbedtls_mpi_uint secp256r1_T_12_Y[] = {
711 static const mbedtls_mpi_uint secp256r1_T_13_X[] = {
717 static const mbedtls_mpi_uint secp256r1_T_13_Y[] = {
723 static const mbedtls_mpi_uint secp256r1_T_14_X[] = {
729 static const mbedtls_mpi_uint secp256r1_T_14_Y[] = {
735 static const mbedtls_mpi_uint secp256r1_T_15_X[] = {
741 static const mbedtls_mpi_uint secp256r1_T_15_Y[] = {
775 static const mbedtls_mpi_uint secp384r1_p[] = {
783 static const mbedtls_mpi_uint secp384r1_b[] = {
791 static const mbedtls_mpi_uint secp384r1_gx[] = {
799 static const mbedtls_mpi_uint secp384r1_gy[] = {
807 static const mbedtls_mpi_uint secp384r1_n[] = {
816 static const mbedtls_mpi_uint secp384r1_T_0_X[] = {
824 static const mbedtls_mpi_uint secp384r1_T_0_Y[] = {
832 static const mbedtls_mpi_uint secp384r1_T_1_X[] = {
840 static const mbedtls_mpi_uint secp384r1_T_1_Y[] = {
848 static const mbedtls_mpi_uint secp384r1_T_2_X[] = {
856 static const mbedtls_mpi_uint secp384r1_T_2_Y[] = {
864 static const mbedtls_mpi_uint secp384r1_T_3_X[] = {
872 static const mbedtls_mpi_uint secp384r1_T_3_Y[] = {
880 static const mbedtls_mpi_uint secp384r1_T_4_X[] = {
888 static const mbedtls_mpi_uint secp384r1_T_4_Y[] = {
896 static const mbedtls_mpi_uint secp384r1_T_5_X[] = {
904 static const mbedtls_mpi_uint secp384r1_T_5_Y[] = {
912 static const mbedtls_mpi_uint secp384r1_T_6_X[] = {
920 static const mbedtls_mpi_uint secp384r1_T_6_Y[] = {
928 static const mbedtls_mpi_uint secp384r1_T_7_X[] = {
936 static const mbedtls_mpi_uint secp384r1_T_7_Y[] = {
944 static const mbedtls_mpi_uint secp384r1_T_8_X[] = {
952 static const mbedtls_mpi_uint secp384r1_T_8_Y[] = {
960 static const mbedtls_mpi_uint secp384r1_T_9_X[] = {
968 static const mbedtls_mpi_uint secp384r1_T_9_Y[] = {
976 static const mbedtls_mpi_uint secp384r1_T_10_X[] = {
984 static const mbedtls_mpi_uint secp384r1_T_10_Y[] = {
992 static const mbedtls_mpi_uint secp384r1_T_11_X[] = {
1000 static const mbedtls_mpi_uint secp384r1_T_11_Y[] = {
1008 static const mbedtls_mpi_uint secp384r1_T_12_X[] = {
1016 static const mbedtls_mpi_uint secp384r1_T_12_Y[] = {
1024 static const mbedtls_mpi_uint secp384r1_T_13_X[] = {
1032 static const mbedtls_mpi_uint secp384r1_T_13_Y[] = {
1040 static const mbedtls_mpi_uint secp384r1_T_14_X[] = {
1048 static const mbedtls_mpi_uint secp384r1_T_14_Y[] = {
1056 static const mbedtls_mpi_uint secp384r1_T_15_X[] = {
1064 static const mbedtls_mpi_uint secp384r1_T_15_Y[] = {
1072 static const mbedtls_mpi_uint secp384r1_T_16_X[] = {
1080 static const mbedtls_mpi_uint secp384r1_T_16_Y[] = {
1088 static const mbedtls_mpi_uint secp384r1_T_17_X[] = {
1096 static const mbedtls_mpi_uint secp384r1_T_17_Y[] = {
1104 static const mbedtls_mpi_uint secp384r1_T_18_X[] = {
1112 static const mbedtls_mpi_uint secp384r1_T_18_Y[] = {
1120 static const mbedtls_mpi_uint secp384r1_T_19_X[] = {
1128 static const mbedtls_mpi_uint secp384r1_T_19_Y[] = {
1136 static const mbedtls_mpi_uint secp384r1_T_20_X[] = {
1144 static const mbedtls_mpi_uint secp384r1_T_20_Y[] = {
1152 static const mbedtls_mpi_uint secp384r1_T_21_X[] = {
1160 static const mbedtls_mpi_uint secp384r1_T_21_Y[] = {
1168 static const mbedtls_mpi_uint secp384r1_T_22_X[] = {
1176 static const mbedtls_mpi_uint secp384r1_T_22_Y[] = {
1184 static const mbedtls_mpi_uint secp384r1_T_23_X[] = {
1192 static const mbedtls_mpi_uint secp384r1_T_23_Y[] = {
1200 static const mbedtls_mpi_uint secp384r1_T_24_X[] = {
1208 static const mbedtls_mpi_uint secp384r1_T_24_Y[] = {
1216 static const mbedtls_mpi_uint secp384r1_T_25_X[] = {
1224 static const mbedtls_mpi_uint secp384r1_T_25_Y[] = {
1232 static const mbedtls_mpi_uint secp384r1_T_26_X[] = {
1240 static const mbedtls_mpi_uint secp384r1_T_26_Y[] = {
1248 static const mbedtls_mpi_uint secp384r1_T_27_X[] = {
1256 static const mbedtls_mpi_uint secp384r1_T_27_Y[] = {
1264 static const mbedtls_mpi_uint secp384r1_T_28_X[] = {
1272 static const mbedtls_mpi_uint secp384r1_T_28_Y[] = {
1280 static const mbedtls_mpi_uint secp384r1_T_29_X[] = {
1288 static const mbedtls_mpi_uint secp384r1_T_29_Y[] = {
1296 static const mbedtls_mpi_uint secp384r1_T_30_X[] = {
1304 static const mbedtls_mpi_uint secp384r1_T_30_Y[] = {
1312 static const mbedtls_mpi_uint secp384r1_T_31_X[] = {
1320 static const mbedtls_mpi_uint secp384r1_T_31_Y[] = {
1372 static const mbedtls_mpi_uint secp521r1_p[] = {
1383 static const mbedtls_mpi_uint secp521r1_b[] = {
1394 static const mbedtls_mpi_uint secp521r1_gx[] = {
1405 static const mbedtls_mpi_uint secp521r1_gy[] = {
1416 static const mbedtls_mpi_uint secp521r1_n[] = {
1428 static const mbedtls_mpi_uint secp521r1_T_0_X[] = {
1439 static const mbedtls_mpi_uint secp521r1_T_0_Y[] = {
1450 static const mbedtls_mpi_uint secp521r1_T_1_X[] = {
1461 static const mbedtls_mpi_uint secp521r1_T_1_Y[] = {
1472 static const mbedtls_mpi_uint secp521r1_T_2_X[] = {
1483 static const mbedtls_mpi_uint secp521r1_T_2_Y[] = {
1494 static const mbedtls_mpi_uint secp521r1_T_3_X[] = {
1505 static const mbedtls_mpi_uint secp521r1_T_3_Y[] = {
1516 static const mbedtls_mpi_uint secp521r1_T_4_X[] = {
1527 static const mbedtls_mpi_uint secp521r1_T_4_Y[] = {
1538 static const mbedtls_mpi_uint secp521r1_T_5_X[] = {
1549 static const mbedtls_mpi_uint secp521r1_T_5_Y[] = {
1560 static const mbedtls_mpi_uint secp521r1_T_6_X[] = {
1571 static const mbedtls_mpi_uint secp521r1_T_6_Y[] = {
1582 static const mbedtls_mpi_uint secp521r1_T_7_X[] = {
1593 static const mbedtls_mpi_uint secp521r1_T_7_Y[] = {
1604 static const mbedtls_mpi_uint secp521r1_T_8_X[] = {
1615 static const mbedtls_mpi_uint secp521r1_T_8_Y[] = {
1626 static const mbedtls_mpi_uint secp521r1_T_9_X[] = {
1637 static const mbedtls_mpi_uint secp521r1_T_9_Y[] = {
1648 static const mbedtls_mpi_uint secp521r1_T_10_X[] = {
1659 static const mbedtls_mpi_uint secp521r1_T_10_Y[] = {
1670 static const mbedtls_mpi_uint secp521r1_T_11_X[] = {
1681 static const mbedtls_mpi_uint secp521r1_T_11_Y[] = {
1692 static const mbedtls_mpi_uint secp521r1_T_12_X[] = {
1703 static const mbedtls_mpi_uint secp521r1_T_12_Y[] = {
1714 static const mbedtls_mpi_uint secp521r1_T_13_X[] = {
1725 static const mbedtls_mpi_uint secp521r1_T_13_Y[] = {
1736 static const mbedtls_mpi_uint secp521r1_T_14_X[] = {
1747 static const mbedtls_mpi_uint secp521r1_T_14_Y[] = {
1758 static const mbedtls_mpi_uint secp521r1_T_15_X[] = {
1769 static const mbedtls_mpi_uint secp521r1_T_15_Y[] = {
1780 static const mbedtls_mpi_uint secp521r1_T_16_X[] = {
1791 static const mbedtls_mpi_uint secp521r1_T_16_Y[] = {
1802 static const mbedtls_mpi_uint secp521r1_T_17_X[] = {
1813 static const mbedtls_mpi_uint secp521r1_T_17_Y[] = {
1824 static const mbedtls_mpi_uint secp521r1_T_18_X[] = {
1835 static const mbedtls_mpi_uint secp521r1_T_18_Y[] = {
1846 static const mbedtls_mpi_uint secp521r1_T_19_X[] = {
1857 static const mbedtls_mpi_uint secp521r1_T_19_Y[] = {
1868 static const mbedtls_mpi_uint secp521r1_T_20_X[] = {
1879 static const mbedtls_mpi_uint secp521r1_T_20_Y[] = {
1890 static const mbedtls_mpi_uint secp521r1_T_21_X[] = {
1901 static const mbedtls_mpi_uint secp521r1_T_21_Y[] = {
1912 static const mbedtls_mpi_uint secp521r1_T_22_X[] = {
1923 static const mbedtls_mpi_uint secp521r1_T_22_Y[] = {
1934 static const mbedtls_mpi_uint secp521r1_T_23_X[] = {
1945 static const mbedtls_mpi_uint secp521r1_T_23_Y[] = {
1956 static const mbedtls_mpi_uint secp521r1_T_24_X[] = {
1967 static const mbedtls_mpi_uint secp521r1_T_24_Y[] = {
1978 static const mbedtls_mpi_uint secp521r1_T_25_X[] = {
1989 static const mbedtls_mpi_uint secp521r1_T_25_Y[] = {
2000 static const mbedtls_mpi_uint secp521r1_T_26_X[] = {
2011 static const mbedtls_mpi_uint secp521r1_T_26_Y[] = {
2022 static const mbedtls_mpi_uint secp521r1_T_27_X[] = {
2033 static const mbedtls_mpi_uint secp521r1_T_27_Y[] = {
2044 static const mbedtls_mpi_uint secp521r1_T_28_X[] = {
2055 static const mbedtls_mpi_uint secp521r1_T_28_Y[] = {
2066 static const mbedtls_mpi_uint secp521r1_T_29_X[] = {
2077 static const mbedtls_mpi_uint secp521r1_T_29_Y[] = {
2088 static const mbedtls_mpi_uint secp521r1_T_30_X[] = {
2099 static const mbedtls_mpi_uint secp521r1_T_30_Y[] = {
2110 static const mbedtls_mpi_uint secp521r1_T_31_X[] = {
2121 static const mbedtls_mpi_uint secp521r1_T_31_Y[] = {
2172 static const mbedtls_mpi_uint secp192k1_p[] = {
2177 static const mbedtls_mpi_uint secp192k1_a[] = {
2180 static const mbedtls_mpi_uint secp192k1_b[] = {
2183 static const mbedtls_mpi_uint secp192k1_gx[] = {
2188 static const mbedtls_mpi_uint secp192k1_gy[] = {
2193 static const mbedtls_mpi_uint secp192k1_n[] = {
2200 static const mbedtls_mpi_uint secp192k1_T_0_X[] = {
2205 static const mbedtls_mpi_uint secp192k1_T_0_Y[] = {
2210 static const mbedtls_mpi_uint secp192k1_T_1_X[] = {
2215 static const mbedtls_mpi_uint secp192k1_T_1_Y[] = {
2220 static const mbedtls_mpi_uint secp192k1_T_2_X[] = {
2225 static const mbedtls_mpi_uint secp192k1_T_2_Y[] = {
2230 static const mbedtls_mpi_uint secp192k1_T_3_X[] = {
2235 static const mbedtls_mpi_uint secp192k1_T_3_Y[] = {
2240 static const mbedtls_mpi_uint secp192k1_T_4_X[] = {
2245 static const mbedtls_mpi_uint secp192k1_T_4_Y[] = {
2250 static const mbedtls_mpi_uint secp192k1_T_5_X[] = {
2255 static const mbedtls_mpi_uint secp192k1_T_5_Y[] = {
2260 static const mbedtls_mpi_uint secp192k1_T_6_X[] = {
2265 static const mbedtls_mpi_uint secp192k1_T_6_Y[] = {
2270 static const mbedtls_mpi_uint secp192k1_T_7_X[] = {
2275 static const mbedtls_mpi_uint secp192k1_T_7_Y[] = {
2280 static const mbedtls_mpi_uint secp192k1_T_8_X[] = {
2285 static const mbedtls_mpi_uint secp192k1_T_8_Y[] = {
2290 static const mbedtls_mpi_uint secp192k1_T_9_X[] = {
2295 static const mbedtls_mpi_uint secp192k1_T_9_Y[] = {
2300 static const mbedtls_mpi_uint secp192k1_T_10_X[] = {
2305 static const mbedtls_mpi_uint secp192k1_T_10_Y[] = {
2310 static const mbedtls_mpi_uint secp192k1_T_11_X[] = {
2315 static const mbedtls_mpi_uint secp192k1_T_11_Y[] = {
2320 static const mbedtls_mpi_uint secp192k1_T_12_X[] = {
2325 static const mbedtls_mpi_uint secp192k1_T_12_Y[] = {
2330 static const mbedtls_mpi_uint secp192k1_T_13_X[] = {
2335 static const mbedtls_mpi_uint secp192k1_T_13_Y[] = {
2340 static const mbedtls_mpi_uint secp192k1_T_14_X[] = {
2345 static const mbedtls_mpi_uint secp192k1_T_14_Y[] = {
2350 static const mbedtls_mpi_uint secp192k1_T_15_X[] = {
2355 static const mbedtls_mpi_uint secp192k1_T_15_Y[] = {
2385 static const mbedtls_mpi_uint secp224k1_p[] = {
2391 static const mbedtls_mpi_uint secp224k1_a[] = {
2394 static const mbedtls_mpi_uint secp224k1_b[] = {
2397 static const mbedtls_mpi_uint secp224k1_gx[] = {
2403 static const mbedtls_mpi_uint secp224k1_gy[] = {
2409 static const mbedtls_mpi_uint secp224k1_n[] = {
2417 static const mbedtls_mpi_uint secp224k1_T_0_X[] = {
2423 static const mbedtls_mpi_uint secp224k1_T_0_Y[] = {
2429 static const mbedtls_mpi_uint secp224k1_T_1_X[] = {
2435 static const mbedtls_mpi_uint secp224k1_T_1_Y[] = {
2441 static const mbedtls_mpi_uint secp224k1_T_2_X[] = {
2447 static const mbedtls_mpi_uint secp224k1_T_2_Y[] = {
2453 static const mbedtls_mpi_uint secp224k1_T_3_X[] = {
2459 static const mbedtls_mpi_uint secp224k1_T_3_Y[] = {
2465 static const mbedtls_mpi_uint secp224k1_T_4_X[] = {
2471 static const mbedtls_mpi_uint secp224k1_T_4_Y[] = {
2477 static const mbedtls_mpi_uint secp224k1_T_5_X[] = {
2483 static const mbedtls_mpi_uint secp224k1_T_5_Y[] = {
2489 static const mbedtls_mpi_uint secp224k1_T_6_X[] = {
2495 static const mbedtls_mpi_uint secp224k1_T_6_Y[] = {
2501 static const mbedtls_mpi_uint secp224k1_T_7_X[] = {
2507 static const mbedtls_mpi_uint secp224k1_T_7_Y[] = {
2513 static const mbedtls_mpi_uint secp224k1_T_8_X[] = {
2519 static const mbedtls_mpi_uint secp224k1_T_8_Y[] = {
2525 static const mbedtls_mpi_uint secp224k1_T_9_X[] = {
2531 static const mbedtls_mpi_uint secp224k1_T_9_Y[] = {
2537 static const mbedtls_mpi_uint secp224k1_T_10_X[] = {
2543 static const mbedtls_mpi_uint secp224k1_T_10_Y[] = {
2549 static const mbedtls_mpi_uint secp224k1_T_11_X[] = {
2555 static const mbedtls_mpi_uint secp224k1_T_11_Y[] = {
2561 static const mbedtls_mpi_uint secp224k1_T_12_X[] = {
2567 static const mbedtls_mpi_uint secp224k1_T_12_Y[] = {
2573 static const mbedtls_mpi_uint secp224k1_T_13_X[] = {
2579 static const mbedtls_mpi_uint secp224k1_T_13_Y[] = {
2585 static const mbedtls_mpi_uint secp224k1_T_14_X[] = {
2591 static const mbedtls_mpi_uint secp224k1_T_14_Y[] = {
2597 static const mbedtls_mpi_uint secp224k1_T_15_X[] = {
2603 static const mbedtls_mpi_uint secp224k1_T_15_Y[] = {
2633 static const mbedtls_mpi_uint secp256k1_p[] = {
2639 static const mbedtls_mpi_uint secp256k1_a[] = {
2642 static const mbedtls_mpi_uint secp256k1_b[] = {
2645 static const mbedtls_mpi_uint secp256k1_gx[] = {
2651 static const mbedtls_mpi_uint secp256k1_gy[] = {
2657 static const mbedtls_mpi_uint secp256k1_n[] = {
2665 static const mbedtls_mpi_uint secp256k1_T_0_X[] = {
2671 static const mbedtls_mpi_uint secp256k1_T_0_Y[] = {
2677 static const mbedtls_mpi_uint secp256k1_T_1_X[] = {
2683 static const mbedtls_mpi_uint secp256k1_T_1_Y[] = {
2689 static const mbedtls_mpi_uint secp256k1_T_2_X[] = {
2695 static const mbedtls_mpi_uint secp256k1_T_2_Y[] = {
2701 static const mbedtls_mpi_uint secp256k1_T_3_X[] = {
2707 static const mbedtls_mpi_uint secp256k1_T_3_Y[] = {
2713 static const mbedtls_mpi_uint secp256k1_T_4_X[] = {
2719 static const mbedtls_mpi_uint secp256k1_T_4_Y[] = {
2725 static const mbedtls_mpi_uint secp256k1_T_5_X[] = {
2731 static const mbedtls_mpi_uint secp256k1_T_5_Y[] = {
2737 static const mbedtls_mpi_uint secp256k1_T_6_X[] = {
2743 static const mbedtls_mpi_uint secp256k1_T_6_Y[] = {
2749 static const mbedtls_mpi_uint secp256k1_T_7_X[] = {
2755 static const mbedtls_mpi_uint secp256k1_T_7_Y[] = {
2761 static const mbedtls_mpi_uint secp256k1_T_8_X[] = {
2767 static const mbedtls_mpi_uint secp256k1_T_8_Y[] = {
2773 static const mbedtls_mpi_uint secp256k1_T_9_X[] = {
2779 static const mbedtls_mpi_uint secp256k1_T_9_Y[] = {
2785 static const mbedtls_mpi_uint secp256k1_T_10_X[] = {
2791 static const mbedtls_mpi_uint secp256k1_T_10_Y[] = {
2797 static const mbedtls_mpi_uint secp256k1_T_11_X[] = {
2803 static const mbedtls_mpi_uint secp256k1_T_11_Y[] = {
2809 static const mbedtls_mpi_uint secp256k1_T_12_X[] = {
2815 static const mbedtls_mpi_uint secp256k1_T_12_Y[] = {
2821 static const mbedtls_mpi_uint secp256k1_T_13_X[] = {
2827 static const mbedtls_mpi_uint secp256k1_T_13_Y[] = {
2833 static const mbedtls_mpi_uint secp256k1_T_14_X[] = {
2839 static const mbedtls_mpi_uint secp256k1_T_14_Y[] = {
2845 static const mbedtls_mpi_uint secp256k1_T_15_X[] = {
2851 static const mbedtls_mpi_uint secp256k1_T_15_Y[] = {
2884 static const mbedtls_mpi_uint brainpoolP256r1_p[] = {
2890 static const mbedtls_mpi_uint brainpoolP256r1_a[] = {
2896 static const mbedtls_mpi_uint brainpoolP256r1_b[] = {
2902 static const mbedtls_mpi_uint brainpoolP256r1_gx[] = {
2908 static const mbedtls_mpi_uint brainpoolP256r1_gy[] = {
2914 static const mbedtls_mpi_uint brainpoolP256r1_n[] = {
2922 static const mbedtls_mpi_uint brainpoolP256r1_T_0_X[] = {
2928 static const mbedtls_mpi_uint brainpoolP256r1_T_0_Y[] = {
2934 static const mbedtls_mpi_uint brainpoolP256r1_T_1_X[] = {
2940 static const mbedtls_mpi_uint brainpoolP256r1_T_1_Y[] = {
2946 static const mbedtls_mpi_uint brainpoolP256r1_T_2_X[] = {
2952 static const mbedtls_mpi_uint brainpoolP256r1_T_2_Y[] = {
2958 static const mbedtls_mpi_uint brainpoolP256r1_T_3_X[] = {
2964 static const mbedtls_mpi_uint brainpoolP256r1_T_3_Y[] = {
2970 static const mbedtls_mpi_uint brainpoolP256r1_T_4_X[] = {
2976 static const mbedtls_mpi_uint brainpoolP256r1_T_4_Y[] = {
2982 static const mbedtls_mpi_uint brainpoolP256r1_T_5_X[] = {
2988 static const mbedtls_mpi_uint brainpoolP256r1_T_5_Y[] = {
2994 static const mbedtls_mpi_uint brainpoolP256r1_T_6_X[] = {
3000 static const mbedtls_mpi_uint brainpoolP256r1_T_6_Y[] = {
3006 static const mbedtls_mpi_uint brainpoolP256r1_T_7_X[] = {
3012 static const mbedtls_mpi_uint brainpoolP256r1_T_7_Y[] = {
3018 static const mbedtls_mpi_uint brainpoolP256r1_T_8_X[] = {
3024 static const mbedtls_mpi_uint brainpoolP256r1_T_8_Y[] = {
3030 static const mbedtls_mpi_uint brainpoolP256r1_T_9_X[] = {
3036 static const mbedtls_mpi_uint brainpoolP256r1_T_9_Y[] = {
3042 static const mbedtls_mpi_uint brainpoolP256r1_T_10_X[] = {
3048 static const mbedtls_mpi_uint brainpoolP256r1_T_10_Y[] = {
3054 static const mbedtls_mpi_uint brainpoolP256r1_T_11_X[] = {
3060 static const mbedtls_mpi_uint brainpoolP256r1_T_11_Y[] = {
3066 static const mbedtls_mpi_uint brainpoolP256r1_T_12_X[] = {
3072 static const mbedtls_mpi_uint brainpoolP256r1_T_12_Y[] = {
3078 static const mbedtls_mpi_uint brainpoolP256r1_T_13_X[] = {
3084 static const mbedtls_mpi_uint brainpoolP256r1_T_13_Y[] = {
3090 static const mbedtls_mpi_uint brainpoolP256r1_T_14_X[] = {
3096 static const mbedtls_mpi_uint brainpoolP256r1_T_14_Y[] = {
3102 static const mbedtls_mpi_uint brainpoolP256r1_T_15_X[] = {
3108 static const mbedtls_mpi_uint brainpoolP256r1_T_15_Y[] = {
3142 static const mbedtls_mpi_uint brainpoolP384r1_p[] = {
3150 static const mbedtls_mpi_uint brainpoolP384r1_a[] = {
3158 static const mbedtls_mpi_uint brainpoolP384r1_b[] = {
3166 static const mbedtls_mpi_uint brainpoolP384r1_gx[] = {
3174 static const mbedtls_mpi_uint brainpoolP384r1_gy[] = {
3182 static const mbedtls_mpi_uint brainpoolP384r1_n[] = {
3192 static const mbedtls_mpi_uint brainpoolP384r1_T_0_X[] = {
3200 static const mbedtls_mpi_uint brainpoolP384r1_T_0_Y[] = {
3208 static const mbedtls_mpi_uint brainpoolP384r1_T_1_X[] = {
3216 static const mbedtls_mpi_uint brainpoolP384r1_T_1_Y[] = {
3224 static const mbedtls_mpi_uint brainpoolP384r1_T_2_X[] = {
3232 static const mbedtls_mpi_uint brainpoolP384r1_T_2_Y[] = {
3240 static const mbedtls_mpi_uint brainpoolP384r1_T_3_X[] = {
3248 static const mbedtls_mpi_uint brainpoolP384r1_T_3_Y[] = {
3256 static const mbedtls_mpi_uint brainpoolP384r1_T_4_X[] = {
3264 static const mbedtls_mpi_uint brainpoolP384r1_T_4_Y[] = {
3272 static const mbedtls_mpi_uint brainpoolP384r1_T_5_X[] = {
3280 static const mbedtls_mpi_uint brainpoolP384r1_T_5_Y[] = {
3288 static const mbedtls_mpi_uint brainpoolP384r1_T_6_X[] = {
3296 static const mbedtls_mpi_uint brainpoolP384r1_T_6_Y[] = {
3304 static const mbedtls_mpi_uint brainpoolP384r1_T_7_X[] = {
3312 static const mbedtls_mpi_uint brainpoolP384r1_T_7_Y[] = {
3320 static const mbedtls_mpi_uint brainpoolP384r1_T_8_X[] = {
3328 static const mbedtls_mpi_uint brainpoolP384r1_T_8_Y[] = {
3336 static const mbedtls_mpi_uint brainpoolP384r1_T_9_X[] = {
3344 static const mbedtls_mpi_uint brainpoolP384r1_T_9_Y[] = {
3352 static const mbedtls_mpi_uint brainpoolP384r1_T_10_X[] = {
3360 static const mbedtls_mpi_uint brainpoolP384r1_T_10_Y[] = {
3368 static const mbedtls_mpi_uint brainpoolP384r1_T_11_X[] = {
3376 static const mbedtls_mpi_uint brainpoolP384r1_T_11_Y[] = {
3384 static const mbedtls_mpi_uint brainpoolP384r1_T_12_X[] = {
3392 static const mbedtls_mpi_uint brainpoolP384r1_T_12_Y[] = {
3400 static const mbedtls_mpi_uint brainpoolP384r1_T_13_X[] = {
3408 static const mbedtls_mpi_uint brainpoolP384r1_T_13_Y[] = {
3416 static const mbedtls_mpi_uint brainpoolP384r1_T_14_X[] = {
3424 static const mbedtls_mpi_uint brainpoolP384r1_T_14_Y[] = {
3432 static const mbedtls_mpi_uint brainpoolP384r1_T_15_X[] = {
3440 static const mbedtls_mpi_uint brainpoolP384r1_T_15_Y[] = {
3448 static const mbedtls_mpi_uint brainpoolP384r1_T_16_X[] = {
3456 static const mbedtls_mpi_uint brainpoolP384r1_T_16_Y[] = {
3464 static const mbedtls_mpi_uint brainpoolP384r1_T_17_X[] = {
3472 static const mbedtls_mpi_uint brainpoolP384r1_T_17_Y[] = {
3480 static const mbedtls_mpi_uint brainpoolP384r1_T_18_X[] = {
3488 static const mbedtls_mpi_uint brainpoolP384r1_T_18_Y[] = {
3496 static const mbedtls_mpi_uint brainpoolP384r1_T_19_X[] = {
3504 static const mbedtls_mpi_uint brainpoolP384r1_T_19_Y[] = {
3512 static const mbedtls_mpi_uint brainpoolP384r1_T_20_X[] = {
3520 static const mbedtls_mpi_uint brainpoolP384r1_T_20_Y[] = {
3528 static const mbedtls_mpi_uint brainpoolP384r1_T_21_X[] = {
3536 static const mbedtls_mpi_uint brainpoolP384r1_T_21_Y[] = {
3544 static const mbedtls_mpi_uint brainpoolP384r1_T_22_X[] = {
3552 static const mbedtls_mpi_uint brainpoolP384r1_T_22_Y[] = {
3560 static const mbedtls_mpi_uint brainpoolP384r1_T_23_X[] = {
3568 static const mbedtls_mpi_uint brainpoolP384r1_T_23_Y[] = {
3576 static const mbedtls_mpi_uint brainpoolP384r1_T_24_X[] = {
3584 static const mbedtls_mpi_uint brainpoolP384r1_T_24_Y[] = {
3592 static const mbedtls_mpi_uint brainpoolP384r1_T_25_X[] = {
3600 static const mbedtls_mpi_uint brainpoolP384r1_T_25_Y[] = {
3608 static const mbedtls_mpi_uint brainpoolP384r1_T_26_X[] = {
3616 static const mbedtls_mpi_uint brainpoolP384r1_T_26_Y[] = {
3624 static const mbedtls_mpi_uint brainpoolP384r1_T_27_X[] = {
3632 static const mbedtls_mpi_uint brainpoolP384r1_T_27_Y[] = {
3640 static const mbedtls_mpi_uint brainpoolP384r1_T_28_X[] = {
3648 static const mbedtls_mpi_uint brainpoolP384r1_T_28_Y[] = {
3656 static const mbedtls_mpi_uint brainpoolP384r1_T_29_X[] = {
3664 static const mbedtls_mpi_uint brainpoolP384r1_T_29_Y[] = {
3672 static const mbedtls_mpi_uint brainpoolP384r1_T_30_X[] = {
3680 static const mbedtls_mpi_uint brainpoolP384r1_T_30_Y[] = {
3688 static const mbedtls_mpi_uint brainpoolP384r1_T_31_X[] = {
3696 static const mbedtls_mpi_uint brainpoolP384r1_T_31_Y[] = {
3748 static const mbedtls_mpi_uint brainpoolP512r1_p[] = {
3758 static const mbedtls_mpi_uint brainpoolP512r1_a[] = {
3768 static const mbedtls_mpi_uint brainpoolP512r1_b[] = {
3778 static const mbedtls_mpi_uint brainpoolP512r1_gx[] = {
3788 static const mbedtls_mpi_uint brainpoolP512r1_gy[] = {
3798 static const mbedtls_mpi_uint brainpoolP512r1_n[] = {
3810 static const mbedtls_mpi_uint brainpoolP512r1_T_0_X[] = {
3820 static const mbedtls_mpi_uint brainpoolP512r1_T_0_Y[] = {
3830 static const mbedtls_mpi_uint brainpoolP512r1_T_1_X[] = {
3840 static const mbedtls_mpi_uint brainpoolP512r1_T_1_Y[] = {
3850 static const mbedtls_mpi_uint brainpoolP512r1_T_2_X[] = {
3860 static const mbedtls_mpi_uint brainpoolP512r1_T_2_Y[] = {
3870 static const mbedtls_mpi_uint brainpoolP512r1_T_3_X[] = {
3880 static const mbedtls_mpi_uint brainpoolP512r1_T_3_Y[] = {
3890 static const mbedtls_mpi_uint brainpoolP512r1_T_4_X[] = {
3900 static const mbedtls_mpi_uint brainpoolP512r1_T_4_Y[] = {
3910 static const mbedtls_mpi_uint brainpoolP512r1_T_5_X[] = {
3920 static const mbedtls_mpi_uint brainpoolP512r1_T_5_Y[] = {
3930 static const mbedtls_mpi_uint brainpoolP512r1_T_6_X[] = {
3940 static const mbedtls_mpi_uint brainpoolP512r1_T_6_Y[] = {
3950 static const mbedtls_mpi_uint brainpoolP512r1_T_7_X[] = {
3960 static const mbedtls_mpi_uint brainpoolP512r1_T_7_Y[] = {
3970 static const mbedtls_mpi_uint brainpoolP512r1_T_8_X[] = {
3980 static const mbedtls_mpi_uint brainpoolP512r1_T_8_Y[] = {
3990 static const mbedtls_mpi_uint brainpoolP512r1_T_9_X[] = {
4000 static const mbedtls_mpi_uint brainpoolP512r1_T_9_Y[] = {
4010 static const mbedtls_mpi_uint brainpoolP512r1_T_10_X[] = {
4020 static const mbedtls_mpi_uint brainpoolP512r1_T_10_Y[] = {
4030 static const mbedtls_mpi_uint brainpoolP512r1_T_11_X[] = {
4040 static const mbedtls_mpi_uint brainpoolP512r1_T_11_Y[] = {
4050 static const mbedtls_mpi_uint brainpoolP512r1_T_12_X[] = {
4060 static const mbedtls_mpi_uint brainpoolP512r1_T_12_Y[] = {
4070 static const mbedtls_mpi_uint brainpoolP512r1_T_13_X[] = {
4080 static const mbedtls_mpi_uint brainpoolP512r1_T_13_Y[] = {
4090 static const mbedtls_mpi_uint brainpoolP512r1_T_14_X[] = {
4100 static const mbedtls_mpi_uint brainpoolP512r1_T_14_Y[] = {
4110 static const mbedtls_mpi_uint brainpoolP512r1_T_15_X[] = {
4120 static const mbedtls_mpi_uint brainpoolP512r1_T_15_Y[] = {
4130 static const mbedtls_mpi_uint brainpoolP512r1_T_16_X[] = {
4140 static const mbedtls_mpi_uint brainpoolP512r1_T_16_Y[] = {
4150 static const mbedtls_mpi_uint brainpoolP512r1_T_17_X[] = {
4160 static const mbedtls_mpi_uint brainpoolP512r1_T_17_Y[] = {
4170 static const mbedtls_mpi_uint brainpoolP512r1_T_18_X[] = {
4180 static const mbedtls_mpi_uint brainpoolP512r1_T_18_Y[] = {
4190 static const mbedtls_mpi_uint brainpoolP512r1_T_19_X[] = {
4200 static const mbedtls_mpi_uint brainpoolP512r1_T_19_Y[] = {
4210 static const mbedtls_mpi_uint brainpoolP512r1_T_20_X[] = {
4220 static const mbedtls_mpi_uint brainpoolP512r1_T_20_Y[] = {
4230 static const mbedtls_mpi_uint brainpoolP512r1_T_21_X[] = {
4240 static const mbedtls_mpi_uint brainpoolP512r1_T_21_Y[] = {
4250 static const mbedtls_mpi_uint brainpoolP512r1_T_22_X[] = {
4260 static const mbedtls_mpi_uint brainpoolP512r1_T_22_Y[] = {
4270 static const mbedtls_mpi_uint brainpoolP512r1_T_23_X[] = {
4280 static const mbedtls_mpi_uint brainpoolP512r1_T_23_Y[] = {
4290 static const mbedtls_mpi_uint brainpoolP512r1_T_24_X[] = {
4300 static const mbedtls_mpi_uint brainpoolP512r1_T_24_Y[] = {
4310 static const mbedtls_mpi_uint brainpoolP512r1_T_25_X[] = {
4320 static const mbedtls_mpi_uint brainpoolP512r1_T_25_Y[] = {
4330 static const mbedtls_mpi_uint brainpoolP512r1_T_26_X[] = {
4340 static const mbedtls_mpi_uint brainpoolP512r1_T_26_Y[] = {
4350 static const mbedtls_mpi_uint brainpoolP512r1_T_27_X[] = {
4360 static const mbedtls_mpi_uint brainpoolP512r1_T_27_Y[] = {
4370 static const mbedtls_mpi_uint brainpoolP512r1_T_28_X[] = {
4380 static const mbedtls_mpi_uint brainpoolP512r1_T_28_Y[] = {
4390 static const mbedtls_mpi_uint brainpoolP512r1_T_29_X[] = {
4400 static const mbedtls_mpi_uint brainpoolP512r1_T_29_Y[] = {
4410 static const mbedtls_mpi_uint brainpoolP512r1_T_30_X[] = {
4420 static const mbedtls_mpi_uint brainpoolP512r1_T_30_Y[] = {
4430 static const mbedtls_mpi_uint brainpoolP512r1_T_31_X[] = {
4440 static const mbedtls_mpi_uint brainpoolP512r1_T_31_Y[] = {
4494 static inline void ecp_mpi_load(mbedtls_mpi *X, const mbedtls_mpi_uint *p, size_t len) in ecp_mpi_load()
4497 X->n = (unsigned short) (len / sizeof(mbedtls_mpi_uint)); in ecp_mpi_load()
4498 X->p = (mbedtls_mpi_uint *) p; in ecp_mpi_load()
4508 X->p = (mbedtls_mpi_uint *) mpi_one; /* X->p will not be modified so the cast is safe */ in ecp_mpi_set1()
4515 const mbedtls_mpi_uint *p, size_t plen, in ecp_group_load()
4516 const mbedtls_mpi_uint *a, size_t alen, in ecp_group_load()
4517 const mbedtls_mpi_uint *b, size_t blen, in ecp_group_load()
4518 const mbedtls_mpi_uint *gx, size_t gxlen, in ecp_group_load()
4519 const mbedtls_mpi_uint *gy, size_t gylen, in ecp_group_load()
4520 const mbedtls_mpi_uint *n, size_t nlen, in ecp_group_load()
4832 static inline void add64(mbedtls_mpi_uint *dst, mbedtls_mpi_uint *src, mbedtls_mpi_uint *carry) in add64()
4835 mbedtls_mpi_uint c = 0; in add64()
4836 for (i = 0; i < 8 / sizeof(mbedtls_mpi_uint); i++, dst++, src++) { in add64()
4844 static inline void carry64(mbedtls_mpi_uint *dst, mbedtls_mpi_uint *carry) in carry64()
4847 for (i = 0; i < 8 / sizeof(mbedtls_mpi_uint); i++, dst++) { in carry64()
4853 #define WIDTH 8 / sizeof(mbedtls_mpi_uint)
4865 mbedtls_mpi_uint c = 0; in ecp_mod_p192()
4866 mbedtls_mpi_uint *p, *end; in ecp_mod_p192()
4924 N->p[i/2] |= ((mbedtls_mpi_uint) cur) << 32; \
4927 N->p[i/2] |= (mbedtls_mpi_uint) cur; \
4988 for (i = 0; i <= bits / 8 / sizeof(mbedtls_mpi_uint); i++) { in mbedtls_ecp_fix_negative()
4989 N->p[i] = ~(mbedtls_mpi_uint) 0 - N->p[i]; in mbedtls_ecp_fix_negative()
4995 } while (N->p[i++] == 0 && i <= bits / 8 / sizeof(mbedtls_mpi_uint)); in mbedtls_ecp_fix_negative()
5002 mbedtls_mpi_uint msw = (mbedtls_mpi_uint) -c; in mbedtls_ecp_fix_negative()
5008 N->p[bits / 8 / sizeof(mbedtls_mpi_uint)] += msw; in mbedtls_ecp_fix_negative()
5137 #define P521_WIDTH (521 / 8 / sizeof(mbedtls_mpi_uint) + 1)
5151 mbedtls_mpi_uint Mp[P521_WIDTH + 1]; in ecp_mod_p521()
5167 memcpy(Mp, N->p + P521_WIDTH - 1, M.n * sizeof(mbedtls_mpi_uint)); in ecp_mod_p521()
5168 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_r(&M, 521 % (8 * sizeof(mbedtls_mpi_uint)))); in ecp_mod_p521()
5192 #define P255_WIDTH (255 / 8 / sizeof(mbedtls_mpi_uint) + 1)
5200 mbedtls_mpi_uint Mp[P255_WIDTH]; in ecp_mod_p255()
5203 mbedtls_mpi_uint * const NT_p = N->p + P255_WIDTH; in ecp_mod_p255()
5213 memcpy(Mp, NT_p, sizeof(mbedtls_mpi_uint) * NT_n); in ecp_mod_p255()
5214 memset(NT_p, 0, sizeof(mbedtls_mpi_uint) * NT_n); in ecp_mod_p255()
5228 #define P448_WIDTH (448 / 8 / sizeof(mbedtls_mpi_uint))
5233 #define P224_WIDTH_MIN (P224_SIZE / sizeof(mbedtls_mpi_uint))
5234 #define P224_WIDTH_MAX DIV_ROUND_UP(P224_SIZE, sizeof(mbedtls_mpi_uint))
5235 #define P224_UNUSED_BITS ((P224_WIDTH_MAX * sizeof(mbedtls_mpi_uint) * 8) - 224)
5253 mbedtls_mpi_uint Mp[P448_WIDTH + 1], Qp[P448_WIDTH]; in ecp_mod_p448()
5268 memcpy(Mp, N->p + P448_WIDTH, M.n * sizeof(mbedtls_mpi_uint)); in ecp_mod_p448()
5286 if (sizeof(mbedtls_mpi_uint) > 4) { in ecp_mod_p448()
5287 Mp[P224_WIDTH_MIN] &= ((mbedtls_mpi_uint)-1) >> (P224_UNUSED_BITS); in ecp_mod_p448()
5312 #define P_KOBLITZ_MAX (256 / 8 / sizeof(mbedtls_mpi_uint)) // Max limbs in P
5313 #define P_KOBLITZ_R (8 / sizeof(mbedtls_mpi_uint)) // Limbs in R
5314 static inline int ecp_mod_koblitz(mbedtls_mpi *N, const mbedtls_mpi_uint *Rp, size_t p_limbs, in ecp_mod_koblitz()
5315 size_t adjust, size_t shift, mbedtls_mpi_uint mask) in ecp_mod_koblitz()
5320 mbedtls_mpi_uint Mp[P_KOBLITZ_MAX + P_KOBLITZ_R + 1]; in ecp_mod_koblitz()
5328 R.p = (mbedtls_mpi_uint *) Rp; /* R.p will not be modified so the cast is safe */ in ecp_mod_koblitz()
5341 memcpy(Mp, N->p + p_limbs - adjust, M.n * sizeof(mbedtls_mpi_uint)); in ecp_mod_koblitz()
5367 memcpy(Mp, N->p + p_limbs - adjust, M.n * sizeof(mbedtls_mpi_uint)); in ecp_mod_koblitz()
5399 static const mbedtls_mpi_uint Rp[] = { in ecp_mod_p192k1()
5404 return ecp_mod_koblitz(N, Rp, 192 / 8 / sizeof(mbedtls_mpi_uint), 0, 0, in ecp_mod_p192k1()
5416 static const mbedtls_mpi_uint Rp[] = { in ecp_mod_p224k1()
5424 return ecp_mod_koblitz(N, Rp, 224 / 8 / sizeof(mbedtls_mpi_uint), 0, 0, in ecp_mod_p224k1()
5438 static const mbedtls_mpi_uint Rp[] = { in ecp_mod_p256k1()
5442 return ecp_mod_koblitz(N, Rp, 256 / 8 / sizeof(mbedtls_mpi_uint), 0, 0, in ecp_mod_p256k1()