Commit 73dc5a6
committed
SecurityReview FND 40.2: upgrade in-core integrity HMAC to SHA-512
FIPS 140-3 v7.0.0 security review finding 40.2: the in-core integrity
test must use HMAC-SHA-512 with a 512-bit key for NSA 2.0 compliance
(customers requiring no SHA-256 usage anywhere in the validated module).
- wolfssl/wolfcrypt/fips_test.h: add v7+ branch that selects SHA-512 /
64-byte digest / 512-bit key / 64-byte verify-size. Older versions
(v5.3, v6.x) keep HMAC-SHA-256.
- fips-hash.sh: drop the hardcoded cut -c1-64 so the script works for
SHA-512 (128 hex chars) as well as SHA-256. Length is guarded at
compile time by the static_assert on sizeof(verifyCore).
Companion change in kh-fork-fips updates fips_test.c verifyCore
placeholder, coreKey (fresh 512-bit random), and the static_assert to
use FIPS_IN_CORE_DIGEST_SIZE.
Paperwork (PQ-FS-dev-area/Final_Submission_Paperwork/):
- PL-R36 compliance summary already reflects HMAC-SHA-512 (no change).
- PL-R34 Security Policy section 5.1 updated via tracked changes to
say HMAC-SHA2-512 with a 512-bit key.
Verified: make + fips-hash.sh + make; make check all pass.1 parent be15865 commit 73dc5a6
2 files changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
36 | 51 | | |
37 | 52 | | |
38 | 53 | | |
| |||
0 commit comments