Mark Atwood
a7cc526747
Fix AES-EAX to allow empty plaintext
...
The one-shot wc_AesEaxEncryptAuth/wc_AesEaxDecryptAuth and the
incremental wc_AesEaxEncryptUpdate/wc_AesEaxDecryptUpdate functions
unconditionally required non-NULL out/in/authIn pointers, returning
BAD_FUNC_ARG even when the corresponding length was 0.
EAX mode with empty plaintext is a valid authentication-only operation
that produces just an authentication tag (OMAC over nonce and AAD).
This is permitted by the EAX specification (Bellare, Rogaway, Wagner
2004) and exercised by Wycheproof test vectors.
Fix: gate NULL pointer checks on the corresponding length being > 0.
In the incremental Update functions, skip the AES-CTR and CMAC
ciphertext update when inSz is 0 to avoid passing NULL to
wc_AesCtrEncrypt (which also rejects NULL unconditionally).
2026-06-03 16:48:37 -07:00
..
2026-04-17 09:38:57 +10:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-17 09:38:57 +10:00
2026-04-17 09:38:57 +10:00
2026-04-17 09:38:57 +10:00
2026-04-17 09:38:57 +10:00
2026-04-17 09:38:57 +10:00
2026-06-03 16:48:37 -07:00
2026-02-18 09:52:21 -07:00
2026-04-02 11:55:41 +02:00
2026-02-18 09:52:21 -07:00
2026-04-01 15:28:35 -05:00
2024-11-05 00:19:07 -06:00
2026-04-17 10:44:55 +10:00
2026-02-27 14:35:03 -08:00
2026-04-07 13:18:53 -05:00
2026-04-02 11:55:41 +02:00
2026-04-13 15:50:52 +00:00
2026-03-27 12:09:53 -06:00
2026-04-17 09:38:57 +10:00
2026-04-17 09:38:57 +10:00
2026-04-01 14:12:02 -05:00
2026-04-10 13:19:01 -06:00
2026-04-13 15:52:45 +00:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-04-15 11:28:03 -06:00
2026-03-16 17:09:13 -07:00
2026-04-07 10:04:35 -06:00
2026-04-13 15:52:45 +00:00
2026-04-05 11:32:53 +02:00
2026-04-16 08:55:49 +10:00
2026-04-06 00:53:57 -05:00
2026-04-17 10:44:55 +10:00
2026-04-02 12:35:15 +02:00
2026-04-06 20:23:25 -05:00
2026-04-14 18:07:30 +02:00
2026-04-06 14:06:20 -05:00
2026-04-10 12:50:24 +02:00
2026-04-15 03:09:11 +02:00
2026-03-30 15:02:13 -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-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-17 09:38:57 +10: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-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-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-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-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-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-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-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-02-18 09:52:21 -07:00
2026-04-01 14:12:02 -05:00
2026-04-07 13:18:53 -05:00
2026-04-14 16:21:50 -06:00
2026-04-03 10:34:55 +02:00
2026-03-23 15:27:47 -07:00
2026-04-01 16:32:15 -05:00
2026-04-15 11:36:02 -04:00
2026-04-15 21:28:43 -05:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-03-16 17:09:13 -07:00
2026-03-11 10:21:16 +01:00
2026-04-01 14:12:02 -05:00
2026-04-07 21:08:11 -06:00
2026-04-15 16:59:18 +00:00
2026-04-17 09:38:57 +10:00
2026-04-17 09:38:57 +10:00
2026-03-24 10:49:58 +10:00
2026-03-24 12:07:04 -05:00
2026-04-16 08:55:49 +10:00
2026-04-13 15:50:52 +00:00
2026-03-05 10:52:20 -07:00
2026-04-06 14:06:20 -05:00
2026-04-16 08:51:17 +10:00
2026-02-24 18:51:58 -08:00
2026-04-17 09:38:57 +10:00
2026-04-13 17:12:49 -06:00
2026-04-17 09:38:57 +10:00
2026-04-12 12:07:33 -05:00
2026-04-17 09:38:57 +10:00
2026-04-12 12:07:33 -05:00
2026-04-01 14:12:02 -05:00
2026-04-10 15:26:16 +09:00
2026-04-01 14:12:02 -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-02-18 09:52:21 -07:00
2026-04-17 09:38:57 +10:00
2026-04-02 15:06:35 +02:00
2026-04-17 09:38:57 +10:00
2026-04-02 15:06:35 +02:00
2026-04-02 15:06:35 +02:00
2026-04-17 09:38:57 +10:00
2026-04-02 15:06:35 +02:00
2026-04-16 19:01:53 +10: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-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-17 09:38:57 +10:00
2026-04-17 09:38:57 +10:00
2026-04-02 15:06:35 +02:00
2026-02-18 09:52:21 -07:00
2026-04-01 14:12:02 -05:00
2026-04-01 15:28:35 -05:00
2026-02-18 09:52:21 -07:00
2026-04-03 10:34:55 +02:00
2026-03-11 16:58:48 -04:00
2026-03-27 08:49:43 -04:00
2026-04-17 09:38:57 +10:00
2026-04-17 09:38:57 +10:00
2026-04-10 11:26:51 -06:00
2026-04-14 11:08:26 -07:00
2026-04-14 13:22:12 +02:00
2026-04-10 10:48:17 -07:00
2026-04-15 18:03:39 -06:00
2026-03-31 09:43:58 -07:00
2026-03-16 21:24:08 +10: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-10 10:48:17 -07:00