Commit 3b4cad7
committed
Merged PR 11324214: FIPS 140-3 CASTs for RSA, DSA, ECDSA
This change adds additional Cryptographic Algorithm Self-Tests (CASTs) for RSA, DSA and ECDSA. as required by FIPS 140-3. Specifically, it adds explicit Known Answer Tests (KATs), as the Pairwise Consistency Tests (PCTs) that we were using previously are no longer considered sufficient for CASTs.
Also adds pairwise consistency tests on key import for RSA and DSA, per recent changes in the FIPS 140-3 implementation guidance. ECDSA PCTs continue to be run prior to signing or key export, as a performance optimization. ECDH and DH do not have explicit PCTs, but they include the required checks specified in SP 800-56A rev 3.
Related work items: #534813331 parent 6173477 commit 3b4cad7
File tree
11 files changed
+324
-140
lines changed- doc
- inc
- lib
- unittest
- lib
- module_windows
11 files changed
+324
-140
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7367 | 7367 | | |
7368 | 7368 | | |
7369 | 7369 | | |
7370 | | - | |
| 7370 | + | |
7371 | 7371 | | |
7372 | 7372 | | |
7373 | 7373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2417 | 2417 | | |
2418 | 2418 | | |
2419 | 2419 | | |
2420 | | - | |
| 2420 | + | |
2421 | 2421 | | |
2422 | 2422 | | |
2423 | 2423 | | |
| |||
2571 | 2571 | | |
2572 | 2572 | | |
2573 | 2573 | | |
2574 | | - | |
| 2574 | + | |
2575 | 2575 | | |
2576 | 2576 | | |
2577 | 2577 | | |
| |||
2760 | 2760 | | |
2761 | 2761 | | |
2762 | 2762 | | |
2763 | | - | |
| 2763 | + | |
2764 | 2764 | | |
2765 | 2765 | | |
2766 | 2766 | | |
| |||
3130 | 3130 | | |
3131 | 3131 | | |
3132 | 3132 | | |
| 3133 | + | |
| 3134 | + | |
| 3135 | + | |
| 3136 | + | |
3133 | 3137 | | |
3134 | 3138 | | |
3135 | 3139 | | |
3136 | 3140 | | |
| 3141 | + | |
3137 | 3142 | | |
3138 | 3143 | | |
3139 | 3144 | | |
3140 | 3145 | | |
| 3146 | + | |
3141 | 3147 | | |
3142 | 3148 | | |
3143 | 3149 | | |
3144 | 3150 | | |
| 3151 | + | |
3145 | 3152 | | |
3146 | 3153 | | |
3147 | 3154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
483 | 488 | | |
484 | | - | |
485 | | - | |
| 489 | + | |
| 490 | + | |
486 | 491 | | |
487 | | - | |
488 | | - | |
| 492 | + | |
489 | 493 | | |
490 | 494 | | |
491 | 495 | | |
| |||
796 | 800 | | |
797 | 801 | | |
798 | 802 | | |
799 | | - | |
800 | | - | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
801 | 807 | | |
802 | 808 | | |
803 | 809 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
| 421 | + | |
| 422 | + | |
423 | 423 | | |
424 | | - | |
425 | | - | |
| 424 | + | |
426 | 425 | | |
427 | 426 | | |
428 | 427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
| 550 | + | |
| 551 | + | |
555 | 552 | | |
556 | 553 | | |
557 | 554 | | |
| |||
658 | 655 | | |
659 | 656 | | |
660 | 657 | | |
661 | | - | |
662 | | - | |
| 658 | + | |
| 659 | + | |
663 | 660 | | |
664 | | - | |
665 | | - | |
| 661 | + | |
666 | 662 | | |
667 | 663 | | |
668 | 664 | | |
| |||
0 commit comments