Commit fd8be9c
committed
pk_from_sk: Add validation of s1 and s2
Altenative to #807
This commit adds validation of the s1 and s2 components of the secret key
to the pk_from_sk function. It checks if coefficients are within the valid
bound [-MLDSA_ETA, MLDSA_ETA] by using the chknorm function that is
already present in the code.
Documentation and CBMC proofs are adjusted accordingly.
Signed-off-by: Matthias J. Kannwischer <[email protected]>1 parent 606e8dd commit fd8be9c
File tree
4 files changed
+30
-8
lines changed- mldsa
- src
- proofs/cbmc/crypto_sign_pk_from_sk
4 files changed
+30
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
738 | | - | |
739 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
740 | 748 | | |
741 | 749 | | |
742 | 750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
1300 | | - | |
| 1300 | + | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | 1303 | | |
| |||
1320 | 1320 | | |
1321 | 1321 | | |
1322 | 1322 | | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
1323 | 1327 | | |
1324 | 1328 | | |
1325 | 1329 | | |
| |||
1333 | 1337 | | |
1334 | 1338 | | |
1335 | 1339 | | |
1336 | | - | |
| 1340 | + | |
1337 | 1341 | | |
1338 | 1342 | | |
1339 | | - | |
1340 | | - | |
| 1343 | + | |
| 1344 | + | |
1341 | 1345 | | |
1342 | 1346 | | |
1343 | 1347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
749 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
750 | 758 | | |
751 | 759 | | |
752 | 760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
0 commit comments