Repository navigation
Commit 833186a
authored
Return error in even moduli in sp_exptmod_nct for RSA public-only builds (#11849)
* Handle even moduli in sp_exptmod_nct for RSA public-only builds
* Reject even moduli in sp_exptmod_nct when the generic path is not built
* Align even modulus test guard and MP_VAL docs with sp_exptmod_nct
* Reject even moduli in sp_exptmod_nct for all RSA verify/public builds
No RSA, DH or ECC modulus is even, so the guard no longer depends on DH.1 parent 20fc06f commit 833186a
3 files changed
Lines changed: 40 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
601 | 609 | | |
602 | 610 | | |
603 | 611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14629 | 14629 | | |
14630 | 14630 | | |
14631 | 14631 | | |
14632 | | - | |
| 14632 | + | |
| 14633 | + | |
14633 | 14634 | | |
14634 | 14635 | | |
14635 | 14636 | | |
| |||
14822 | 14823 | | |
14823 | 14824 | | |
14824 | 14825 | | |
14825 | | - | |
| 14826 | + | |
| 14827 | + | |
14826 | 14828 | | |
14827 | 14829 | | |
14828 | 14830 | | |
| |||
15282 | 15284 | | |
15283 | 15285 | | |
15284 | 15286 | | |
15285 | | - | |
| 15287 | + | |
| 15288 | + | |
| 15289 | + | |
15286 | 15290 | | |
15287 | 15291 | | |
15288 | 15292 | | |
| |||
15329 | 15333 | | |
15330 | 15334 | | |
15331 | 15335 | | |
15332 | | - | |
15333 | 15336 | | |
| 15337 | + | |
15334 | 15338 | | |
15335 | | - | |
| 15339 | + | |
| 15340 | + | |
| 15341 | + | |
15336 | 15342 | | |
| 15343 | + | |
15337 | 15344 | | |
15338 | 15345 | | |
15339 | 15346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98949 | 98949 | | |
98950 | 98950 | | |
98951 | 98951 | | |
98952 | | - | |
98953 | | - | |
98954 | | - | |
| 98952 | + | |
| 98953 | + | |
| 98954 | + | |
| 98955 | + | |
| 98956 | + | |
98955 | 98957 | | |
98956 | 98958 | | |
98957 | 98959 | | |
| |||
98964 | 98966 | | |
98965 | 98967 | | |
98966 | 98968 | | |
| 98969 | + | |
| 98970 | + | |
| 98971 | + | |
| 98972 | + | |
| 98973 | + | |
| 98974 | + | |
| 98975 | + | |
98967 | 98976 | | |
98968 | 98977 | | |
98969 | 98978 | | |
98970 | 98979 | | |
98971 | 98980 | | |
98972 | 98981 | | |
| 98982 | + | |
| 98983 | + | |
| 98984 | + | |
| 98985 | + | |
| 98986 | + | |
| 98987 | + | |
| 98988 | + | |
98973 | 98989 | | |
98974 | 98990 | | |
98975 | 98991 | | |
98976 | 98992 | | |
98977 | 98993 | | |
98978 | 98994 | | |
| 98995 | + | |
98979 | 98996 | | |
98980 | 98997 | | |
98981 | 98998 | | |
| |||
0 commit comments