Daniel Pouzzner
1b5307345d
wolfcrypt/src/hmac.c: in wc_HmacSetKey_ex reject WC_MD5 under HAVE_FIPS
...
(unversioned defined(HAVE_FIPS), not a version arm -- hmac.c is in-boundary and
master's copy only compiles at v7+/MAJOR=8). This structurally closes the
old-TLS MD5 PRF: wc_PRF_TLSv1 -> wc_PRF(md5_mac) -> wc_HmacSetKey(WC_MD5) ->
BAD_FUNC_ARG. Separately, in wc_HKDF_Expand_ex, add `else if (ret == 0) return
BAD_FUNC_ARG;` after the wc_HmacSizeByType call: the existing code guarded
ret < 0 but not ret == 0, and hashSz is the divisor in the
`outSz/hashSz + ((outSz % hashSz) != 0) > 255` check three lines below.
wolfcrypt/src/kdf.c: delete the two WC_HASH_TYPE_MD5_SHA guards in wc_PRF /
wc_PRF_TLS -- they were a domain error (that arg is wc_MACAlgorithm, where
WC_HASH_TYPE_MD5_SHA == 9 == sm3_mac, so the guard blocked SM3, not MD5-SHA),
and the hmac.c reject is the correct layer.
wolfcrypt/src/evp.c: drop the MD5 EVP mapping at FIPS >= 5 (evp.c is out of
boundary, so the version arm is live and correct here).
tests/api/test_kdf.c: derive secLen from MAX_PRF_HALF rather than hardcoding
521/261 -- MAX_PRF_HALF is config-dependent (516 under HAVE_FFDHE_8192, 388
under FFDHE_6144, else 260), so the hardcoded value made the BUFFER_E
expectation config-dependent.
2026-08-05 13:53:45 -05:00
..
2026-02-18 09:52:21 -07:00
2026-07-07 02:35:51 -05:00
2026-07-10 18:56:51 +02:00
2026-07-31 12:56:52 +02:00
2026-08-05 13:53:45 -05:00
2026-07-09 10:02:21 +02:00
2026-06-10 11:36:29 +02:00
2026-06-10 11:36:29 +02:00
2026-02-18 09:52:21 -07:00
2026-07-31 13:16:41 +02:00
2026-07-31 12:56:51 +02:00
2026-07-24 10:37:30 +10:00
2026-07-20 12:38:34 -05:00
2026-07-31 12:56:51 +02:00
2026-07-31 12:56:51 +02:00
2026-07-31 12:56:51 +02:00
2026-07-02 11:36:01 +02:00
2026-07-24 14:34:17 -04:00
2026-07-24 14:34:17 -04:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-08-01 13:11:52 +02:00
2026-08-01 13:11:52 +02:00
2026-07-13 12:24:16 +02:00
2026-07-13 11:19:23 +02:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-08-03 16:30:31 -07:00
2026-08-03 16:30:31 -07:00
2026-07-31 12:56:52 +02:00
2026-07-31 12:56:51 +02:00
2026-08-01 13:13:00 +02:00
2026-08-01 13:13:00 +02:00
2026-02-18 09:52:21 -07:00
2026-07-13 11:19:24 +02:00
2026-07-13 11:19:23 +02:00
2026-08-01 12:04:57 +02:00
2026-08-01 11:54:40 +02:00
2026-08-03 10:11:25 -07:00
2026-08-01 12:04:57 +02:00
2026-08-01 13:13:00 +02:00
2026-08-01 13:13:00 +02:00
2026-07-31 12:56:52 +02:00
2026-07-31 12:56:51 +02:00
2026-08-04 10:29:42 -07:00
2026-08-04 10:29:42 -07:00
2026-07-29 23:20:44 +02:00
2026-07-29 23:20:44 +02:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-06-04 17:26:48 -05:00
2026-03-05 08:51:52 -06:00
2026-05-06 15:25:06 -06:00
2026-02-18 09:52:21 -07:00
2026-07-24 16:39:54 -05:00
2026-06-08 15:30:39 +02:00
2026-07-07 16:41:15 -07:00
2026-02-18 09:52:21 -07:00
2026-07-31 12:56:52 +02:00
2026-07-31 12:56:52 +02:00
2026-07-31 12:56:51 +02:00
2026-07-17 22:38:55 +10:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-08-04 10:43:24 -07:00
2026-08-04 10:43:24 -07:00
2026-07-31 12:56:52 +02:00
2026-07-31 12:56:51 +02:00
2026-08-05 13:53:45 -05:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-05-13 11:36:36 -06:00
2026-02-18 09:52:21 -07:00
2026-05-13 11:36:36 -06:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-06-04 18:29:24 +10:00
2026-08-04 17:02:54 -07:00
2026-07-17 08:56:03 +02:00
2026-07-29 14:59:47 +10:00
2026-07-17 08:56:03 +02:00
2026-07-10 11:51:52 -07:00
2026-07-31 22:02:42 +02:00
2026-07-31 22:02:42 +02:00
2026-07-07 17:41:49 -07:00
2026-02-18 09:52:21 -07:00
2026-07-02 11:36:01 +02:00
2026-07-02 11:36:01 +02:00
2026-04-13 15:50:26 +02:00
2026-02-18 09:52:21 -07:00
2026-06-10 11:36:29 +02:00
2026-05-07 02:33:58 +00:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-06 00:53:57 -05:00
2026-02-18 09:52:21 -07:00
2026-05-27 15:38:30 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-08-01 11:54:40 +02:00
2026-08-01 11:54:40 +02:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-06-26 14:44:16 -06:00
2026-06-16 20:19:22 +02:00
2026-06-25 14:44:03 -06:00
2026-05-22 19:24:53 +03:00
2026-05-14 16:59:12 +00:00
2026-05-14 16:59:12 +00:00
2026-07-07 00:19:47 -05:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-07-08 09:33:47 +10:00
2026-07-08 09:33:47 +10:00
2026-07-22 13:07:55 +02:00
2026-02-18 09:52:21 -07:00
2026-07-13 11:56:57 -06:00
2026-07-13 11:56:57 -06:00
2026-07-09 10:02:22 +02:00
2026-07-09 10:02:21 +02:00
2026-06-26 14:44:16 -06:00
2026-02-18 09:52:21 -07:00
2026-06-04 10:38:37 -07:00
2026-06-04 10:38:37 -07:00
2026-04-28 10:06:47 +00:00
2026-04-28 10:06:47 +00:00
2026-06-26 14:44:16 -06:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-07-22 13:31:03 +02:00
2026-07-22 13:31:03 +02:00
2026-07-21 09:50:17 -06:00
2026-02-18 09:52:21 -07:00
2026-08-01 11:54:40 +02:00
2026-08-01 11:54:40 +02:00
2026-08-04 10:33:15 -07:00
2026-08-04 10:33:15 -07:00
2026-07-09 10:02:22 +02:00
2026-07-09 10:02:21 +02:00
2026-07-13 11:19:23 +02:00
2026-04-10 15:43:21 +10:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-07-02 11:36:01 +02:00
2026-07-02 11:36:01 +02:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-07-13 14:13:46 +02:00
2026-07-09 10:02:21 +02:00
2026-07-31 12:56:52 +02:00
2026-07-31 12:56:51 +02:00
2026-05-28 19:34:09 +10:00
2026-05-28 19:34:09 +10:00
2026-07-24 16:39:54 -05:00
2026-07-13 17:48:56 +10:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-07-13 11:19:24 +02:00
2026-06-04 20:21:50 +02:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-15 18:03:39 -06:00
2026-04-15 11:28:03 -06:00
2026-08-02 20:56:01 +09:00
2026-07-17 08:56:03 +02:00
2026-07-31 12:56:51 +02:00
2026-07-31 12:56:51 +02:00
2026-08-04 22:23:03 +02:00
2026-08-04 22:23:03 +02:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-14 13:25:15 +10:00
2026-04-14 13:25:15 +10:00
2026-07-31 12:56:51 +02:00
2026-07-31 12:56:51 +02:00
2026-06-10 12:05:00 -05:00
2026-06-10 09:11:59 +10:00
2026-07-20 14:19:37 -05:00
2026-07-20 14:19:37 -05:00
2026-08-04 22:23:03 +02:00
2026-06-10 09:11:59 +10:00
2026-07-31 22:02:42 +02:00
2026-07-23 07:42:20 +09:00
2026-08-04 15:54:59 -07:00
2026-08-04 15:54:59 -07:00
2026-07-24 08:56:24 +10:00
2026-07-24 08:56:24 +10:00
2026-07-08 09:33:47 +10:00
2026-07-08 09:33:47 +10:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-07-17 08:56:03 +02:00
2026-07-31 12:56:52 +02:00
2026-07-31 12:56:52 +02:00
2026-07-31 12:56:52 +02:00
2026-07-17 08:56:03 +02:00
2026-07-31 17:46:16 -06:00
2026-07-31 17:46:16 -06:00